; ; GJBaseGameLayer::triggerAdvancedFollowEditCommand from 0x14022eac0 to 0x14022edf2 (818 bytes) ; ; 5 xrefs: ; > EffectGameObject::triggerObject @ 0x1404a7b92 ; > @ 0x140680c94 ; > @ 0x140680ccc ; > @ 0x140680ce0 ; > @ 0x1406cdd94 ; ; 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 ; push rbx ; +0x0, 0x14022eac0 push rsi ; +0x2, 0x14022eac2 push rdi ; +0x3, 0x14022eac3 sub rsp, 40h ; +0x4, 0x14022eac4 mov eax, [rdx+40Ch] ; +0x8, 0x14022eac8 mov rsi, rdx ; +0xe, 0x14022eace mov rbx, rcx ; +0x11, 0x14022ead1 cmp eax, 0E4Ch ; +0x14, 0x14022ead4 jnz loc_14022ECE4 ; +0x19, 0x14022ead9 cmp byte ptr [rdx+69Ch], 0 ; +0x1f, 0x14022eadf mov [rsp+58h+arg_10], r12 ; +0x26, 0x14022eae6 mov r12d, [rdx+5C8h] ; +0x2b, 0x14022eaeb jz loc_14022ECC2 ; +0x32, 0x14022eaf2 mov [rsp+58h+arg_18], r13 ; +0x38, 0x14022eaf8 mov r13, [rcx+720h] ; +0x3d, 0x14022eafd mov [rsp+58h+var_20], r14 ; +0x44, 0x14022eb04 mov r14, [rcx+718h] ; +0x49, 0x14022eb09 cmp r14, r13 ; +0x50, 0x14022eb10 jz loc_14022ECAB ; +0x53, 0x14022eb13 mov [rsp+58h+arg_0], rbp ; +0x59, 0x14022eb19 mov r11, 0CBF29CE484222325h ; +0x5e, 0x14022eb1e mov [rsp+58h+var_28], r15 ; +0x68, 0x14022eb28 mov r10, 100000001B3h ; +0x6d, 0x14022eb2d nop word ptr [rax+rax+00000000h] ; +0x77, 0x14022eb37 cmp [r14+10h], r12d ; +0x80, 0x14022eb40 jnz loc_14022EC94 ; +0x84, 0x14022eb44 mov rdx, [r14] ; +0x8a, 0x14022eb4a movzx eax, byte ptr [rdx+738h] ; +0x8d, 0x14022eb4d add eax, 0Ah ; +0x94, 0x14022eb54 lea ecx, [rax+rax*4] ; +0x97, 0x14022eb57 movzx eax, byte ptr [rdx+739h] ; +0x9a, 0x14022eb5a lea ecx, [rax+rcx*2] ; +0xa1, 0x14022eb61 imul r8d, ecx, 0F4240h ; +0xa4, 0x14022eb64 add r8d, [r14+8] ; +0xab, 0x14022eb6b mov eax, r8d ; +0xaf, 0x14022eb6f mov [rsp+58h+arg_8], r8d ; +0xb2, 0x14022eb72 shr eax, 8 ; +0xb7, 0x14022eb77 movzx edx, al ; +0xba, 0x14022eb7a movzx eax, r8b ; +0xbd, 0x14022eb7d xor rax, r11 ; +0xc1, 0x14022eb81 mov r9d, r8d ; +0xc4, 0x14022eb84 imul rax, r10 ; +0xc7, 0x14022eb87 xor rdx, rax ; +0xcb, 0x14022eb8b mov eax, r8d ; +0xce, 0x14022eb8e imul rdx, r10 ; +0xd1, 0x14022eb91 shr eax, 10h ; +0xd5, 0x14022eb95 movzx ecx, al ; +0xd8, 0x14022eb98 xor rdx, rcx ; +0xdb, 0x14022eb9b mov eax, r8d ; +0xde, 0x14022eb9e mov rcx, [rbx+0FB0h] ; +0xe1, 0x14022eba1 imul rdx, r10 ; +0xe8, 0x14022eba8 shr rax, 18h ; +0xec, 0x14022ebac xor rdx, rax ; +0xf0, 0x14022ebb0 imul rdx, r10 ; +0xf3, 0x14022ebb3 and rcx, rdx ; +0xf7, 0x14022ebb7 shl rcx, 4 ; +0xfa, 0x14022ebba add rcx, [rbx+0F98h] ; +0xfe, 0x14022ebbe mov rax, [rcx+8] ; +0x105, 0x14022ebc5 cmp rax, [rbx+0F88h] ; +0x109, 0x14022ebc9 jz short loc_14022EBF1 ; +0x110, 0x14022ebd0 mov rcx, [rcx] ; +0x112, 0x14022ebd2 cmp r9d, [rax+10h] ; +0x115, 0x14022ebd5 jz short loc_14022EBF3 ; +0x119, 0x14022ebd9 nop dword ptr [rax+rax+00h] ; +0x11b, 0x14022ebdb cmp rax, rcx ; +0x120, 0x14022ebe0 jz short loc_14022EBF1 ; +0x123, 0x14022ebe3 mov rax, [rax+8] ; +0x125, 0x14022ebe5 cmp r8d, [rax+10h] ; +0x129, 0x14022ebe9 jnz short loc_14022EBE0 ; +0x12d, 0x14022ebed jmp short loc_14022EBF3 ; +0x12f, 0x14022ebef xor eax, eax ; +0x131, 0x14022ebf1 test rax, rax ; +0x133, 0x14022ebf3 jz short loc_14022EC57 ; +0x136, 0x14022ebf6 lea rcx, [rbx+0F80h] ; +0x138, 0x14022ebf8 lea r8, [rsp+58h+arg_8] ; +0x13f, 0x14022ebff lea rdx, [rsp+58h+var_38] ; +0x144, 0x14022ec04 call sub_14024ED30 ; +0x149, 0x14022ec09 xor ebp, ebp ; +0x14e, 0x14022ec0e mov rcx, [rax] ; +0x150, 0x14022ec10 mov r15d, [rcx+14h] ; +0x153, 0x14022ec13 test r15d, r15d ; +0x157, 0x14022ec17 setnle bpl ; +0x15a, 0x14022ec1a xor edi, edi ; +0x15e, 0x14022ec1e inc ebp ; +0x160, 0x14022ec20 test r15d, r15d ; +0x162, 0x14022ec22 jle short loc_14022EC5C ; +0x165, 0x14022ec25 dec r15d ; +0x167, 0x14022ec27 nop word ptr [rax+rax+00h] ; +0x16a, 0x14022ec2a mov rcx, [rbx+0F78h] ; +0x170, 0x14022ec30 lea edx, [r15+rdi] ; +0x177, 0x14022ec37 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x17b, 0x14022ec3b mov rdx, rsi ; +0x181, 0x14022ec41 mov rcx, rbx ; +0x184, 0x14022ec44 mov r8, rax ; +0x187, 0x14022ec47 call GJBaseGameLayer__modifyGroupPhysics ; +0x18a, 0x14022ec4a inc edi ; +0x18f, 0x14022ec4f cmp edi, ebp ; +0x191, 0x14022ec51 jl short loc_14022EC30 ; +0x193, 0x14022ec53 jmp short loc_14022EC80 ; +0x195, 0x14022ec55 mov ebp, 1 ; +0x197, 0x14022ec57 mov edi, ebp ; +0x19c, 0x14022ec5c xchg ax, ax ; +0x19e, 0x14022ec5e mov edx, [r14+8] ; +0x1a0, 0x14022ec60 mov rcx, rbx ; +0x1a4, 0x14022ec64 call GJBaseGameLayer__getGroup ; +0x1a7, 0x14022ec67 mov r8, rax ; +0x1ac, 0x14022ec6c mov rdx, rsi ; +0x1af, 0x14022ec6f mov rcx, rbx ; +0x1b2, 0x14022ec72 call GJBaseGameLayer__modifyGroupPhysics ; +0x1b5, 0x14022ec75 sub rdi, 1 ; +0x1ba, 0x14022ec7a jnz short loc_14022EC60 ; +0x1be, 0x14022ec7e mov r11, 0CBF29CE484222325h ; +0x1c0, 0x14022ec80 mov r10, 100000001B3h ; +0x1ca, 0x14022ec8a add r14, 20h ; ' ' ; +0x1d4, 0x14022ec94 cmp r14, r13 ; +0x1d8, 0x14022ec98 jnz loc_14022EB40 ; +0x1db, 0x14022ec9b mov r15, [rsp+58h+var_28] ; +0x1e1, 0x14022eca1 mov rbp, [rsp+58h+arg_0] ; +0x1e6, 0x14022eca6 mov r13, [rsp+58h+arg_18] ; +0x1eb, 0x14022ecab mov r14, [rsp+58h+var_20] ; +0x1f0, 0x14022ecb0 mov r12, [rsp+58h+arg_10] ; +0x1f5, 0x14022ecb5 add rsp, 40h ; +0x1fa, 0x14022ecba pop rdi ; +0x1fe, 0x14022ecbe pop rsi ; +0x1ff, 0x14022ecbf pop rbx ; +0x200, 0x14022ecc0 retn ; +0x201, 0x14022ecc1 mov edx, r12d ; +0x202, 0x14022ecc2 call GJBaseGameLayer__getGroup ; +0x205, 0x14022ecc5 mov r8, rax ; +0x20a, 0x14022ecca mov rdx, rsi ; +0x20d, 0x14022eccd mov rcx, rbx ; +0x210, 0x14022ecd0 mov r12, [rsp+58h+arg_10] ; +0x213, 0x14022ecd3 add rsp, 40h ; +0x218, 0x14022ecd8 pop rdi ; +0x21c, 0x14022ecdc pop rsi ; +0x21d, 0x14022ecdd pop rbx ; +0x21e, 0x14022ecde jmp GJBaseGameLayer__modifyGroupPhysics ; +0x21f, 0x14022ecdf cmp eax, 0E4Dh ; +0x224, 0x14022ece4 jnz short loc_14022ECBA ; +0x229, 0x14022ece9 cmp byte ptr [rdx+6A4h], 0 ; +0x22b, 0x14022eceb mov edi, [rdx+5CCh] ; +0x232, 0x14022ecf2 jz short loc_14022ED01 ; +0x238, 0x14022ecf8 mov edi, 0FFFFFFFFh ; +0x23a, 0x14022ecfa jmp short loc_14022ED25 ; +0x23f, 0x14022ecff cmp byte ptr [rdx+6A5h], 0 ; +0x241, 0x14022ed01 jz short loc_14022ED11 ; +0x248, 0x14022ed08 mov edi, 0FFFFFFFEh ; +0x24a, 0x14022ed0a jmp short loc_14022ED25 ; +0x24f, 0x14022ed0f cmp byte ptr [rdx+6A6h], 0 ; +0x251, 0x14022ed11 jz short loc_14022ED21 ; +0x258, 0x14022ed18 mov edi, 0FFFFFFFDh ; +0x25a, 0x14022ed1a jmp short loc_14022ED25 ; +0x25f, 0x14022ed1f test edi, edi ; +0x261, 0x14022ed21 jz short loc_14022ECBA ; +0x263, 0x14022ed23 cmp byte ptr [rsi+69Ch], 0 ; +0x265, 0x14022ed25 mov edx, [rdx+5C8h] ; +0x26c, 0x14022ed2c jz short loc_14022ED69 ; +0x272, 0x14022ed32 mov rcx, [rcx+720h] ; +0x274, 0x14022ed34 mov rax, [rbx+718h] ; +0x27b, 0x14022ed3b cmp rax, rcx ; +0x282, 0x14022ed42 jz loc_14022ECBA ; +0x285, 0x14022ed45 nop dword ptr [rax+rax+00h] ; +0x28b, 0x14022ed4b cmp [rax+10h], edx ; +0x290, 0x14022ed50 jnz short loc_14022ED58 ; +0x293, 0x14022ed53 mov [rax+0Ch], edi ; +0x295, 0x14022ed55 add rax, 20h ; ' ' ; +0x298, 0x14022ed58 cmp rax, rcx ; +0x29c, 0x14022ed5c jnz short loc_14022ED50 ; +0x29f, 0x14022ed5f add rsp, 40h ; +0x2a1, 0x14022ed61 pop rdi ; +0x2a5, 0x14022ed65 pop rsi ; +0x2a6, 0x14022ed66 pop rbx ; +0x2a7, 0x14022ed67 retn ; +0x2a8, 0x14022ed68 call GJBaseGameLayer__getGroup ; +0x2a9, 0x14022ed69 test rax, rax ; +0x2ae, 0x14022ed6e jz loc_14022ECBA ; +0x2b1, 0x14022ed71 mov r8, [rax+38h] ; +0x2b7, 0x14022ed77 mov eax, [r8] ; +0x2bb, 0x14022ed7b test eax, eax ; +0x2be, 0x14022ed7e jz loc_14022ECBA ; +0x2c0, 0x14022ed80 mov r8, [r8+10h] ; +0x2c6, 0x14022ed86 lea r9, [rax-1] ; +0x2ca, 0x14022ed8a lea r9, [r8+r9*8] ; +0x2ce, 0x14022ed8e cmp r8, r9 ; +0x2d2, 0x14022ed92 ja loc_14022ECBA ; +0x2d5, 0x14022ed95 nop dword ptr [rax+rax+00h] ; +0x2db, 0x14022ed9b mov rcx, [r8] ; +0x2e0, 0x14022eda0 test rcx, rcx ; +0x2e3, 0x14022eda3 jz loc_14022ECBA ; +0x2e6, 0x14022eda6 cmp dword ptr [rcx+40Ch], 0BC8h ; +0x2ec, 0x14022edac jnz short loc_14022EDE1 ; +0x2f6, 0x14022edb6 mov rdx, [rbx+720h] ; +0x2f8, 0x14022edb8 mov rax, [rbx+718h] ; +0x2ff, 0x14022edbf cmp rax, rdx ; +0x306, 0x14022edc6 jz short loc_14022EDE1 ; +0x309, 0x14022edc9 nop dword ptr [rax+rax+00h] ; +0x30b, 0x14022edcb cmp [rax], rcx ; +0x310, 0x14022edd0 jnz short loc_14022EDD8 ; +0x313, 0x14022edd3 mov [rax+0Ch], edi ; +0x315, 0x14022edd5 add rax, 20h ; ' ' ; +0x318, 0x14022edd8 cmp rax, rdx ; +0x31c, 0x14022eddc jnz short loc_14022EDD0 ; +0x31f, 0x14022eddf add r8, 8 ; +0x321, 0x14022ede1 cmp r8, r9 ; +0x325, 0x14022ede5 jbe short loc_14022EDA0 ; +0x328, 0x14022ede8 add rsp, 40h ; +0x32a, 0x14022edea pop rdi ; +0x32e, 0x14022edee pop rsi ; +0x32f, 0x14022edef pop rbx ; +0x330, 0x14022edf0 retn ; +0x331, 0x14022edf1