//
// sub_10011AA00 from 0x10011aa00 to 0x10011ab4c (332 bytes)
//
// 1 xrefs:
// > ColorSelectLiveOverlay::init @ 0x10011a348
//
// 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:59:12 +0000
//
__int64 __fastcall sub_10011AA00(__int64 a1, __int64 a2)
{
__int64 result; // x0
int v5; // w8
__int64 v6; // x9
__int64 v7; // x9
__int64 v8; // x21
__int64 v9; // x22
int v10; // w23
const char *v11; // x1
__int64 v12; // x8
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v5 = result != 1;
if ( *(unsigned __int8 *)(a1 + 856) != v5 )
{
v6 = 688;
if ( (_DWORD)result != 1 )
v6 = 696;
v7 = *(_QWORD *)(a1 + v6);
*(_BYTE *)(a1 + 856) = v5;
*(_DWORD *)(a1 + 728) = *(_DWORD *)(v7 + 96);
sub_10011A844(a1, *(unsigned __int16 *)(v7 + 72) | (*(unsigned __int8 *)(v7 + 74) << 16));
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 680)) )
{
v8 = 0;
do
{
v9 = sub_1002E75A0(*(_QWORD *)(a1 + 680), v8);
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v10 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v9 + 64LL))(v9) )
v11 = "GJ_button_01.png";
else
v11 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v9, (__int64)v11);
v8 = (unsigned int)(v8 + 1);
}
while ( (unsigned int)v8 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 680)) );
}
v12 = 704;
if ( *(_BYTE *)(a1 + 856) )
v12 = 707;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 792) + 960LL))(*(_QWORD *)(a1 + 792), a1 + v12);
return sub_10011AB4C(a1);
}
return result;
}