// // sub_1005E864C from 0x1005e864c to 0x1005e871c (208 bytes) // // 1 xrefs: // > sub_10057F058 @ 0x10057f094 // // 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:44 +0000 // __int64 __fastcall sub_1005E864C(__int64 a1, unsigned int *a2, int a3) { unsigned int v4; // w8 unsigned int v5; // w8 __int64 result; // x0 unsigned __int64 v7; // x9 unsigned int v8; // w10 if ( atomic_load((unsigned int *)(a1 + 272)) ) { v4 = atomic_load((unsigned int *)(a1 + 272)); if ( v4 != 7 ) return 46; } if ( !a2 ) return 31; switch ( a3 ) { case 1: v5 = (unsigned int)(float)(*(float *)(a1 + 108) * (float)((float)*(unsigned int *)(a1 + 392) / 1000.0)); goto LABEL_14; case 4: v7 = *(unsigned int *)(a1 + 392); v8 = *(_DWORD *)(a1 + 40) - 1; if ( v8 <= 4 ) v7 = (qword_100774328[v8] * v7) >> 3; v5 = v7 * *(_DWORD *)(a1 + 104); goto LABEL_14; case 2: v5 = *(_DWORD *)(a1 + 392); LABEL_14: *a2 = v5; return 0; } result = sub_100585FE0(*(_QWORD *)(a1 + 96), a2, a3); if ( !(_DWORD)result ) return 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source