//
// LevelPickerPopup::applyKind from 0x747900 to 0x747986 (134 bytes)
//
// 1 xrefs:
// > LevelPickerPopup::onToggleKind @ 0x75a9fe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:43 +0000
//
int __fastcall LevelPickerPopup::applyKind(LevelPickerPopup *this)
{
cocos2d::CCSpriteFrameCache *v2; // r0
int v3; // r5
void (__fastcall *v4)(int, int); // r6
cocos2d::CCSpriteFrameCache *v5; // r0
const char *v6; // r1
int v7; // r0
int v8; // r0
const char *v9; // r1
int result; // r0
const char *v11; // r1
v2 = *((cocos2d::CCSpriteFrameCache **)this + 154);
if ( v2 )
v2 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v2 + 172))(
v2,
*((unsigned __int8 *)this + 613) ^ 1);
v3 = *((_DWORD *)this + 155);
if ( v3 )
{
v4 = *(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 580);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
if ( *((_BYTE *)this + 613) )
v6 = "GJ_viewLevelsBtn_001.png";
else
v6 = "GJ_viewListsBtn_001.png";
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
v4(v3, v7);
}
v8 = *((_DWORD *)this + 145);
if ( v8 )
{
if ( *((_BYTE *)this + 613) )
v9 = "Share List";
else
v9 = "Share Level";
(*(void (__fastcall **)(int, const char *))(*(_DWORD *)v8 + 464))(v8, v9);
}
result = *((_DWORD *)this + 166);
if ( result )
{
if ( *((_BYTE *)this + 613) )
v11 = "Showing your online lists";
else
v11 = "Showing your online levels";
return (*(int (__fastcall **)(int, const char *))(*(_DWORD *)result + 464))(result, v11);
}
return result;
}