; ; GJBaseGameLayer::controlTriggersInGroup from 0x14021e190 to 0x14021e711 (1409 bytes) ; ; 2 xrefs: ; > TriggerControlGameObject::triggerObject @ 0x1404c3340 ; > @ 0x1406cd3f8 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x14021e190 mov [rsp+arg_8], rbp ; +0x5, 0x14021e195 mov [rsp+arg_10], rsi ; +0xa, 0x14021e19a push rdi ; +0xf, 0x14021e19f push r12 ; +0x10, 0x14021e1a0 push r13 ; +0x12, 0x14021e1a2 push r14 ; +0x14, 0x14021e1a4 push r15 ; +0x16, 0x14021e1a6 sub rsp, 80h ; +0x18, 0x14021e1a8 mov ebx, r8d ; +0x1f, 0x14021e1af mov r13, rcx ; +0x22, 0x14021e1b2 call GJBaseGameLayer__getGroup ; +0x25, 0x14021e1b5 test rax, rax ; +0x2a, 0x14021e1ba jz loc_14021E65A ; +0x2d, 0x14021e1bd mov rax, [rax+38h] ; +0x33, 0x14021e1c3 mov edx, [rax] ; +0x37, 0x14021e1c7 test edx, edx ; +0x39, 0x14021e1c9 jz loc_14021E65A ; +0x3b, 0x14021e1cb mov rsi, [rax+10h] ; +0x41, 0x14021e1d1 mov [rsp+0A8h+var_78], rsi ; +0x45, 0x14021e1d5 lea rbp, [rdx-1] ; +0x4a, 0x14021e1da lea rbp, [rsi+rbp*8] ; +0x4e, 0x14021e1de mov [rsp+0A8h+var_70], rbp ; +0x52, 0x14021e1e2 cmp rsi, rbp ; +0x57, 0x14021e1e7 ja loc_14021E65A ; +0x5a, 0x14021e1ea mov r8d, 3E7h ; +0x60, 0x14021e1f0 lea rdx, cs:140000000h ; +0x66, 0x14021e1f6 nop dword ptr [rax] ; +0x6d, 0x14021e1fd mov rdi, [rsi] ; +0x70, 0x14021e200 test rdi, rdi ; +0x73, 0x14021e203 jz loc_14021E65A ; +0x76, 0x14021e206 cmp byte ptr [rdi+4F0h], 0 ; +0x7c, 0x14021e20c jz loc_14021E648; jumptable 000000014021E337 cases 2904,2905,2907,2909-2917,2919-2924 ; +0x83, 0x14021e213 mov ecx, [rdi+40Ch] ; +0x89, 0x14021e219 cmp ecx, 0B57h ; +0x8f, 0x14021e21f jg loc_14021E301 ; +0x95, 0x14021e225 jz short loc_14021E2A4 ; +0x9b, 0x14021e22b mov edx, ecx ; +0x9d, 0x14021e22d sub edx, 64Fh ; +0x9f, 0x14021e22f jz short loc_14021E293 ; +0xa5, 0x14021e235 sub edx, 12Ah ; +0xa7, 0x14021e237 jz short loc_14021E24D; jumptable 000000014021E337 case 2999 ; +0xad, 0x14021e23d sub edx, 3 ; +0xaf, 0x14021e23f jz short loc_14021E24D; jumptable 000000014021E337 case 2999 ; +0xb2, 0x14021e242 cmp edx, 63h ; 'c' ; +0xb4, 0x14021e244 jnz loc_14021E557 ; +0xb7, 0x14021e247 mov edi, [rdi+39Ch]; jumptable 000000014021E337 case 2999 ; +0xbd, 0x14021e24d mov rax, [r13+430h] ; +0xc3, 0x14021e253 mov rdx, [rax] ; +0xca, 0x14021e25a cmp rdx, rax ; +0xcd, 0x14021e25d jz loc_14021E641 ; +0xd0, 0x14021e260 cmp [rdx+34h], edi ; +0xd6, 0x14021e266 jnz loc_14021E40B ; +0xd9, 0x14021e269 test ebx, ebx ; +0xdf, 0x14021e26f jnz loc_14021E3F8 ; +0xe1, 0x14021e271 lea rcx, [r13+428h] ; +0xe7, 0x14021e277 mov r8, rdx ; +0xee, 0x14021e27e lea rdx, [rsp+0A8h+var_68] ; +0xf1, 0x14021e281 call sub_14024D170 ; +0xf6, 0x14021e286 mov rdx, [rax] ; +0xfb, 0x14021e28b jmp loc_14021E40E ; +0xfe, 0x14021e28e cmp ebx, 2 ; +0x103, 0x14021e293 setnz al ; +0x106, 0x14021e296 mov [rdi+788h], al ; +0x109, 0x14021e299 jmp loc_14021E641 ; +0x10f, 0x14021e29f cmp ebx, 2 ; +0x114, 0x14021e2a4 jz short loc_14021E2F1 ; +0x117, 0x14021e2a7 mov eax, [rdi+748h] ; +0x119, 0x14021e2a9 cmp eax, r8d ; +0x11f, 0x14021e2af cmovg eax, r8d ; +0x122, 0x14021e2b2 movsxd rdx, eax ; +0x126, 0x14021e2b6 mov rcx, [r13+3168h] ; +0x129, 0x14021e2b9 call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x130, 0x14021e2c0 mov rdi, rax ; +0x136, 0x14021e2c6 test rax, rax ; +0x139, 0x14021e2c9 jz loc_14021E63B ; +0x13c, 0x14021e2cc mov r8, [rax] ; +0x142, 0x14021e2d2 xor edx, edx ; +0x145, 0x14021e2d5 mov rcx, rax ; +0x147, 0x14021e2d7 call qword ptr [r8+1F8h] ; +0x14a, 0x14021e2da mov qword ptr [rdi+248h], 0 ; +0x151, 0x14021e2e1 jmp loc_14021E63B ; +0x15c, 0x14021e2ec mov rdx, rdi ; +0x161, 0x14021e2f1 mov rcx, r13 ; +0x164, 0x14021e2f4 call GJBaseGameLayer__triggerGradientCommand ; +0x167, 0x14021e2f7 jmp loc_14021E63B ; +0x16c, 0x14021e2fc cmp ecx, 0E12h ; +0x171, 0x14021e301 jg loc_14021E54B ; +0x177, 0x14021e307 jz loc_14021E420 ; +0x17d, 0x14021e30d sub ecx, 0B58h; switch 113 cases ; +0x183, 0x14021e313 cmp ecx, 70h ; +0x189, 0x14021e319 ja def_14021E337; jumptable 000000014021E337 default case, cases 2906,2908,2918,2925-2998,3000-3005,3011-3015 ; +0x18c, 0x14021e31c movsxd rax, ecx ; +0x192, 0x14021e322 movzx eax, ds:(byte_14021E6A0 - 140000000h)[rdx+rax] ; +0x195, 0x14021e325 mov ecx, ds:(jpt_14021E337 - 140000000h)[rdx+rax*4] ; +0x19d, 0x14021e32d add rcx, rdx ; +0x1a4, 0x14021e334 jmp rcx; switch jump ; +0x1a7, 0x14021e337 lea r8, [r13+658h]; jumptable 000000014021E337 case 3006 ; +0x1a9, 0x14021e339 mov r9d, ebx ; +0x1b0, 0x14021e340 mov rdx, rdi ; +0x1b3, 0x14021e343 call GJBaseGameLayer__controlAreaEffect ; +0x1b6, 0x14021e346 jmp loc_14021E63B ; +0x1bb, 0x14021e34b lea r8, [r13+670h]; jumptable 000000014021E337 case 3007 ; +0x1c0, 0x14021e350 mov r9d, ebx ; +0x1c7, 0x14021e357 mov rdx, rdi ; +0x1ca, 0x14021e35a call GJBaseGameLayer__controlAreaEffect ; +0x1cd, 0x14021e35d jmp loc_14021E63B ; +0x1d2, 0x14021e362 lea r8, [r13+688h]; jumptable 000000014021E337 case 3008 ; +0x1d7, 0x14021e367 mov r9d, ebx ; +0x1de, 0x14021e36e mov rdx, rdi ; +0x1e1, 0x14021e371 call GJBaseGameLayer__controlAreaEffect ; +0x1e4, 0x14021e374 jmp loc_14021E63B ; +0x1e9, 0x14021e379 lea r8, [r13+6A0h]; jumptable 000000014021E337 case 3009 ; +0x1ee, 0x14021e37e mov r9d, ebx ; +0x1f5, 0x14021e385 mov rdx, rdi ; +0x1f8, 0x14021e388 call GJBaseGameLayer__controlAreaEffect ; +0x1fb, 0x14021e38b jmp loc_14021E63B ; +0x200, 0x14021e390 lea r8, [r13+6B8h]; jumptable 000000014021E337 case 3010 ; +0x205, 0x14021e395 mov r9d, ebx ; +0x20c, 0x14021e39c mov rdx, rdi ; +0x20f, 0x14021e39f call GJBaseGameLayer__controlAreaEffect ; +0x212, 0x14021e3a2 jmp loc_14021E63B ; +0x217, 0x14021e3a7 mov rcx, [r13+720h]; jumptable 000000014021E337 case 3016 ; +0x21c, 0x14021e3ac mov rax, [r13+718h] ; +0x223, 0x14021e3b3 cmp rax, rcx ; +0x22a, 0x14021e3ba jz loc_14021E648; jumptable 000000014021E337 cases 2904,2905,2907,2909-2917,2919-2924 ; +0x22d, 0x14021e3bd cmp [rax], rdi ; +0x233, 0x14021e3c3 jnz short loc_14021E3EA ; +0x236, 0x14021e3c6 test ebx, ebx ; +0x238, 0x14021e3c8 jnz short loc_14021E3D2 ; +0x23a, 0x14021e3ca mov byte ptr [rax+1Eh], 1 ; +0x23c, 0x14021e3cc jmp short loc_14021E3E4 ; +0x240, 0x14021e3d0 cmp ebx, 1 ; +0x242, 0x14021e3d2 jnz short loc_14021E3DF ; +0x245, 0x14021e3d5 mov word ptr [rax+1Ch], 101h ; +0x247, 0x14021e3d7 jmp short loc_14021E3EA ; +0x24d, 0x14021e3dd cmp ebx, 2 ; +0x24f, 0x14021e3df jnz short loc_14021E3EA ; +0x252, 0x14021e3e2 mov word ptr [rax+1Ch], 0 ; +0x254, 0x14021e3e4 add rax, 20h ; ' ' ; +0x25a, 0x14021e3ea cmp rax, rcx ; +0x25e, 0x14021e3ee jnz short loc_14021E3C3 ; +0x261, 0x14021e3f1 jmp loc_14021E648; jumptable 000000014021E337 cases 2904,2905,2907,2909-2917,2919-2924 ; +0x263, 0x14021e3f3 cmp ebx, 1 ; +0x268, 0x14021e3f8 jnz short loc_14021E402 ; +0x26b, 0x14021e3fb mov [rdx+31h], bl ; +0x26d, 0x14021e3fd jmp short loc_14021E40B ; +0x270, 0x14021e400 cmp ebx, 2 ; +0x272, 0x14021e402 jnz short loc_14021E40B ; +0x275, 0x14021e405 mov byte ptr [rdx+31h], 0 ; +0x277, 0x14021e407 mov rdx, [rdx] ; +0x27b, 0x14021e40b cmp rdx, [r13+430h] ; +0x27e, 0x14021e40e jnz loc_14021E266 ; +0x285, 0x14021e415 jmp loc_14021E63B ; +0x28b, 0x14021e41b mov eax, [rdi+39Ch] ; +0x290, 0x14021e420 mov [rsp+0A8h+arg_18], eax ; +0x296, 0x14021e426 lea r8, [rsp+0A8h+arg_18] ; +0x29d, 0x14021e42d lea rdx, [rsp+0A8h+var_58] ; +0x2a5, 0x14021e435 lea rcx, [r13+768h] ; +0x2aa, 0x14021e43a call sub_140250040 ; +0x2b1, 0x14021e441 mov rcx, [rax] ; +0x2b6, 0x14021e446 mov r14, [rcx+18h] ; +0x2b9, 0x14021e449 mov r15, [rcx+20h] ; +0x2bd, 0x14021e44d cmp r14, r15 ; +0x2c1, 0x14021e451 jz loc_14021E4FE ; +0x2c4, 0x14021e454 mov [rsp+0A8h+var_7C], 0 ; +0x2ca, 0x14021e45a mov rsi, cs:qword_1406C2E88 ; +0x2d2, 0x14021e462 test rsi, rsi ; +0x2d9, 0x14021e469 jnz short loc_14021E49D ; +0x2dc, 0x14021e46c mov ecx, 888h; Size ; +0x2de, 0x14021e46e call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2e3, 0x14021e473 mov [rsp+0A8h+var_60], rax ; +0x2e8, 0x14021e478 mov rcx, rax ; +0x2ed, 0x14021e47d call FMODAudioEngine__FMODAudioEngine ; +0x2f0, 0x14021e480 nop ; +0x2f5, 0x14021e485 mov cs:qword_1406C2E88, rax ; +0x2f6, 0x14021e486 mov rdx, [rax] ; +0x2fd, 0x14021e48d mov rcx, rax ; +0x300, 0x14021e490 call qword ptr [rdx+48h] ; +0x303, 0x14021e493 mov rsi, cs:qword_1406C2E88 ; +0x306, 0x14021e496 mov eax, [r14] ; +0x30d, 0x14021e49d mov [rsp+0A8h+var_88], eax ; +0x310, 0x14021e4a0 lea rcx, [rsi+648h] ; +0x314, 0x14021e4a4 lea r8, [rsp+0A8h+var_88] ; +0x31b, 0x14021e4ab lea rdx, [rsp+0A8h+var_48] ; +0x320, 0x14021e4b0 call sub_140060FD0 ; +0x325, 0x14021e4b5 mov rdx, [rax] ; +0x32a, 0x14021e4ba xorps xmm3, xmm3 ; +0x32d, 0x14021e4bd xor r8d, r8d ; +0x330, 0x14021e4c0 mov rdx, [rdx+18h] ; +0x333, 0x14021e4c3 mov rcx, rsi ; +0x337, 0x14021e4c7 call FMODAudioEngine__stopChannel_1 ; +0x33a, 0x14021e4ca mov eax, [r14] ; +0x33f, 0x14021e4cf mov [rsp+0A8h+var_80], eax ; +0x342, 0x14021e4d2 lea rdx, [rsp+0A8h+var_80] ; +0x346, 0x14021e4d6 lea rcx, [r13+7A8h] ; +0x34b, 0x14021e4db call sub_140249E30 ; +0x352, 0x14021e4e2 add r14, 4 ; +0x357, 0x14021e4e7 cmp r14, r15 ; +0x35b, 0x14021e4eb jnz loc_14021E462 ; +0x35e, 0x14021e4ee mov rsi, [rsp+0A8h+var_78] ; +0x364, 0x14021e4f4 mov rbp, [rsp+0A8h+var_70] ; +0x369, 0x14021e4f9 mov eax, [rdi+39Ch] ; +0x36e, 0x14021e4fe mov [rsp+0A8h+arg_18], eax ; +0x374, 0x14021e504 lea r8, [rsp+0A8h+arg_18] ; +0x37b, 0x14021e50b lea rdx, [rsp+0A8h+var_38] ; +0x383, 0x14021e513 lea rcx, [r13+768h] ; +0x388, 0x14021e518 call sub_140250040 ; +0x38f, 0x14021e51f mov rcx, [rax] ; +0x394, 0x14021e524 mov rax, [rcx+18h] ; +0x397, 0x14021e527 lea rdx, cs:140000000h ; +0x39b, 0x14021e52b mov r8d, 3E7h ; +0x3a2, 0x14021e532 cmp rax, [rcx+20h] ; +0x3a8, 0x14021e538 jz loc_14021E648; jumptable 000000014021E337 cases 2904,2905,2907,2909-2917,2919-2924 ; +0x3ac, 0x14021e53c mov [rcx+20h], rax ; +0x3b2, 0x14021e542 jmp loc_14021E648; jumptable 000000014021E337 cases 2904,2905,2907,2909-2917,2919-2924 ; +0x3b6, 0x14021e546 cmp ecx, 0E14h ; +0x3bb, 0x14021e54b jz loc_14021E624 ; +0x3c1, 0x14021e551 cmp ecx, 542h ; +0x3c7, 0x14021e557 jnz short loc_14021E5B5 ; +0x3cd, 0x14021e55d cmp byte ptr [rdi+610h], 0 ; +0x3cf, 0x14021e55f jz def_14021E337; jumptable 000000014021E337 default case, cases 2906,2908,2918,2925-2998,3000-3005,3011-3015 ; +0x3d6, 0x14021e566 mov rcx, [r13+750h] ; +0x3dc, 0x14021e56c mov rax, [r13+748h] ; +0x3e3, 0x14021e573 cmp rax, rcx ; +0x3ea, 0x14021e57a jz def_14021E337; jumptable 000000014021E337 default case, cases 2906,2908,2918,2925-2998,3000-3005,3011-3015 ; +0x3ed, 0x14021e57d cmp [rax], rdi ; +0x3f3, 0x14021e583 jnz short loc_14021E5AA ; +0x3f6, 0x14021e586 test ebx, ebx ; +0x3f8, 0x14021e588 jnz short loc_14021E592 ; +0x3fa, 0x14021e58a mov byte ptr [rax+4Dh], 1 ; +0x3fc, 0x14021e58c jmp short loc_14021E5AA ; +0x400, 0x14021e590 cmp ebx, 1 ; +0x402, 0x14021e592 jnz short loc_14021E59F ; +0x405, 0x14021e595 mov word ptr [rax+4Eh], 101h ; +0x407, 0x14021e597 jmp short loc_14021E5AA ; +0x40d, 0x14021e59d cmp ebx, 2 ; +0x40f, 0x14021e59f jnz short loc_14021E5AA ; +0x412, 0x14021e5a2 mov word ptr [rax+4Eh], 0 ; +0x414, 0x14021e5a4 add rax, 60h ; '`' ; +0x41a, 0x14021e5aa cmp rax, rcx ; +0x41e, 0x14021e5ae jnz short loc_14021E583 ; +0x421, 0x14021e5b1 jmp short def_14021E337; jumptable 000000014021E337 default case, cases 2906,2908,2918,2925-2998,3000-3005,3011-3015 ; +0x423, 0x14021e5b3 cmp ecx, 385h ; +0x425, 0x14021e5b5 jnz short def_14021E337; jumptable 000000014021E337 default case, cases 2906,2908,2918,2925-2998,3000-3005,3011-3015 ; +0x42b, 0x14021e5bb cmp byte ptr [rdi+610h], 0 ; +0x42d, 0x14021e5bd jz short def_14021E337; jumptable 000000014021E337 default case, cases 2906,2908,2918,2925-2998,3000-3005,3011-3015 ; +0x434, 0x14021e5c4 mov rcx, [r13+738h] ; +0x436, 0x14021e5c6 mov rax, [r13+730h] ; +0x43d, 0x14021e5cd cmp rax, rcx ; +0x444, 0x14021e5d4 jz short def_14021E337; jumptable 000000014021E337 default case, cases 2906,2908,2918,2925-2998,3000-3005,3011-3015 ; +0x447, 0x14021e5d7 nop dword ptr [rax+00000000h] ; +0x449, 0x14021e5d9 cmp [rax], rdi ; +0x450, 0x14021e5e0 jnz short loc_14021E607 ; +0x453, 0x14021e5e3 test ebx, ebx ; +0x455, 0x14021e5e5 jnz short loc_14021E5EF ; +0x457, 0x14021e5e7 mov byte ptr [rax+4Dh], 1 ; +0x459, 0x14021e5e9 jmp short loc_14021E607 ; +0x45d, 0x14021e5ed cmp ebx, 1 ; +0x45f, 0x14021e5ef jnz short loc_14021E5FC ; +0x462, 0x14021e5f2 mov word ptr [rax+4Eh], 101h ; +0x464, 0x14021e5f4 jmp short loc_14021E607 ; +0x46a, 0x14021e5fa cmp ebx, 2 ; +0x46c, 0x14021e5fc jnz short loc_14021E607 ; +0x46f, 0x14021e5ff mov word ptr [rax+4Eh], 0 ; +0x471, 0x14021e601 add rax, 60h ; '`' ; +0x477, 0x14021e607 cmp rax, rcx ; +0x47b, 0x14021e60b jnz short loc_14021E5E0 ; +0x47e, 0x14021e60e mov r8d, ebx; jumptable 000000014021E337 default case, cases 2906,2908,2918,2925-2998,3000-3005,3011-3015 ; +0x480, 0x14021e610 mov rdx, rdi ; +0x483, 0x14021e613 mov rcx, [r13+950h] ; +0x486, 0x14021e616 call GJEffectManager__controlActionsForTrigger ; +0x48d, 0x14021e61d jmp short loc_14021E63B ; +0x492, 0x14021e622 mov r9d, ebx ; +0x494, 0x14021e624 mov r8d, 0FFFFFFFFh ; +0x497, 0x14021e627 mov edx, [rdi+39Ch] ; +0x49d, 0x14021e62d mov rcx, r13 ; +0x4a3, 0x14021e633 call GJBaseGameLayer__controlEventLink ; +0x4a6, 0x14021e636 mov r8d, 3E7h ; +0x4ab, 0x14021e63b lea rdx, cs:140000000h ; +0x4b1, 0x14021e641 add rsi, 8; jumptable 000000014021E337 cases 2904,2905,2907,2909-2917,2919-2924 ; +0x4b8, 0x14021e648 mov [rsp+0A8h+var_78], rsi ; +0x4bc, 0x14021e64c cmp rsi, rbp ; +0x4c1, 0x14021e651 jbe loc_14021E200 ; +0x4c4, 0x14021e654 lea r11, [rsp+0A8h+var_28] ; +0x4ca, 0x14021e65a mov rbx, [r11+30h] ; +0x4d2, 0x14021e662 mov rbp, [r11+38h] ; +0x4d6, 0x14021e666 mov rsi, [r11+40h] ; +0x4da, 0x14021e66a mov rsp, r11 ; +0x4de, 0x14021e66e pop r15 ; +0x4e1, 0x14021e671 pop r14 ; +0x4e3, 0x14021e673 pop r13 ; +0x4e5, 0x14021e675 pop r12 ; +0x4e7, 0x14021e677 pop rdi ; +0x4e9, 0x14021e679 retn ; +0x4ea, 0x14021e67a align 4 ; +0x4eb, 0x14021e67b dd offset loc_14021E648 - 140000000h; jump table for switch statement ; +0x4ec, 0x14021e67c db 0, 0, 8, 0; indirect table for switch statement ; +0x510, 0x14021e6a0