//
// sub_1000417B4 from 0x1000417b4 to 0x100041844 (144 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::init @ 0x10003fc9c
// > sub_100040E8C @ 0x100040f28
// > sub_100041D6C @ 0x100041dc4
//
// 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:57:37 +0000
//
__int64 __fastcall sub_1000417B4(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
__int64 v4; // x21
int v5; // w24
const char *v6; // x1
result = sub_1002E757C(*(_QWORD *)(a1 + 688));
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 688), v3);
v5 = *(_DWORD *)(a1 + 788);
if ( v5 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) )
v6 = "GJ_button_02.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v4, v6);
v3 = (unsigned int)(v3 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 688));
}
while ( (unsigned int)v3 < (unsigned int)result );
}
return result;
}