//
// sub_10021CC30 from 0x10021cc30 to 0x10021cce4 (180 bytes)
//
// 2 xrefs:
// > sub_10021C488 @ 0x10021c924
// > sub_10021CB64 @ 0x10021cbf4
//
// 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 11:01:06 +0000
//
__int64 __fastcall sub_10021CC30(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
__int64 v4; // x21
int v5; // w0
int v6; // w8
int v7; // w9
const char *v8; // x1
result = sub_1002E757C(*(_QWORD *)(a1 + 1016));
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 1016), v3);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4);
v6 = *(_DWORD *)(a1 + 1024);
if ( v5 == v6 || (v7 = *(_DWORD *)(a1 + 1028), v5 == v7) )
{
v8 = "GJ_button_02.png";
}
else if ( v5 >= v7 || v5 <= v6 )
{
v8 = "GJ_button_04.png";
}
else
{
v8 = "GJ_button_01.png";
}
ButtonSprite::updateBGImage(v4, (__int64)v8);
v3 = (unsigned int)(v3 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 1016));
}
while ( (unsigned int)v3 < (unsigned int)result );
}
return result;
}