//
// sub_100088FD4 from 0x100088fd4 to 0x100089138 (356 bytes)
//
// 2 xrefs:
// > RateStarsLayer::init @ 0x100088e78
// > RateStarsLayer::init @ 0x100088b74
//
// 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 10:58:20 +0000
//
__int64 __fastcall sub_100088FD4(__int64 a1, __int64 a2)
{
int v3; // w0
__int64 v4; // x20
__int64 v5; // x21
__int64 v6; // x22
int v7; // w25
const char *v8; // x1
int v9; // w20
_QWORD *v10; // x0
int v11; // w1
unsigned int v12; // w8
unsigned int v13; // w9
int v14; // w12
int v15; // w11
int v16; // w10
__int64 v17; // x1
if ( a2 )
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
else
v3 = -1;
*(_DWORD *)(a1 + 708) = v3;
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 696)) )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(*(_QWORD *)(a1 + 696), v4);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1072LL))(v5);
v7 = *(_DWORD *)(a1 + 708);
if ( v7 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) )
v8 = "GJ_button_01.png";
else
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v6, (__int64)v8);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 696)) );
}
v9 = *(_DWORD *)(a1 + 708);
v10 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 1072LL))(*(_QWORD *)(a1 + 688));
if ( v9 == -1 )
v11 = 10921638;
else
v11 = 0xFFFFFF;
ButtonSprite::setColor(v10, v11);
v12 = *(_DWORD *)(a1 + 708);
if ( (int)v12 >= 2 )
{
if ( v12 == 2 )
{
v13 = 1;
}
else if ( v12 == 3 )
{
v13 = 2;
}
else
{
if ( v12 == 10 )
v14 = 6;
else
v14 = 0;
if ( v12 >= 0xA )
v15 = v14;
else
v15 = 5;
if ( v12 >= 8 )
v16 = v15;
else
v16 = 4;
if ( v12 >= 6 )
v13 = v16;
else
v13 = 3;
}
}
else
{
v13 = 0;
}
if ( v12 == 1 )
v17 = 0xFFFFFFFFLL;
else
v17 = v13;
return GJDifficultySprite::updateDifficultyFrame(*(_QWORD *)(a1 + 736), v17, 0);
}