//
// GJBaseGameLayer::updateGuideArt from 0x597fb8 to 0x598052 (154 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x5bd826
// > GJBaseGameLayer::update @ 0x5be388
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:10 +0000
//
int __fastcall GJBaseGameLayer::updateGuideArt(int this)
{
int v1; // r7
int v2; // r3
_DWORD *v3; // r2
int **v4; // r4
int **v5; // r6
int *v6; // r5
int *v7; // t1
int v8; // lr
int v9; // r2
int (__fastcall *v10)(int *, _DWORD); // r8
float v11; // s15
int *v12; // r0
float v13; // r1
v1 = this;
v2 = *(_DWORD *)(this + 11144);
if ( v2 )
{
v3 = *(_DWORD **)(v2 + 52);
if ( *v3 )
{
v4 = (int **)v3[3];
v5 = &(&v4[*v3])[-1];
while ( v4 <= v5 )
{
v7 = *v4++;
v6 = v7;
if ( !v7 )
break;
this = (*(int (__fastcall **)(int *))(*v6 + 256))(v6);
if ( *(_BYTE *)(this + 657) )
{
v8 = *v6;
v9 = *(_DWORD *)this;
if ( *(_DWORD *)(this + 892) == 84 && *(_BYTE *)(*(_DWORD *)(v1 + 2076) + 1959) )
{
v10 = *(int (__fastcall **)(int *, _DWORD))(v8 + 180);
v11 = COERCE_FLOAT((*(int (**)(void))(v9 + 184))());
v12 = v6;
v13 = 180.0 - v11;
}
else
{
v10 = *(int (__fastcall **)(int *, _DWORD))(v8 + 180);
LODWORD(v13) = (*(int (__fastcall **)(int))(v9 + 184))(this) ^ 0x80000000;
v12 = v6;
}
this = v10(v12, LODWORD(v13));
}
}
}
}
return this;
}