//
// LevelPickerPopup::applyKind from 0xc66ec0 to 0xc66fa8 (232 bytes)
//
// 2 xrefs:
// > LevelPickerPopup::onToggleKind @ 0xc846ec
// > ??> @ 0xb6b90
//
// 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 13:05:25 +0000
//
__int64 __fastcall LevelPickerPopup::applyKind(LevelPickerPopup *this)
{
__int64 v2; // x0
cocos2d::CCSpriteFrameCache **v3; // x20
void (__fastcall *v4)(cocos2d::CCSpriteFrameCache **, __int64); // x21
cocos2d::CCSpriteFrameCache *v5; // x0
const char *v6; // x1
__int64 v7; // x0
__int64 v8; // x0
__int64 result; // x0
v2 = *((_QWORD *)this + 102);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, *((unsigned __int8 *)this + 809) ^ 1u);
v3 = *((cocos2d::CCSpriteFrameCache ***)this + 103);
if ( v3 )
{
v4 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v3 + 145);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v3);
if ( *((_BYTE *)this + 809) )
v6 = "GJ_viewLevelsBtn_001.png";
else
v6 = "GJ_viewListsBtn_001.png";
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
v4(v3, v7);
}
v8 = *((_QWORD *)this + 93);
if ( v8 )
(*(void (**)(void))(*(_QWORD *)v8 + 928LL))();
result = *((_QWORD *)this + 113);
if ( result )
return (*(__int64 (**)(void))(*(_QWORD *)result + 928LL))();
return result;
}