// // GJBaseGameLayer::stopSFXTrigger from 0x9e01d8 to 0x9e0334 (348 bytes) // // 2 xrefs: // > GJBaseGameLayer::controlTriggersInGroup @ 0x9e04ec // > @ 0xa9e88 // // 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::stopSFXTrigger(GJBaseGameLayer *this, SFXTriggerGameObject *a2) { __int64 **v5; // x23 __int64 **v6; // x0 int *v7; // x19 int *v8; // x25 FMODAudioEngine *v9; // x0 __int64 *v10; // x20 _QWORD *v11; // x0 _QWORD *v12; // x0 __int64 v13; // x2 __int64 v14; // [xsp+60h] [xbp+60h] BYREF if ( *((_DWORD *)a2 + 257) == 3602 ) { v5 = (__int64 **)((char *)this + 1776); LODWORD(v14) = *((_DWORD *)a2 + 229); v6 = (__int64 **)std::unordered_map>::operator[]((unsigned __int64)this + 1728, (int *)&v14); v7 = (int *)*v6; v8 = (int *)v6[1]; if ( *v6 != (__int64 *)v8 ) { do { v9 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)v6); FMODAudioEngine::stopChannel(v9, *v7); v14 = (unsigned int)*v7; v6 = (__int64 **)std::__tree,SFXTriggerInstance>,std::__map_value_compare,std::__value_type,SFXTriggerInstance>,std::less>,true>,std::allocator,SFXTriggerInstance>>>::find>( (__int64)this + 1768, (int *)&v14); v10 = (__int64 *)v6; if ( v6 != v5 ) { v11 = std::__tree_next *>(v6); if ( v10 == *((__int64 **)this + 221) ) *((_QWORD *)this + 221) = v11; --*((_QWORD *)this + 223); std::__tree_remove *>(*v5, v10); operator delete(v10); } ++v7; } while ( v8 != v7 ); } LODWORD(v14) = *((_DWORD *)a2 + 229); v12 = (_QWORD *)std::unordered_map>::operator[]((unsigned __int64)this + 1728, (int *)&v14); v13 = v12[1]; if ( *v12 != v13 ) v12[1] = v13 + 4 * ~((unsigned __int64)(v13 - 4 - *v12) >> 2); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source