// // PlayLayer::getCurrentPercent from 0x100087040 to 0x1000870c7 (135 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 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:20:04 +0000 // float __fastcall PlayLayer::getCurrentPercent(__int64 a1) { float *v2; // rax int v3; // ecx float v4; // xmm0_4 float v5; // xmm1_4 if ( *(_BYTE *)(a1 + 12238) == 1 ) return (float)*(int *)(*(_QWORD *)(a1 + 2152) + 832LL); v2 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3256) + 192LL))(*(_QWORD *)(a1 + 3256)); v3 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1232LL); if ( v3 <= 0 ) { v4 = *v2; v5 = *(float *)(a1 + 12600); } else { v4 = (float)*(int *)(a1 + 952); v5 = (float)(2 * v3); } return fminf(fmaxf((float)(v4 / v5) * 100.0, 0.0), 100.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source