A compound or pharmaceutically acceptable salt thereof, having the formula where are each independently chosen from a 3- to 8-membered carbocyclic ring and a 3- to 8-membered heterocyclic ring containing 1 heteroatom independently chosen from N, O, and S, each of which A ring is optionally fused to a 3- to 8-membered carbocyclic ring or a 3- to 8-membered heterocyclic ring containing 1 to 3 heteroatoms independently chosen from N, O, and S, to form a bicyclic ring system; the A ring and 3 - to 8--membered carbocyclic or heterocyclic ring to which A is optionally fused are each substituted with R 10; the B ring and 3 - to 8--membered carbocyclic or heterocyclic ring to which B is optionally fused are each substituted with R 31; the C ring and 3 - to 8--membered carbocyclic or heterocyclic ring to which C is optionally fused are each substituted with R 21; m, n, o, and p are integers independently chosen from 0, 1, and 2 and each of is unsubstituted or substituted with one or more substituents independently chosen from halogen, hydroxyl, C 1 -C 2 alkyl, and C 1 -C 2 alkoxy; X and Y are independently chosen from O and S; R 8 and R 9 are independently chosen from hydrogen and C 1 -C 4 alkyl; R 10, R 21, and R 31 are each 0 to 3 substituents independently chosen from hydroxyl, halogen, nitro, cyano, amino, C 1 -C 4 alkyl, C 1 -C 4 alkoxy, mono- and di-(C 1 -C 2 alkyl)amino-, C 1 -C 2 haloalkyl, and C 1 -C 2 haloalkoxy; R 20 is C 1 -C 10 haloalkyl, C 1 -C 10 haloalkoxy, -SR 7, -SOR 7, or -SO 2 R 7, where R 7 is C 1 -C 10 carbyhdryl or C 1 -C 10 haloalkyl; R 30 is hydrogen or R 30 is C 1 -C 8 carbhydryloxy or C 1 -C 8 carbhydrylthio- each or which is substituted with 0 to 3 substituents independently chosen from hydroxyl, halogen, nitro, cyano, C 1 -C 4 alkyl, C 1 -C 4 alkoxy, C 1 -C 2 haloalkyl, and C 1 -C 2 haloalkoxyl. the A ring and 3 - to 8--membered carbocyclic or heterocyclic ring to which A is optionally fused are each substituted with R 10; the B ring and 3 - to 8--membered carbocyclic or heterocyclic ring to which B is optionally fused are each substituted with R 31; the C ring and 3 - to 8--membered carbocyclic or heterocyclic ring to which C is optionally fused are each substituted with R 21; m, n, o, and p are integers independently chosen from 0, 1, and 2 and each of is unsubstituted or substituted with one or more substituents independently chosen from halogen, hydroxyl, C 1 -C 2 alkyl, and C 1 -C 2 alkoxy; X and Y are independently chosen from O and S; R 8 and R 9 are independently chosen from hydrogen and C 1 -C 4 alkyl; R 10, R 21, and R 31 are each 0 to 3 substituents independently chosen from hydroxyl, halogen, nitro, cyano, amino, C 1 -C 4 alkyl, C 1 -C 4 alkoxy, mono- and di-(C 1 -C 2 alkyl)amino-, C 1 -C 2 haloalkyl, and C 1 -C 2 haloalkoxy; R 20 is C 1 -C 10 haloalkyl, C 1 -C 10 haloalkoxy, -SR 7, -SOR 7, or -SO 2 R 7, where R 7 is C 1 -C 10 carbyhdryl or C 1 -C 10 haloalkyl; R 30 is hydrogen or R 30 is C 1 -C 8 carbhydryloxy or C 1 -C 8 carbhydrylthio- each or which is substituted with 0 to 3 substituents independently chosen from hydroxyl, halogen, nitro, cyano, C 1 -C 4 alkyl, C 1 -C 4 alkoxy, C 1 -C 2 haloalkyl, and C 1 -C 2 haloalkoxyl.