// // GJBaseGameLayer::addProximityVolumeEffect from 0x9c1bf0 to 0x9c1df4 (516 bytes) // // 5 xrefs: // > GJBaseGameLayer::activateSongEditTrigger @ 0x9c1ed4 // > GJBaseGameLayer::activateSFXTrigger @ 0x9dfd64 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x9dff44 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x9dffbc // > @ 0xe0f80 // // 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:30 +0000 // __int64 __fastcall GJBaseGameLayer::addProximityVolumeEffect(__int64 **this, int a2, int a3, SFXTriggerGameObject *a4) { __int64 *v7; // x24 __int64 *v9; // x0 __int64 *v10; // x19 __int64 *v11; // x1 __int64 *v12; // x0 __int64 v13; // x19 int v14; // w28 int v15; // w27 int v16; // w26 int v17; // w0 int v18; // w0 FMODAudioEngine *v19; // x0 float v20; // s0 __int64 v21; // x0 __int64 v23; // x0 __int64 *v24; // x1 char *v25; // x0 __int64 *v26; // x0 float v27; // [xsp+60h] [xbp+60h] int v28; // [xsp+78h] [xbp+78h] BYREF int v29; // [xsp+7Ch] [xbp+7Ch] char *v30; // [xsp+80h] [xbp+80h] v29 = a3; v7 = (__int64 *)(this + 222); v28 = a2; v9 = std::__tree,SFXTriggerInstance>,std::__map_value_compare,std::__value_type,SFXTriggerInstance>,std::less>,true>,std::allocator,SFXTriggerInstance>>>::find>( (__int64)(this + 221), &v28); v10 = v9; if ( v7 != v9 ) { v11 = (__int64 *)v9[1]; if ( v11 ) { while ( *v11 ) v11 = (__int64 *)*v11; if ( v9 != *(this + 221) ) goto LABEL_7; } else { while ( 1 ) { v11 = (__int64 *)v9[2]; if ( v9 == (__int64 *)*v11 ) break; v9 = (__int64 *)v9[2]; } if ( v10 != *(this + 221) ) goto LABEL_7; } *(this + 221) = v11; LABEL_7: v12 = *(this + 222); *(this + 223) = (__int64 *)((char *)*(this + 223) - 1); std::__tree_remove *>(v12, v10); operator delete(v10); } v13 = (__int64)*(this + 222); v14 = *((_DWORD *)a4 + 366); v15 = *((_DWORD *)a4 + 367); v16 = *((_DWORD *)a4 + 418); if ( !v13 ) { v30 = (char *)(this + 222); goto LABEL_23; } while ( 1 ) { v17 = *(_DWORD *)(v13 + 32); if ( v28 < v17 ) break; if ( v28 <= v17 ) { v18 = *(_DWORD *)(v13 + 36); if ( v29 < v18 ) break; if ( v29 <= v18 ) goto LABEL_13; } v23 = *(_QWORD *)(v13 + 8); if ( !v23 ) { v30 = (char *)v13; v7 = (__int64 *)(v13 + 8); goto LABEL_23; } LABEL_19: v13 = v23; } v23 = *(_QWORD *)v13; if ( *(_QWORD *)v13 ) goto LABEL_19; v30 = (char *)v13; v7 = (__int64 *)v13; LABEL_23: v13 = operator new(0x40u); v24 = (__int64 *)v13; *(_DWORD *)(v13 + 32) = v28; *(_DWORD *)(v13 + 36) = v29; v25 = v30; *(_DWORD *)(v13 + 40) = v14; *(_DWORD *)(v13 + 44) = v15; *(_DWORD *)(v13 + 48) = v16; *(_QWORD *)(v13 + 56) = a4; *(_QWORD *)v13 = 0; *(_QWORD *)(v13 + 8) = 0; *(_QWORD *)(v13 + 16) = v25; *v7 = v13; v26 = (__int64 *)**(this + 221); if ( v26 ) { *(this + 221) = v26; v24 = (__int64 *)*v7; } std::__tree_balance_after_insert *>(*(this + 222), v24); *(this + 223) = (__int64 *)((char *)*(this + 223) + 1); LABEL_13: v19 = (FMODAudioEngine *)GJBaseGameLayer::volumeForProximityEffect((__int64)this, v13 + 40); v27 = v20; v21 = FMODAudioEngine::sharedEngine(v19); FMODAudioEngine::setChannelVolumeMod(v21, a2, a3, v27); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source