A compound that has the structure of Formula (XII):wherein,X1 is CH, CR3 or N;X2 is N, CH, or CR3;Z is -OH or -OR10;R2 is C1-C4alkyl, C1-C4fluoroalkyl, C1-C4deuteroalkyl, C3-C6cycloalkyl, or -C1-C4alkylene-W;W is hydroxy, halogen, CN, C1-C4alkyl, C1-C4haloalkyl, C1-C4alkoxy, C1-C4haloalkoxy, and C3-C6cycloalkyl;each R3 is independently halogen, C1-C4alkyl, or C1-C4fluoroalkyl;each R4 is independently halogen, -CN, -OR9, -S(=O)2R10, C1-C4alkyl, C1-C4fluoroalkyl, or C1-C4heteroalkyl;each R5 is independently halogen, -CN, -OR9, -S(=O)2R10, C1-C4alkyl, C1-C4fluoroalkyl, or C1-C4heteroalkyl;R6 is H, C1-C4alkyl, or halogen;R7 is H, C1-C4alkyl, or halogen;R9 is H, C1-C6alkyl, C1-C6fluoroalkyl, or C3-C6cycloalkyl;R10 is C1-C6alkyl;m is 0, 1, or 2;n is 0, 1, 2, 3, or 4; andp is 0, 1, or 2;or a pharmaceutically acceptable or N-oxide thereof.