A compound of Formula XIIIb: or a single enantiomer, a racemic mixture, a mixture of diastereomers, or an isotopic variant thereof; or a pharmaceutically acceptable salt, or solvate thereof; wherein: R 8 is C 3-7 cycloalkyl, optionally substituted with one or more substituents Q; L is O; Z is CR 3'; R 2', R 3', R 5', R 6', R 7', and R 8' are each independently: hydrogen, halo, cyano, trifluoromethyl, or nitro; C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, or heterocyclyl; or -C R a, -C OR a, -C NR b R c, -C(NR a)NR b R c, -OR a, -OC R a, -OC OR a, -OC NR b R c, -OC(=NR a)NR b R c, -OS R a, -OS 2 R a, -OS NR b R c, -OS 2 NR b R c, -NR b R c, -NR a C R d, -NR a C OR d, -NR a C NR b R c, -NR a C(=NR d)NR b R c, -NR a S R d, -NR a S 2 R d, -NR a S NR b R c, -NR a S 2 NR b R c, -SR a, -S R a, -S 2 R a; -S NR b R c, or -S 2 NR b R c; wherein each R a, R b, R c, and R d is independently (i) hydrogen; (ii) C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, or heterocyclyl; or (iii) R b and R c together with the N atom to which they are attached form heterocyclyl; wherein each alkyl, alkenyl, alkynyl, cycloalkyl, aryl, aralkyl, heteroaryl, and heterocyclyl is optionally substituted with one or more substituents Q; R 17 is hydrogen or C 1-6 alkyl; Y is a bond; q is an integer of 1; and r is an integer of 2; m is an integer of 1; and n is an integer of 1; wherein each Q is independently selected from the group consisting of (a) cyano, halo, and nitro; (b) C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, and heterocyclyl; and (c) -C R e, -C OR e, -C NR f R g,-C(NR e)NR f R g, -OR e, -OC R e, -OC OR e, -OC NR f R g, -OC(=NR e)NR f R g,-OS R e, -OS 2 R e, -OS NR f R g, -OS 2 NR f R g, -NR f R g, -NR e C R h, -NR e C OR f, -NR e C NR f R g, -NR e C(=NR h)NR f R g, -NR e S R h, -NR e S 2 R h, -NR e S NR f R g,-NR e S 2 NR f R g, -SR e, -S R e, -S 2 R e, -S NR f R g, and -S 2 NR f R g; wherein each R e, R f, R g, and R h is independently (i) hydrogen; (ii) C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, or heterocyclyl; or (iii) R f and R g together with the N atom to which they are attached form heterocyclyl. R 8 is C 3-7 cycloalkyl, optionally substituted with one or more substituents Q; L is O; Z is CR 3'; R 2', R 3', R 5', R 6', R 7', and R 8' are each independently: hydrogen, halo, cyano, trifluoromethyl, or nitro; C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, or heterocyclyl; or -C R a, -C OR a, -C NR b R c, -C(NR a)NR b R c, -OR a, -OC R a, -OC OR a, -OC NR b R c, -OC(=NR a)NR b R c, -OS R a, -OS 2 R a, -OS NR b R c, -OS 2 NR b R c, -NR b R c, -NR a C R d, -NR a C OR d, -NR a C NR b R c, -NR a C(=NR d)NR b R c, -NR a S R d, -NR a S 2 R d, -NR a S NR b R c, -NR a S 2 NR b R c, -SR a, -S R a, -S 2 R a; -S NR b R c, or -S 2 NR b R c; wherein each R a, R b, R c, and R d is independently (i) hydrogen; (ii) C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, or heterocyclyl; or (iii) R b and R c together with the N atom to which they are attached form heterocyclyl; hydrogen, halo, cyano, trifluoromethyl, or nitro; C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, or heterocyclyl; or -C R a, -C OR a, -C NR b R c, -C(NR a)NR b R c, -OR a, -OC R a, -OC OR a, -OC NR b R c, -OC(=NR a)NR b R c, -OS R a, -OS 2 R a, -OS NR b R c, -OS 2 NR b R c, -NR b R c, -NR a C R d, -NR a C OR d, -NR a C NR b R c, -NR a C(=NR d)NR b R c, -NR a S R d, -NR a S 2 R d, -NR a S NR b R c, -NR a S 2 NR b R c, -SR a, -S R a, -S 2 R a; -S NR b R c, or -S 2 NR b R c; wherein each R a, R b, R c, and R d is independently (i) hydrogen; (ii) C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, or heterocyclyl; or (iii) R b and R c together with the N atom to which they are attached form heterocyclyl; wherein each alkyl, alkenyl, alkynyl, cycloalkyl, aryl, aralkyl, heteroaryl, and heterocyclyl is optionally substituted with one or more substituents Q; R 17 is hydrogen or C 1-6 alkyl; Y is a bond; q is an integer of 1; and r is an integer of 2; m is an integer of 1; and n is an integer of 1; wherein each Q is independently selected from the group consisting of (a) cyano, halo, and nitro; (b) C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, and heterocyclyl; and (c) -C R e, -C OR e, -C NR f R g,-C(NR e)NR f R g, -OR e, -OC R e, -OC OR e, -OC NR f R g, -OC(=NR e)NR f R g,-OS R e, -OS 2 R e, -OS NR f R g, -OS 2 NR f R g, -NR f R g, -NR e C R h, -NR e C OR f, -NR e C NR f R g, -NR e C(=NR h)NR f R g, -NR e S R h, -NR e S 2 R h, -NR e S NR f R g,-NR e S 2 NR f R g, -SR e, -S R e, -S 2 R e, -S NR f R g, and -S 2 NR f R g; wherein each R e, R f, R g, and R h is independently (i) hydrogen; (ii) C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-7 cycloalkyl, C 6-14 aryl, C 7-15 aralkyl, heteroaryl, or heterocyclyl; or (iii) R f and R g together with the N atom to which they are attached form heterocyclyl.