// // sub_1005B5168 from 0x1005b5168 to 0x1005b52b0 (328 bytes) // // 1 xrefs: // > sub_1005B5B88 @ 0x1005b5b8c // // 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:12 +0000 // __int64 __fastcall sub_1005B5168(__int64 a1) { float v2; // s0 __int64 v3; // x8 __int64 v4; // x20 __int64 result; // x0 float v6; // s3 float v7; // s9 float v8; // s4 float v9; // s0 __float2 v10; // 0:kr00_8.8 v2 = (float)*(int *)(*(_QWORD *)(a1 + 168) + 1744LL); *(float *)(a1 + 540) = (float)(v2 * 0.5) + -10.0; v3 = *(_QWORD *)(a1 + 232); if ( *(int *)(v3 + 96) < 1 ) { LABEL_6: *(_OWORD *)(a1 + 1028) = 0u; *(_OWORD *)(a1 + 1044) = 0u; *(_OWORD *)(a1 + 996) = 0u; *(_OWORD *)(a1 + 1012) = 0u; *(_OWORD *)(a1 + 964) = 0u; *(_OWORD *)(a1 + 980) = 0u; *(_OWORD *)(a1 + 932) = 0u; *(_OWORD *)(a1 + 948) = 0u; *(_OWORD *)(a1 + 900) = 0u; *(_OWORD *)(a1 + 916) = 0u; *(_OWORD *)(a1 + 868) = 0u; *(_OWORD *)(a1 + 884) = 0u; *(_OWORD *)(a1 + 836) = 0u; *(_OWORD *)(a1 + 852) = 0u; *(_OWORD *)(a1 + 804) = 0u; *(_OWORD *)(a1 + 820) = 0u; v6 = *(float *)(a1 + 1084); *(_OWORD *)(a1 + 772) = 0u; *(_OWORD *)(a1 + 788) = 0u; *(_OWORD *)(a1 + 740) = 0u; *(_OWORD *)(a1 + 756) = 0u; *(_OWORD *)(a1 + 708) = 0u; *(_OWORD *)(a1 + 724) = 0u; *(_OWORD *)(a1 + 676) = 0u; *(_OWORD *)(a1 + 692) = 0u; *(_OWORD *)(a1 + 644) = 0u; *(_OWORD *)(a1 + 660) = 0u; *(_OWORD *)(a1 + 612) = 0u; *(_OWORD *)(a1 + 628) = 0u; *(_OWORD *)(a1 + 580) = 0u; *(_OWORD *)(a1 + 596) = 0u; *(_OWORD *)(a1 + 548) = 0u; *(_OWORD *)(a1 + 564) = 0u; v7 = *(float *)(a1 + 1088); *(float *)(a1 + 544) = v7; *(float *)(a1 + 536) = v6; v10 = __sincosf_stret((float)(v6 * 6.2832) / v2); v8 = (float)(v10.__cosval + 1.0) * 0.5; *(float *)(a1 + 1072) = v8; *(float *)(a1 + 1076) = -(float)(v10.__cosval + 1.0); *(float *)(a1 + 1080) = v8; v9 = v10.__sinval / (float)(v7 + v7); *(float *)(a1 + 1060) = v9 + 1.0; *(float *)(a1 + 1064) = v10.__cosval * -2.0; *(float *)(a1 + 1068) = 1.0 - v9; return 0; } else { v4 = 0; while ( 1 ) { result = sub_1005CDB48(a1, v4, *(float *)(*(_QWORD *)(*(_QWORD *)(v3 + 104) + 8 * v4) + 56LL)); if ( (_DWORD)result ) break; ++v4; v3 = *(_QWORD *)(a1 + 232); if ( v4 >= *(int *)(v3 + 96) ) { v2 = (float)*(int *)(*(_QWORD *)(a1 + 168) + 1744LL); goto LABEL_6; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source