//
// sub_1003F0408 from 0x1003f0408 to 0x1003f04ac (164 bytes)
//
// 4 xrefs:
// > sub_10022E148 @ 0x10022e1f4
// > sub_1003F1D70 @ 0x1003f1eb0
// > sub_10054A340 @ 0x10054a3c4
// > InfoLayer::init @ 0x1003ef0b8
//
// 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:30 +0000
//
__int64 __fastcall sub_1003F0408(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
const char *v4; // x1
__int64 v5; // x0
*(_BYTE *)(a1 + 880) ^= 1u;
sub_1003EF944(a1);
v2 = *(_QWORD *)(a1 + 816);
if ( v2 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1072LL))(v2);
if ( *(_BYTE *)(a1 + 880) )
v4 = "GJ_button_02.png";
else
v4 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v3, (__int64)v4);
}
v5 = *(_QWORD *)(a1 + 824);
if ( v5 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, *(unsigned __int8 *)(a1 + 880));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 824) + 1056LL))(
*(_QWORD *)(a1 + 824),
*(unsigned __int8 *)(a1 + 880));
}
sub_1003F1F18(a1);
*(_DWORD *)(a1 + 856) = 0;
return InfoLayer::loadPage(a1, 0, 0);
}