//
// sub_100053690 from 0x100053690 to 0x100053758 (200 bytes)
//
// 3 xrefs:
// > sub_1000514CC @ 0x100051584
// > sub_1000534B8 @ 0x100053510
// > TouchControlEditLayer::valueDidChange @ 0x10052d900
//
// 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:57:44 +0000
//
__int64 __fastcall sub_100053690(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x0
const char *v4; // x1
__int64 v5; // x0
__int64 result; // x0
__int64 v7; // x20
__int64 v8; // x0
const char *v9; // x1
__int64 v10; // x1
v2 = *(_QWORD *)(a1 + 320);
v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(a1);
if ( (*(_BYTE *)(a1 + 381) & 1) != 0 )
{
v4 = "PBtn_Arrow_001.png";
}
else
{
v4 = "PBtn_Jump_001.png";
if ( (*(_BYTE *)(a1 + 386) & 1) == 0 && !*(_BYTE *)(a1 + 387) )
v4 = "PBtn_Move_001.png";
}
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, v4);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1160LL))(v2, v5);
v7 = *(_QWORD *)(a1 + 328);
if ( v7 )
{
v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(result);
if ( *(_BYTE *)(a1 + 387) )
v9 = "PBtn_Jump_001.png";
else
v9 = "PBtn_Move_001.png";
v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1160LL))(v7, v10);
}
return result;
}