// // sub_1000537E0 from 0x1000537e0 to 0x10005392c (332 bytes) // // 1 xrefs: // > sub_100052EF4 @ 0x100052f20 // // 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 10:57:44 +0000 // __int64 __fastcall sub_1000537E0(__int64 a1, float *a2) { float *v4; // x0 float v5; // s8 float *v6; // x0 float32x2_t v7; // d0 float v8; // s2 __int64 v9; // x20 float v10; // s0 float v11; // s1 float v12; // s2 float v13; // s1 float32x2_t v14; // d2 float32x2_t v15; // d3 float32x2_t v16; // d0 int8x8_t v18; // [xsp+8h] [xbp-38h] BYREF v4 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 320) + 192LL))(*(_QWORD *)(a1 + 320)); sub_1000262BC((float *)&v18, *v4, a2[1] + 40.0); v5 = *a2; v6 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 320) + 192LL))(*(_QWORD *)(a1 + 320)); v8 = vabds_f32(v5, *v6); if ( v8 >= *(float *)(a1 + 376) ) { v10 = v5 - *v6; v11 = *(float *)(a1 + 372); if ( v8 > v11 ) { v12 = *a2; if ( v10 <= 0.0 ) v13 = v11 + v12; else v13 = v12 - v11; *(float *)v18.i32 = v13; } if ( v10 <= 0.0 ) v9 = 2; else v9 = 3; } else { v9 = 0; } v7.i32[0] = *(_DWORD *)(a1 + 344); v14.f32[0] = v7.f32[0] * 0.5; v15.f32[0] = vmul_f32(v7, (float32x2_t)0xBF000000BF000000LL).f32[0]; v7.f32[1] = *(float *)(a1 + 348) * 0.5; v15.i32[1] = vsub_f32((float32x2_t)vdup_n_s32(0x42200000u), v7).i32[1]; v14.f32[1] = v7.f32[1] + 40.0; v16 = (float32x2_t)vbsl_s8((int8x8_t)vcgt_f32(v14, (float32x2_t)v18), v18, (int8x8_t)v14); v18 = vbsl_s8((int8x8_t)vcgt_f32(v16, v15), (int8x8_t)v16, (int8x8_t)v15); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 320) + 344LL))(*(_QWORD *)(a1 + 320), 1); (*(void (__fastcall **)(_QWORD, int8x8_t *))(**(_QWORD **)(a1 + 320) + 184LL))(*(_QWORD *)(a1 + 320), &v18); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source