// // sub_1004945E0 from 0x1004945e0 to 0x100494748 (360 bytes) // // 1 xrefs: // > sub_100495308 @ 0x10049530c // // 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_1004945E0(__int64 a1) { __int64 v2; // x8 __int64 v3; // x20 __int64 result; // x0 float v5; // s2 float v6; // s8 float v7; // s10 float v8; // s0 float v9; // s0 __float2 v10; // 0:kr00_8.8 *(_QWORD *)(a1 + 540) = 1045220557; *(_DWORD *)(a1 + 548) = 1065353216; v2 = *(_QWORD *)(a1 + 232); if ( *(int *)(v2 + 96) < 1 ) { LABEL_5: *(_OWORD *)(a1 + 1032) = 0u; *(_OWORD *)(a1 + 1048) = 0u; *(_OWORD *)(a1 + 1000) = 0u; *(_OWORD *)(a1 + 1016) = 0u; *(_OWORD *)(a1 + 968) = 0u; *(_OWORD *)(a1 + 984) = 0u; *(_OWORD *)(a1 + 936) = 0u; *(_OWORD *)(a1 + 952) = 0u; *(_OWORD *)(a1 + 904) = 0u; *(_OWORD *)(a1 + 920) = 0u; *(_OWORD *)(a1 + 872) = 0u; *(_OWORD *)(a1 + 888) = 0u; *(_OWORD *)(a1 + 840) = 0u; *(_OWORD *)(a1 + 856) = 0u; *(_OWORD *)(a1 + 808) = 0u; *(_OWORD *)(a1 + 824) = 0u; *(_OWORD *)(a1 + 776) = 0u; *(_OWORD *)(a1 + 792) = 0u; *(_OWORD *)(a1 + 744) = 0u; *(_OWORD *)(a1 + 760) = 0u; *(_OWORD *)(a1 + 712) = 0u; *(_OWORD *)(a1 + 728) = 0u; *(_OWORD *)(a1 + 680) = 0u; *(_OWORD *)(a1 + 696) = 0u; *(_OWORD *)(a1 + 648) = 0u; *(_OWORD *)(a1 + 664) = 0u; *(_OWORD *)(a1 + 616) = 0u; *(_OWORD *)(a1 + 632) = 0u; *(_OWORD *)(a1 + 584) = 0u; *(_OWORD *)(a1 + 600) = 0u; *(_OWORD *)(a1 + 552) = 0u; *(_OWORD *)(a1 + 568) = 0u; *(_QWORD *)(a1 + 536) = *(_QWORD *)(a1 + 1088); v5 = *(float *)(a1 + 1096); *(float *)(a1 + 544) = v5; v6 = __exp10f(v5 / 20.0); *(float *)(a1 + 548) = v6; v7 = 1.0 / *(float *)(a1 + 540); v10 = __sincosf_stret((float)(*(float *)(a1 + 536) * 6.2832) / (float)*(int *)(*(_QWORD *)(a1 + 168) + 1744LL)); v8 = v10.__sinval / (float)(v7 + v7); *(float *)(a1 + 1076) = (float)(v8 * v6) + 1.0; *(float *)(a1 + 1080) = v10.__cosval * -2.0; *(float *)(a1 + 1084) = 1.0 - (float)(v8 * v6); v9 = v8 / v6; *(float *)(a1 + 1064) = v9 + 1.0; *(float *)(a1 + 1068) = v10.__cosval * -2.0; *(float *)(a1 + 1072) = 1.0 - v9; return 0; } else { v3 = 0; while ( 1 ) { result = sub_1004A79E0(a1, v3, *(float *)(*(_QWORD *)(*(_QWORD *)(v2 + 104) + 8 * v3) + 56LL)); if ( (_DWORD)result ) break; ++v3; v2 = *(_QWORD *)(a1 + 232); if ( v3 >= *(int *)(v2 + 96) ) goto LABEL_5; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source