// // sub_1004A8600 from 0x1004a8600 to 0x1004a86d8 (216 bytes) // // 7 xrefs: // > sub_10043E2C8 @ 0x10043e684 // > sub_100459B94 @ 0x100459c48 // > sub_100459B94 @ 0x100459c74 // > sub_10045AA6C @ 0x10045aac0 // > sub_10045E438 @ 0x10045e484 // > sub_10045EE78 @ 0x10045ef30 // > sub_10045EE78 @ 0x10045ef74 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_1004A8600(__int64 a1, int a2, float a3) { __int64 result; // x0 float v5; // s8 __int16 v6; // w8 int *v7; // x1 _BOOL4 v8; // w8 unsigned int v9; // w9 int *v10; // [xsp+8h] [xbp-28h] BYREF if ( a3 < 0.0 ) return 31; v5 = fminf(a3, 256.0); v6 = atomic_load((unsigned int *)(a1 + 100)); if ( (v6 & 0x100) != 0 || !a2 ) { v8 = *(_DWORD *)(a1 + 40) != 0; v9 = vcvts_n_u32_f32(v5, 0x14u); *(_DWORD *)(a1 + 40) = v9; result = 0; if ( (((v9 == 0) ^ v8) & 1) == 0 ) *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 168) + 67512LL) + 48LL) = 1; } else { result = sub_10043E710(*(_QWORD *)(a1 + 168), &v10, 16, 1); if ( !(_DWORD)result ) { *(_BYTE *)v10 = 19; v7 = v10; *((_QWORD *)v10 + 1) = a1; *((float *)v7 + 1) = v5; return sub_10043E7B4(*(_QWORD *)(a1 + 168), (__int64)v7, 1); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source