//
// GJBaseGameLayer::updateGuideArt from 0x9ab5c4 to 0x9ab6c0 (252 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::update @ 0x9ed5e0
// > GJBaseGameLayer::update @ 0x9ee1ac
// > ??> @ 0x50620
//
// 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 12:58:12 +0000
//
__int64 __fastcall GJBaseGameLayer::updateGuideArt(__int64 this)
{
__int64 v1; // x22
unsigned int *v2; // x2
__int64 *v3; // x20
__int64 v4; // x2
char *v5; // x21
__int64 v6; // x19
__int64 v7; // x23
__int64 (__fastcall *v8)(__int64, float); // x22
float v9; // s0
__int64 (__fastcall *v10)(__int64, float); // x22
float v11; // s0
v1 = *(_QWORD *)(this + 13104);
if ( v1 )
{
v2 = *(unsigned int **)(v1 + 56);
if ( *v2 )
{
v3 = *((__int64 **)v2 + 2);
v4 = 8LL * *v2 - 8;
v5 = (char *)v3 + v4;
if ( v3 <= (__int64 *)((char *)v3 + v4) )
{
v6 = *v3;
if ( *v3 )
{
v7 = this;
do
{
this = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 512LL))(v6);
if ( *(_BYTE *)(this + 773) )
{
if ( *(_DWORD *)(this + 1028) == 84 && *(_BYTE *)(*(_QWORD *)(v7 + 3256) + 2423LL) )
{
v10 = *(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 360LL);
v11 = (*(float (__fastcall **)(__int64))(*(_QWORD *)this + 368LL))(this);
this = v10(v6, 180.0 - v11);
}
else
{
v8 = *(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 360LL);
v9 = (*(float (__fastcall **)(__int64))(*(_QWORD *)this + 368LL))(this);
this = v8(v6, -v9);
}
}
if ( v5 < (char *)++v3 )
break;
v6 = *v3;
}
while ( *v3 );
}
}
}
}
return this;
}