// // sub_10050EFFC from 0x10050effc to 0x10050f0c0 (196 bytes) // // 1 xrefs: // > sub_10050DB44 @ 0x10050e010 // // 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 // float __fastcall sub_10050EFFC(__int64 a1, float a2) { int v3; // w8 float result; // s0 float v5; // s2 bool v6; // cc float v7; // s2 float v9; // s1 v3 = *(_DWORD *)(a1 + 688); result = 0.0; if ( v3 == 1 ) { result = *(float *)(a1 + 700); v7 = *(float *)(a1 + 692); if ( v7 <= 0.0 || (float)(v7 * 5.0) <= a2 ) { if ( result <= 0.0 ) return 0.0; } else { v9 = 360.0 / (float)((float)((float)((float)(a2 * a2) / (float)(v7 * v7)) * 4.0) + 1.0); if ( result <= v9 ) return v9; } } else if ( !v3 ) { v5 = *(float *)(a1 + 680) + *(float *)(a1 + 680); v6 = v5 <= 0.0 || (float)(v5 * 5.0) <= a2; result = 0.0; if ( !v6 ) return 360.0 / (float)((float)((float)((float)(a2 * a2) / (float)(v5 * v5)) * 4.0) + 1.0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source