// // sub_1005D9140 from 0x1005d9140 to 0x1005d9198 (88 bytes) // // 4 xrefs: // > sub_10058A138 @ 0x10058b354 // > sub_100593444 @ 0x10059382c // > sub_1005A1F14 @ 0x1005a2384 // > sub_1005A7D7C @ 0x1005a849c // // 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:09:36 +0000 // __int64 __fastcall sub_1005D9140(__int64 a1, int a2) { int v2; // w8 float v3; // s0 if ( a2 <= 1 ) v2 = 1; else v2 = a2; *(_DWORD *)(a1 + 3060) = v2; v3 = (float)((float)((float)v2 + (float)v2) / 5.0) * *(float *)(a1 + 3028); if ( v3 >= 0.01 ) *(_DWORD *)(a1 + 2132) = (int)(float)((float)*(int *)(*(_QWORD *)(a1 + 8) + 16LL) / v3); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source