// // GJBaseGameLayer::stopSFXTrigger from 0x5b1c4c to 0x5b1ce0 (148 bytes) // // 1 xrefs: // > GJBaseGameLayer::controlTriggersInGroup @ 0x5b1e48 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:33 +0000 // _DWORD *__fastcall GJBaseGameLayer::stopSFXTrigger(_DWORD *this, SFXTriggerGameObject *a2) { int v3; // r9 int **v4; // r7 unsigned int **v5; // r0 unsigned int *v6; // r5 unsigned int *v7; // r11 FMODAudioEngine *v8; // r0 int v9; // t1 int v10; // r3 int v11; // r4 int v12[2]; // [sp+4h] [bp-10h] BYREF if ( *((_DWORD *)a2 + 223) == 3602 ) { v3 = (int)(this + 322); v4 = (int **)(this + 327); v12[0] = *((_DWORD *)a2 + 195); v5 = (unsigned int **)std::unordered_map>::operator[]((int)(this + 322), (unsigned int *)v12); v6 = *v5; v7 = v5[1]; while ( v6 != v7 ) { v8 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)v5); FMODAudioEngine::stopChannel(v8, *v6); v9 = *v6++; v12[1] = 0; v12[0] = v9; v5 = (unsigned int **)std::__tree,SFXTriggerInstance>,std::__map_value_compare,std::__value_type,SFXTriggerInstance>,std::less>,true>,std::allocator,SFXTriggerInstance>>>::__erase_unique>( v4, v12); } v12[0] = *((_DWORD *)a2 + 195); this = std::unordered_map>::operator[](v3, (unsigned int *)v12); v10 = *this; while ( 1 ) { v11 = *(this + 1); if ( v10 == v11 ) break; *(this + 1) = v11 - 4; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source