The intelligent reflective surface (IRS)-assisted communication is recognized as a promising technology to enhance capacity and coverage of the network by controlling propagation. However, in IRS-aided device-to-device (D2D) communication underlaying cellular networks, co-channel interference is more complicated and challenging than traditional D2D communication networks due to the addition of extra reflection paths. To alleviate interference and improve sum-rate, we establish a multivariable resource optimization function based on IRS-assisted D2D communication in this paper. Then, a hybrid sub-optimal algorithm is proposed, which includes channel allocation based on game theory, power allocation and phase shift optimization. Specifically, a sub-channel allocation algorithm is introduced to maximize system sum-rate, where the problem of sub-channel allocation is formulated as a two-stage combinatorial auction model, and the approximate optimal solution is obtained by bidding and adjustment. Then, a sub-optimal solution for transmission power and phase shifts is obtained through local search and iterative optimization. Simulation results show that the proposed hybrid sub-optimal algorithm is feasible and effective. Compared to the other 5 schemes, it has best sum-rate performance and lowest power consumption.