; ; GJBaseGameLayer::triggerAdvancedFollowEditCommand from 0x1403375f0 to 0x140337912 (802 bytes) ; ; 5 xrefs: ; > EffectGameObject::triggerObject @ 0x140649665 ; > @ 0x1408b6e94 ; > @ 0x1408b6ecc ; > @ 0x1408b6ee0 ; > @ 0x14091f9d0 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:30:35 +0000 ; push rbx ; +0x0, 0x1403375f0 push rsi ; +0x2, 0x1403375f2 push rdi ; +0x3, 0x1403375f3 sub rsp, 40h ; +0x4, 0x1403375f4 mov eax, [rdx+40Ch] ; +0x8, 0x1403375f8 mov rsi, rdx ; +0xe, 0x1403375fe mov rbx, rcx ; +0x11, 0x140337601 cmp eax, 0E4Ch ; +0x14, 0x140337604 jnz loc_140337804 ; +0x19, 0x140337609 cmp byte ptr [rdx+69Ch], 0 ; +0x1f, 0x14033760f mov [rsp+58h+arg_18], r13 ; +0x26, 0x140337616 mov r13d, [rdx+5C8h] ; +0x2b, 0x14033761b jz loc_1403377E2 ; +0x32, 0x140337622 mov [rsp+58h+arg_10], r12 ; +0x38, 0x140337628 mov r12, [rcx+720h] ; +0x3d, 0x14033762d mov [rsp+58h+var_20], r14 ; +0x44, 0x140337634 mov r14, [rcx+718h] ; +0x49, 0x140337639 cmp r14, r12 ; +0x50, 0x140337640 jz loc_1403377CB ; +0x53, 0x140337643 mov [rsp+58h+arg_0], rbp ; +0x59, 0x140337649 mov r10, 0CBF29CE484222325h ; +0x5e, 0x14033764e mov [rsp+58h+var_28], r15 ; +0x68, 0x140337658 mov r9, 100000001B3h ; +0x6d, 0x14033765d nop word ptr [rax+rax+00000000h] ; +0x77, 0x140337667 cmp [r14+10h], r13d ; +0x80, 0x140337670 jnz loc_1403377B4 ; +0x84, 0x140337674 mov rdx, [r14] ; +0x8a, 0x14033767a movzx eax, byte ptr [rdx+738h] ; +0x8d, 0x14033767d add eax, 0Ah ; +0x94, 0x140337684 lea ecx, [rax+rax*4] ; +0x97, 0x140337687 movzx eax, byte ptr [rdx+739h] ; +0x9a, 0x14033768a lea ecx, [rax+rcx*2] ; +0xa1, 0x140337691 imul r8d, ecx, 0F4240h ; +0xa4, 0x140337694 add r8d, [r14+8] ; +0xab, 0x14033769b mov eax, r8d ; +0xaf, 0x14033769f mov [rsp+58h+arg_8], r8d ; +0xb2, 0x1403376a2 shr eax, 8 ; +0xb7, 0x1403376a7 movzx edx, al ; +0xba, 0x1403376aa movzx eax, r8b ; +0xbd, 0x1403376ad xor rax, r10 ; +0xc1, 0x1403376b1 imul rax, r9 ; +0xc4, 0x1403376b4 xor rdx, rax ; +0xc8, 0x1403376b8 mov eax, r8d ; +0xcb, 0x1403376bb shr eax, 10h ; +0xce, 0x1403376be movzx ecx, al ; +0xd1, 0x1403376c1 imul rdx, r9 ; +0xd4, 0x1403376c4 mov eax, r8d ; +0xd8, 0x1403376c8 xor rcx, rdx ; +0xdb, 0x1403376cb shr rax, 18h ; +0xde, 0x1403376ce imul rcx, r9 ; +0xe2, 0x1403376d2 xor rcx, rax ; +0xe6, 0x1403376d6 imul rcx, r9 ; +0xe9, 0x1403376d9 and rcx, [rbx+1090h] ; +0xed, 0x1403376dd shl rcx, 4 ; +0xf4, 0x1403376e4 add rcx, [rbx+1078h] ; +0xf8, 0x1403376e8 mov rax, [rcx+8] ; +0xff, 0x1403376ef cmp rax, [rbx+1068h] ; +0x103, 0x1403376f3 jz short loc_140337716 ; +0x10a, 0x1403376fa mov rcx, [rcx] ; +0x10c, 0x1403376fc cmp r8d, [rax+10h] ; +0x10f, 0x1403376ff jz short loc_140337718 ; +0x113, 0x140337703 cmp rax, rcx ; +0x115, 0x140337705 jz short loc_140337716 ; +0x118, 0x140337708 mov rax, [rax+8] ; +0x11a, 0x14033770a cmp r8d, [rax+10h] ; +0x11e, 0x14033770e jnz short loc_140337705 ; +0x122, 0x140337712 jmp short loc_140337718 ; +0x124, 0x140337714 xor eax, eax ; +0x126, 0x140337716 test rax, rax ; +0x128, 0x140337718 jz short loc_140337777 ; +0x12b, 0x14033771b lea rcx, [rbx+1060h] ; +0x12d, 0x14033771d lea r8, [rsp+58h+arg_8] ; +0x134, 0x140337724 lea rdx, [rsp+58h+var_38] ; +0x139, 0x140337729 call sub_1403574F0 ; +0x13e, 0x14033772e xor ebp, ebp ; +0x143, 0x140337733 mov rcx, [rax] ; +0x145, 0x140337735 mov r15d, [rcx+14h] ; +0x148, 0x140337738 test r15d, r15d ; +0x14c, 0x14033773c setnle bpl ; +0x14f, 0x14033773f xor edi, edi ; +0x153, 0x140337743 inc ebp ; +0x155, 0x140337745 test r15d, r15d ; +0x157, 0x140337747 jle short loc_14033777C ; +0x15a, 0x14033774a dec r15d ; +0x15c, 0x14033774c nop ; +0x15f, 0x14033774f mov rcx, [rbx+1058h] ; +0x160, 0x140337750 lea edx, [r15+rdi] ; +0x167, 0x140337757 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x16b, 0x14033775b mov rdx, rsi ; +0x171, 0x140337761 mov rcx, rbx ; +0x174, 0x140337764 mov r8, rax ; +0x177, 0x140337767 call GJBaseGameLayer__modifyGroupPhysics ; +0x17a, 0x14033776a inc edi ; +0x17f, 0x14033776f cmp edi, ebp ; +0x181, 0x140337771 jl short loc_140337750 ; +0x183, 0x140337773 jmp short loc_1403377A0 ; +0x185, 0x140337775 mov ebp, 1 ; +0x187, 0x140337777 mov edi, ebp ; +0x18c, 0x14033777c xchg ax, ax ; +0x18e, 0x14033777e mov edx, [r14+8] ; +0x190, 0x140337780 mov rcx, rbx ; +0x194, 0x140337784 call GJBaseGameLayer__getGroup ; +0x197, 0x140337787 mov r8, rax ; +0x19c, 0x14033778c mov rdx, rsi ; +0x19f, 0x14033778f mov rcx, rbx ; +0x1a2, 0x140337792 call GJBaseGameLayer__modifyGroupPhysics ; +0x1a5, 0x140337795 sub rdi, 1 ; +0x1aa, 0x14033779a jnz short loc_140337780 ; +0x1ae, 0x14033779e mov r10, 0CBF29CE484222325h ; +0x1b0, 0x1403377a0 mov r9, 100000001B3h ; +0x1ba, 0x1403377aa add r14, 20h ; ' ' ; +0x1c4, 0x1403377b4 cmp r14, r12 ; +0x1c8, 0x1403377b8 jnz loc_140337670 ; +0x1cb, 0x1403377bb mov r15, [rsp+58h+var_28] ; +0x1d1, 0x1403377c1 mov rbp, [rsp+58h+arg_0] ; +0x1d6, 0x1403377c6 mov r12, [rsp+58h+arg_10] ; +0x1db, 0x1403377cb mov r14, [rsp+58h+var_20] ; +0x1e0, 0x1403377d0 mov r13, [rsp+58h+arg_18] ; +0x1e5, 0x1403377d5 add rsp, 40h ; +0x1ea, 0x1403377da pop rdi ; +0x1ee, 0x1403377de pop rsi ; +0x1ef, 0x1403377df pop rbx ; +0x1f0, 0x1403377e0 retn ; +0x1f1, 0x1403377e1 mov edx, r13d ; +0x1f2, 0x1403377e2 call GJBaseGameLayer__getGroup ; +0x1f5, 0x1403377e5 mov r8, rax ; +0x1fa, 0x1403377ea mov rdx, rsi ; +0x1fd, 0x1403377ed mov rcx, rbx ; +0x200, 0x1403377f0 mov r13, [rsp+58h+arg_18] ; +0x203, 0x1403377f3 add rsp, 40h ; +0x208, 0x1403377f8 pop rdi ; +0x20c, 0x1403377fc pop rsi ; +0x20d, 0x1403377fd pop rbx ; +0x20e, 0x1403377fe jmp GJBaseGameLayer__modifyGroupPhysics ; +0x20f, 0x1403377ff cmp eax, 0E4Dh ; +0x214, 0x140337804 jnz short loc_1403377DA ; +0x219, 0x140337809 cmp byte ptr [rdx+6A4h], 0 ; +0x21b, 0x14033780b mov edi, [rdx+5CCh] ; +0x222, 0x140337812 jz short loc_140337821 ; +0x228, 0x140337818 mov edi, 0FFFFFFFFh ; +0x22a, 0x14033781a jmp short loc_140337845 ; +0x22f, 0x14033781f cmp byte ptr [rdx+6A5h], 0 ; +0x231, 0x140337821 jz short loc_140337831 ; +0x238, 0x140337828 mov edi, 0FFFFFFFEh ; +0x23a, 0x14033782a jmp short loc_140337845 ; +0x23f, 0x14033782f cmp byte ptr [rdx+6A6h], 0 ; +0x241, 0x140337831 jz short loc_140337841 ; +0x248, 0x140337838 mov edi, 0FFFFFFFDh ; +0x24a, 0x14033783a jmp short loc_140337845 ; +0x24f, 0x14033783f test edi, edi ; +0x251, 0x140337841 jz short loc_1403377DA ; +0x253, 0x140337843 cmp byte ptr [rsi+69Ch], 0 ; +0x255, 0x140337845 mov edx, [rdx+5C8h] ; +0x25c, 0x14033784c jz short loc_140337889 ; +0x262, 0x140337852 mov rcx, [rcx+720h] ; +0x264, 0x140337854 mov rax, [rbx+718h] ; +0x26b, 0x14033785b cmp rax, rcx ; +0x272, 0x140337862 jz loc_1403377DA ; +0x275, 0x140337865 nop dword ptr [rax+rax+00h] ; +0x27b, 0x14033786b cmp [rax+10h], edx ; +0x280, 0x140337870 jnz short loc_140337878 ; +0x283, 0x140337873 mov [rax+0Ch], edi ; +0x285, 0x140337875 add rax, 20h ; ' ' ; +0x288, 0x140337878 cmp rax, rcx ; +0x28c, 0x14033787c jnz short loc_140337870 ; +0x28f, 0x14033787f add rsp, 40h ; +0x291, 0x140337881 pop rdi ; +0x295, 0x140337885 pop rsi ; +0x296, 0x140337886 pop rbx ; +0x297, 0x140337887 retn ; +0x298, 0x140337888 call GJBaseGameLayer__getGroup ; +0x299, 0x140337889 test rax, rax ; +0x29e, 0x14033788e jz loc_1403377DA ; +0x2a1, 0x140337891 mov r8, [rax+38h] ; +0x2a7, 0x140337897 mov eax, [r8] ; +0x2ab, 0x14033789b test eax, eax ; +0x2ae, 0x14033789e jz loc_1403377DA ; +0x2b0, 0x1403378a0 mov r8, [r8+10h] ; +0x2b6, 0x1403378a6 lea r9, [rax-1] ; +0x2ba, 0x1403378aa lea r9, [r8+r9*8] ; +0x2be, 0x1403378ae cmp r8, r9 ; +0x2c2, 0x1403378b2 ja loc_1403377DA ; +0x2c5, 0x1403378b5 nop dword ptr [rax+rax+00h] ; +0x2cb, 0x1403378bb mov rcx, [r8] ; +0x2d0, 0x1403378c0 test rcx, rcx ; +0x2d3, 0x1403378c3 jz loc_1403377DA ; +0x2d6, 0x1403378c6 cmp dword ptr [rcx+40Ch], 0BC8h ; +0x2dc, 0x1403378cc jnz short loc_140337901 ; +0x2e6, 0x1403378d6 mov rdx, [rbx+720h] ; +0x2e8, 0x1403378d8 mov rax, [rbx+718h] ; +0x2ef, 0x1403378df cmp rax, rdx ; +0x2f6, 0x1403378e6 jz short loc_140337901 ; +0x2f9, 0x1403378e9 nop dword ptr [rax+rax+00h] ; +0x2fb, 0x1403378eb cmp [rax], rcx ; +0x300, 0x1403378f0 jnz short loc_1403378F8 ; +0x303, 0x1403378f3 mov [rax+0Ch], edi ; +0x305, 0x1403378f5 add rax, 20h ; ' ' ; +0x308, 0x1403378f8 cmp rax, rdx ; +0x30c, 0x1403378fc jnz short loc_1403378F0 ; +0x30f, 0x1403378ff add r8, 8 ; +0x311, 0x140337901 cmp r8, r9 ; +0x315, 0x140337905 jbe short loc_1403378C0 ; +0x318, 0x140337908 add rsp, 40h ; +0x31a, 0x14033790a pop rdi ; +0x31e, 0x14033790e pop rsi ; +0x31f, 0x14033790f pop rbx ; +0x320, 0x140337910 retn ; +0x321, 0x140337911