We reanalyze, considering the contribution of P -wave charmonia, lattice data for the D D ¯ – D s D ¯ s coupled-channel of Prelovsek [.] and D D ¯ * systems of Prelovsek [.] with m π ≃ 280 and 266 MeV, and L = 24 a / 32 a ( a ≃ 0.09 fm ) and L = 16 a ( a ≃ 0.1239 ( 13 ) fm ), respectively. The hidden-charm states with J P C = 0 + + , 1 + + , and 2 + + quantum numbers are then searched for. For 0 + + , the analysis reveals three poles in the D D ¯ – D s D ¯ s coupled-channel amplitude, corresponding to three states. Two of these poles, located near the D D ¯ and D s D ¯ s thresholds, can be interpreted as mostly molecular states. A third pole above the D s D ¯ s threshold is originated from the P -wave χ c 0 ( 2 P ) charmonium state. The number of poles found in the D D ¯ – D s D ¯ s system is the same as that found in the original lattice analysis though the position of the third pole changes sizeably. In the 1 + + sector, we find two poles in the complex energy plane. The first one is related to the molecular X ( 3872 ) state, with a compositeness exceeding 90%, while the second one, stemming from the χ c 1 ( 2 P ) charmonium, appears above the D D ¯ * threshold and it likely corresponds to the recently discovered χ c 1 ( 4010 ) state. In the 2 + + sector, we also report two poles and find that the dressed χ c 2 ( 2 P ) is lighter than the D * D ¯ * molecular state, with the dynamics of the latter closely related to that of the heavy-quark spin-symmetry partner of the X ( 3872 ) . Our exploratory study of the 1 + + and 2 + + sectors offers valuable insights into their dynamics, but given that the fits that we carry out are underconstrained, more lattice data are required to draw robust conclusions.