//
// GJBaseGameLayer::updateGuideArt from 0x10029b45c to 0x10029b530 (212 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x10029b0e0
// > GJBaseGameLayer::update @ 0x10029b390
//
// 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:02:09 +0000
//
__int64 __fastcall GJBaseGameLayer::updateGuideArt(__int64 result)
{
__int64 v1; // x8
unsigned int *v2; // x9
__int64 v3; // x8
__int64 v4; // x19
_QWORD *v5; // x21
unsigned __int64 v6; // x22
__int64 v7; // x20
__n128 v8; // q0
v1 = *(_QWORD *)(result + 13104);
if ( v1 )
{
v2 = *(unsigned int **)(v1 + 56);
v3 = *v2;
if ( (_DWORD)v3 )
{
v4 = result;
v5 = *((_QWORD **)v2 + 2);
v6 = (unsigned __int64)&v5[v3 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 512LL))(*v5);
if ( *(_BYTE *)(result + 773) == 1 )
{
if ( *(_DWORD *)(result + 1028) == 84 && *(_BYTE *)(*(_QWORD *)(v4 + 3256) + 2423LL) == 1 )
v8.n128_f32[0] = 180.0 - (*(float (__fastcall **)(__int64))(*(_QWORD *)result + 368LL))(result);
else
v8.n128_f32[0] = -(*(float (__fastcall **)(__int64))(*(_QWORD *)result + 368LL))(result);
result = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v7 + 360LL))(v7, v8);
}
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
}
}
return result;
}