//
// sub_1003E1D98 from 0x1003e1d98 to 0x1003e1e28 (144 bytes)
//
// 2 xrefs:
// > sub_1003E0E90 @ 0x1003e1974
// > sub_1003E1D1C @ 0x1003e1d94
//
// 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:04:23 +0000
//
__int64 __fastcall sub_1003E1D98(__int64 a1)
{
__int64 result; // x0
unsigned int v3; // w20
__int64 v4; // x21
const char *v5; // x1
result = sub_1002E757C(*(_QWORD *)(a1 + 1032));
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 1032), v3);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) == *(_DWORD *)(a1 + 1040) )
v5 = "GJ_button_02.png";
else
v5 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v4, (__int64)v5);
++v3;
result = sub_1002E757C(*(_QWORD *)(a1 + 1032));
}
while ( v3 < (unsigned int)result );
}
return result;
}