//
// GJBaseGameLayer::updateGuideArt from 0x1001ff310 to 0x1001ff3e4 (212 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x1001fef94
// > GJBaseGameLayer::update @ 0x1001ff244
//
// 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 __fastcall GJBaseGameLayer::updateGuideArt(GJBaseGameLayer *a1)
{
cocos2d::CCArray *m_indicatorSprites; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x21
unsigned __int64 v6; // x22
cocos2d::CCObject *v7; // x20
__int64 v8; // x0
__n128 v9; // q0
m_indicatorSprites = a1->m_indicatorSprites;
if ( m_indicatorSprites )
{
data = m_indicatorSprites->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v6 = (unsigned __int64)&arr[num - 1];
do
{
v7 = *arr;
if ( !*arr )
break;
v8 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v7->__vftable[6].~CCObject_0)(*arr);
if ( *(_BYTE *)(v8 + 773) == 1 )
{
if ( *(_DWORD *)(v8 + 1028) == 84 && a1->m_player1->m_isUpsideDown )
v9.n128_f32[0] = 180.0 - (*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 352LL))(v8);
else
v9.n128_f32[0] = -(*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 352LL))(v8);
((void (__fastcall *)(cocos2d::CCObject *, __n128))v7->__vftable[4].isEqual)(v7, v9);
}
++arr;
}
while ( (unsigned __int64)arr <= v6 );
}
}
}