//
// sub_10046A558 from 0x10046a558 to 0x10046a610 (184 bytes)
//
// 1 xrefs:
// > sub_100469F94 @ 0x10046a394
//
// 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:05:34 +0000
//
_QWORD **__fastcall sub_10046A558(_QWORD **result)
{
_QWORD **v1; // x19
__int64 v2; // x0
char *v3; // x1
__int64 v4; // x0
char *v5; // x1
__int64 v6; // x0
const char *v7; // x1
if ( result[89] )
{
v1 = result;
v2 = (*(__int64 (__fastcall **)(_QWORD *))(*result[104] + 1072LL))(result[104]);
v3 = *((_DWORD *)v1[89] + 35) == 1 ? "GJ_button_02.png" : "GJ_button_01.png";
ButtonSprite::updateBGImage(v2, (__int64)v3);
v4 = (*(__int64 (__fastcall **)(_QWORD *))(*v1[105] + 1072LL))(v1[105]);
v5 = *((_DWORD *)v1[89] + 35) == 2 ? "GJ_button_02.png" : "GJ_button_01.png";
ButtonSprite::updateBGImage(v4, (__int64)v5);
result = (_QWORD **)v1[106];
if ( result )
{
v6 = ((__int64 (__fastcall *)(_QWORD **))(*result)[134])(result);
if ( *((_DWORD *)v1[89] + 35) == 3 )
v7 = "GJ_button_02.png";
else
v7 = "GJ_button_01.png";
return (_QWORD **)ButtonSprite::updateBGImage(v6, (__int64)v7);
}
}
return result;
}