//
// GJBaseGameLayer::updateGuideArt from 0x4794c4 to 0x47955e (154 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x4971c4
// > GJBaseGameLayer::update @ 0x497d2c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::updateGuideArt(GJBaseGameLayer *a1)
{
cocos2d::CCArray *m_indicatorSprites; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r4
cocos2d::CCObject **v5; // r6
int *v6; // r5
int *v7; // t1
int v8; // r0
int v9; // lr
int v10; // r2
void (__fastcall *v11)(int *, _DWORD); // r8
float v12; // s15
int *v13; // r0
float v14; // r1
m_indicatorSprites = a1->m_indicatorSprites;
if ( m_indicatorSprites )
{
data = m_indicatorSprites->data;
if ( data->num )
{
arr = data->arr;
v5 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v5 )
{
v7 = (int *)*arr++;
v6 = v7;
if ( !v7 )
break;
v8 = (*(int (__fastcall **)(int *))(*v6 + 248))(v6);
if ( *(_BYTE *)(v8 + 657) )
{
v9 = *v6;
v10 = *(_DWORD *)v8;
if ( *(_DWORD *)(v8 + 884) == 84 && a1->m_player1->m_isUpsideDown )
{
v11 = *(void (__fastcall **)(int *, _DWORD))(v9 + 172);
v12 = COERCE_FLOAT((*(int (**)(void))(v10 + 176))());
v13 = v6;
v14 = 180.0 - v12;
}
else
{
v11 = *(void (__fastcall **)(int *, _DWORD))(v9 + 172);
LODWORD(v14) = (*(int (__fastcall **)(int))(v10 + 176))(v8) ^ 0x80000000;
v13 = v6;
}
v11(v13, LODWORD(v14));
}
}
}
}
}