// // GJBaseGameLayer::controlTriggersInGroup from 0x9e0334 to 0x9e05ec (696 bytes) // // 2 xrefs: // > TriggerControlGameObject::triggerObject @ 0x86fff4 // > @ 0xbedc8 // // This function is hookable on this platform (idp: arm, 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 12:58:54 +0000 // __int64 __fastcall GJBaseGameLayer::controlTriggersInGroup(__int64 a1, int a2, unsigned int a3) { __int64 result; // x0 unsigned int *v6; // x1 __int64 *v7; // x19 __int64 *v8; // x28 __int64 v9; // x20 result = (__int64)GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, a2); if ( result ) { v6 = *(unsigned int **)(result + 56); result = *v6; if ( (_DWORD)result ) { v7 = *((__int64 **)v6 + 2); v8 = &v7[(unsigned int)result - 1]; if ( v7 <= v8 ) { v9 = *v7; if ( *v7 ) { while ( 1 ) { result = *(unsigned __int8 *)(v9 + 1256); if ( !*(_BYTE *)(v9 + 1256) ) goto LABEL_14; result = *(unsigned int *)(v9 + 1028); if ( (int)result <= 2924 ) { if ( (int)result >= 2919 ) goto LABEL_14; if ( (_DWORD)result == 2903 ) { result = (__int64)GJBaseGameLayer::controlGradientTrigger( (cocos2d::CCDictionary **)a1, (GradientTriggerObject *)v9, a3); goto LABEL_14; } if ( (int)result > 2903 ) { if ( (_DWORD)result != 2907 ) { if ( (int)result > 2907 ) { if ( (unsigned int)(result - 2909) > 8 ) goto LABEL_33; } else if ( (int)result > 2905 ) { goto LABEL_33; } } } else { if ( (_DWORD)result == 1913 ) goto LABEL_41; if ( (int)result > 1913 ) { if ( (_DWORD)result != 1916 && (_DWORD)result != 2015 ) { LABEL_33: if ( (_DWORD)result == 1346 ) { if ( *(_BYTE *)(v9 + 1536) ) GJBaseGameLayer::controlDynamicRotateCommand(a1, v9, -1, a3); } else if ( (_DWORD)result == 901 && *(_BYTE *)(v9 + 1536) ) { GJBaseGameLayer::controlDynamicMoveCommand(a1, v9, -1, a3); } result = GJEffectManager::controlActionsForTrigger(*(GJEffectManager **)(a1 + 2152)); goto LABEL_14; } LABEL_41: result = GJGameState::controlTweenAction(a1 + 424, *(_DWORD *)(v9 + 916), 0xFFFFFFFFLL, a3); goto LABEL_14; } if ( (_DWORD)result != 1615 ) goto LABEL_33; result = a3 != 2; *(_BYTE *)(v9 + 1904) = result; } } else if ( (_DWORD)result == 3009 ) { result = GJBaseGameLayer::controlAreaEffect(a1, v9, (__int64 *)(a1 + 1552), a3); } else if ( (int)result <= 3009 ) { if ( (_DWORD)result != 3006 ) { if ( (int)result > 3006 ) { if ( (_DWORD)result == 3007 ) result = GJBaseGameLayer::controlAreaEffect(a1, v9, (__int64 *)(a1 + 1504), a3); else result = GJBaseGameLayer::controlAreaEffect(a1, v9, (__int64 *)(a1 + 1528), a3); goto LABEL_14; } if ( (_DWORD)result != 2999 ) goto LABEL_33; goto LABEL_41; } result = GJBaseGameLayer::controlAreaEffect(a1, v9, (__int64 *)(a1 + 1480), a3); } else if ( (_DWORD)result == 3016 ) { result = GJBaseGameLayer::controlAdvancedFollowCommand(a1, v9, -1, a3); } else if ( (int)result <= 3016 ) { if ( (_DWORD)result != 3010 ) goto LABEL_33; result = GJBaseGameLayer::controlAreaEffect(a1, v9, (__int64 *)(a1 + 1576), a3); } else if ( (_DWORD)result == 3602 ) { result = GJBaseGameLayer::stopSFXTrigger((GJBaseGameLayer *)a1, (SFXTriggerGameObject *)v9); } else { if ( (_DWORD)result != 3604 ) goto LABEL_33; result = (__int64)GJBaseGameLayer::controlEventLink((_QWORD *)a1, *(_DWORD *)(v9 + 916), -1, a3); } LABEL_14: if ( v8 >= ++v7 ) { v9 = *v7; if ( *v7 ) continue; } return result; } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source