// // 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 // __int64 __fastcall GJBaseGameLayer::triggerAdvancedFollowEditCommand(__int64 a1, __int64 a2) { __int64 result; // rax unsigned int v5; // r13d unsigned int *v6; // r12 unsigned int *v7; // r14 __int64 *v8; // rcx __int64 v9; // rax __int64 v10; // rcx int v11; // r15d int v12; // edi int v13; // ebp int v14; // r15d struct cocos2d::CCObject *v15; // rax __int64 v16; // rdi struct cocos2d::CCObject *Group; // rax struct cocos2d::CCObject *v18; // rax int v19; // edi __int64 v20; // rdx __int64 v21; // rcx unsigned int *v22; // r8 __int64 *v23; // r8 __int64 *i; // r9 __int64 v25; // rcx __int64 v26; // rdx _BYTE v27[16]; // [rsp+20h] [rbp-38h] BYREF unsigned int v28; // [rsp+68h] [rbp+10h] BYREF result = *(unsigned int *)(a2 + 1036); if ( (_DWORD)result == 3660 ) { v5 = *(_DWORD *)(a2 + 1480); if ( *(_BYTE *)(a2 + 1692) ) { v6 = *(unsigned int **)(a1 + 1824); v7 = *(unsigned int **)(a1 + 1816); if ( v7 != v6 ) { while ( 1 ) { if ( v7[4] != v5 ) goto LABEL_19; v28 = v7[2] + 1000000 * (*(unsigned __int8 *)(*(_QWORD *)v7 + 1849LL) + 10 * (*(unsigned __int8 *)(*(_QWORD *)v7 + 1848LL) + 10)); v8 = (__int64 *)(*(_QWORD *)(a1 + 4216) + 16 * (*(_QWORD *)(a1 + 4240) & (0x100000001B3LL * (((unsigned __int64)v28 >> 24) ^ (0x100000001B3LL * ((0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v28 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v28))) ^ BYTE2(v28))))))); v9 = v8[1]; if ( v9 == *(_QWORD *)(a1 + 4200) ) goto LABEL_10; v10 = *v8; if ( v28 != *(_DWORD *)(v9 + 16) ) break; LABEL_11: if ( !v9 ) { v13 = 1; LABEL_17: v16 = (unsigned int)v13; do { Group = GJBaseGameLayer::getGroup(a1, v7[2]); result = GJBaseGameLayer::modifyGroupPhysics(a1, a2, Group); --v16; } while ( v16 ); goto LABEL_19; } v11 = *(_DWORD *)(*(_QWORD *)sub_1403574F0(a1 + 4192, v27, &v28) + 20LL); v12 = 0; v13 = (v11 > 0) + 1; if ( v11 <= 0 ) goto LABEL_17; v14 = v11 - 1; do { v15 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 4184), v14 + v12); result = GJBaseGameLayer::modifyGroupPhysics(a1, a2, v15); ++v12; } while ( v12 < v13 ); LABEL_19: v7 += 8; if ( v7 == v6 ) return result; } while ( v9 != v10 ) { v9 = *(_QWORD *)(v9 + 8); if ( v28 == *(_DWORD *)(v9 + 16) ) goto LABEL_11; } LABEL_10: v9 = 0; goto LABEL_11; } } else { v18 = GJBaseGameLayer::getGroup(a1, v5); return GJBaseGameLayer::modifyGroupPhysics(a1, a2, v18); } } else { if ( (_DWORD)result != 3661 ) return result; v19 = *(_DWORD *)(a2 + 1484); if ( *(_BYTE *)(a2 + 1700) ) { v19 = -1; } else if ( *(_BYTE *)(a2 + 1701) ) { v19 = -2; } else if ( *(_BYTE *)(a2 + 1702) ) { v19 = -3; } else if ( !v19 ) { return result; } v20 = *(unsigned int *)(a2 + 1480); if ( *(_BYTE *)(a2 + 1692) ) { v21 = *(_QWORD *)(a1 + 1824); for ( result = *(_QWORD *)(a1 + 1816); result != v21; result += 32 ) { if ( *(_DWORD *)(result + 16) == (_DWORD)v20 ) *(_DWORD *)(result + 12) = v19; } } else { result = (__int64)GJBaseGameLayer::getGroup(a1, v20); if ( result ) { v22 = *(unsigned int **)(result + 56); result = *v22; if ( (_DWORD)result ) { v23 = *((__int64 **)v22 + 2); for ( i = &v23[result - 1]; v23 <= i; ++v23 ) { v25 = *v23; if ( !*v23 ) break; if ( *(_DWORD *)(v25 + 1036) == 3016 ) { v26 = *(_QWORD *)(a1 + 1824); for ( result = *(_QWORD *)(a1 + 1816); result != v26; result += 32 ) { if ( *(_QWORD *)result == v25 ) *(_DWORD *)(result + 12) = v19; } } } } } } } return result; }