// // sub_100620598 from 0x100620598 to 0x1006206bc (292 bytes) // // 1 xrefs: // > @ 0x1009dba80 // // 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:10:19 +0000 // float __fastcall sub_100620598(__int64 *a1) { __int64 v1; // x19 __int64 v2; // x8 __int64 v3; // x20 float result; // s0 float v5; // s2 float v6; // s0 float v7; // s1 v1 = *a1; v2 = *(_QWORD *)(*a1 + 232); if ( *(int *)(v2 + 96) < 1 ) { LABEL_5: *(_OWORD *)(v1 + 764) = 0u; *(_OWORD *)(v1 + 780) = 0u; *(_OWORD *)(v1 + 732) = 0u; *(_OWORD *)(v1 + 748) = 0u; *(_OWORD *)(v1 + 700) = 0u; *(_OWORD *)(v1 + 716) = 0u; *(_OWORD *)(v1 + 668) = 0u; *(_OWORD *)(v1 + 684) = 0u; *(_OWORD *)(v1 + 636) = 0u; *(_OWORD *)(v1 + 652) = 0u; *(_OWORD *)(v1 + 604) = 0u; *(_OWORD *)(v1 + 620) = 0u; *(_OWORD *)(v1 + 572) = 0u; *(_OWORD *)(v1 + 588) = 0u; *(_OWORD *)(v1 + 540) = 0u; *(_OWORD *)(v1 + 556) = 0u; result = *(float *)(v1 + 800); *(float *)(v1 + 536) = result; if ( result >= 22000.0 ) { *(_DWORD *)(v1 + 796) = 0; } else { v5 = (float)*(int *)(*(_QWORD *)(v1 + 168) + 1744LL); if ( (float)(v5 / 3.1416) >= result ) { v6 = 1.0 / (float)(result * 6.2832); v7 = v6 + (float)(1.0 / v5); } else { v6 = 22000.0 - result; v7 = (float)(22000.0 - (float)(v5 / 3.1416)) * 3.0; } result = v6 / v7; *(float *)(v1 + 796) = result; } } else { v3 = 0; while ( !(unsigned int)sub_1005CDB48(v1, v3, *(float *)(*(_QWORD *)(*(_QWORD *)(v2 + 104) + 8 * v3) + 56LL)) ) { ++v3; v2 = *(_QWORD *)(v1 + 232); if ( v3 >= *(int *)(v2 + 96) ) goto LABEL_5; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source