//
// sub_1000533C0 from 0x1000533c0 to 0x10005349c (220 bytes)
//
// 5 xrefs:
// > sub_1000514CC @ 0x10005150c
// > GJUINode::init @ 0x1000532c4
// > GJUINode::init @ 0x1000532dc
// > sub_10005349C @ 0x1000534a8
// > sub_100053518 @ 0x100053584
//
// 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_1000533C0(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x8
float v3; // s0
float *v4; // x20
float v5; // s8
float v6; // s9
__int64 v7; // x19
float v8; // [xsp+8h] [xbp-28h] BYREF
if ( *(_QWORD *)(result + 328) )
{
v1 = result;
v2 = **(_QWORD **)(result + 320);
if ( *(_BYTE *)(result + 381) == 1 )
{
return (*(__int64 (**)(void))(v2 + 184))();
}
else
{
v3 = (*(float (**)(void))(v2 + 168))();
v4 = *(float **)(v1 + 320);
v5 = v3 * v4[108];
v6 = *(float *)(v1 + 372);
sub_1000262BC(&v8, (float)(v5 * -0.5) - v6, 0.0);
(*(void (__fastcall **)(float *, float *))(*(_QWORD *)v4 + 184LL))(v4, &v8);
v7 = *(_QWORD *)(v1 + 328);
sub_1000262BC(&v8, v6 + (float)(v5 * 0.5), 0.0);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, &v8);
}
}
return result;
}