//
// sub_100211DD0 from 0x100211dd0 to 0x100211e9c (204 bytes)
//
// 1 xrefs:
// > sub_1002113A0 @ 0x100211a00
//
// 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:03 +0000
//
__int64 __fastcall sub_100211DD0(_QWORD *a1, __int64 a2)
{
int v3; // w20
__int64 result; // x0
__int64 v5; // x21
__int64 v6; // x22
__int64 v7; // x23
const char *v8; // x1
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
sub_1001AFA70(a1, 458, (float)v3);
result = sub_1002E757C(a1[127]);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(a1[127], v5);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1072LL))(v6);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 64LL))(v6) == v3 )
v8 = "GJ_button_02.png";
else
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v7, (__int64)v8);
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(a1[127]);
}
while ( (unsigned int)v5 < (unsigned int)result );
}
return result;
}