//
// sub_1005056B4 from 0x1005056b4 to 0x100505798 (228 bytes)
//
// 1 xrefs:
// > sub_1005054E4 @ 0x100505508
//
// 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:06:56 +0000
//
__int64 __fastcall sub_1005056B4(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x0
char *v5; // x1
__int64 v6; // x0
__int64 v7; // x0
const char *v8; // x1
__int64 result; // x0
const char *v10; // x1
v2 = *(_QWORD *)(a1 + 816);
if ( v2 )
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v2 + 344LL))(v2, (*(_BYTE *)(a1 + 809) & 1) == 0);
v3 = *(_QWORD *)(a1 + 824);
if ( v3 )
{
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( *(_BYTE *)(a1 + 809) )
v5 = "GJ_viewLevelsBtn_001.png";
else
v5 = "GJ_viewListsBtn_001.png";
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v6);
}
v7 = *(_QWORD *)(a1 + 744);
if ( v7 )
{
if ( *(_BYTE *)(a1 + 809) )
v8 = "Share List";
else
v8 = "Share Level";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v7 + 928LL))(v7, v8);
}
result = *(_QWORD *)(a1 + 904);
if ( result )
{
if ( *(_BYTE *)(a1 + 809) )
v10 = "Showing your online lists";
else
v10 = "Showing your online levels";
return (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)result + 928LL))(result, v10);
}
return result;
}