// // sub_1001B6304 from 0x1001b6304 to 0x1001b6428 (292 bytes) // // 1 xrefs: // > FMODAudioEngine::update @ 0x1001b5b98 // // 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 11:00:10 +0000 // __int64 __fastcall sub_1001B6304(__int64 result) { __int64 v1; // x29 __int64 v2; // x30 __int64 v3; // x19 float v4; // s0 float v5; // s1 float v6; // s2 int v7; // w8 float v8; // s1 float v9; // s2 float v10; // s4 float v11; // s5 float v12; // s4 bool v13; // cc float v14; // s1 int v15; // w8 _OWORD v16[16]; // [xsp+0h] [xbp-130h] BYREF __int64 v17; // [xsp+100h] [xbp-30h] __int64 v18; // [xsp+120h] [xbp-10h] __int64 v19; // [xsp+128h] [xbp-8h] if ( *(_BYTE *)(result + 472) == 1 ) { v18 = v1; v19 = v2; v3 = result; v17 = 0; memset(v16, 0, sizeof(v16)); result = FMOD::DSP::getMeteringInfo(*(_QWORD *)(result + 496), 0, v16); v4 = *((float *)v16 + 1); if ( WORD2(v17) == 2 ) v4 = (float)(*((float *)v16 + 1) + *((float *)v16 + 2)) * 0.5; v5 = *(float *)(v3 + 440); v6 = v4 / v5; if ( v5 <= 0.0 ) v6 = v4; v7 = *(_DWORD *)(v3 + 468); v8 = *(float *)(v3 + 460); if ( v7 >= 3 && (v9 = v6 + 0.1, v9 >= (float)(v8 * 1.1)) && ((v10 = *(float *)(v3 + 464), v11 = v10 * 0.95, v12 = v10 * 0.2, v9 < v11) ? (v13 = v8 <= v12) : (v13 = 1), v13) ) { *(float *)(v3 + 464) = v9; v14 = v9 * 1.1; v15 = 1; } else { v14 = v8 * 0.93; v15 = v7 + 1; } *(float *)(v3 + 456) = v14; if ( v14 <= 0.1 ) *(_DWORD *)(v3 + 464) = 0; *(float *)(v3 + 460) = v14; *(_DWORD *)(v3 + 468) = v15; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source