//
// InfoLayer::setupLevelInfo from 0x53cc68 to 0x53cddc (372 bytes)
//
// 1 xrefs:
// > InfoLayer::init @ 0x53f69a
//
// 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:52:15 +0000
//
int __fastcall InfoLayer::setupLevelInfo(InfoLayer *this)
{
int v2; // r3
const char *v3; // r4
cocos2d::CCString *v4; // r0
int v5; // r3
int v6; // r3
cocos2d::CCLabelBMFont *CString; // r0
const char *v8; // r2
int v9; // r5
cocos2d::CCMenu *v10; // r0
int v11; // r9
const char *v12; // r2
cocos2d::CCString *v13; // r0
cocos2d::CCLabelBMFont *v14; // r0
int v15; // r10
int v16; // r0
int (__fastcall *v17)(int, _BYTE *); // r8
void (__fastcall *v19)(int, _DWORD *); // [sp+Ch] [bp-38h]
float v20[2]; // [sp+14h] [bp-30h] BYREF
_BYTE v21[8]; // [sp+1Ch] [bp-28h] BYREF
_BYTE v22[8]; // [sp+24h] [bp-20h] BYREF
_BYTE v23[8]; // [sp+2Ch] [bp-18h] BYREF
_DWORD v24[2]; // [sp+34h] [bp-10h] BYREF
cocos2d::CCDirector::sharedDirector(this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v20);
v2 = *((_DWORD *)this + 136);
if ( v2 )
{
v3 = *(const char **)(v2 + 276);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Version: %i",
*(const char **)(v2 + 280));
}
else
{
v5 = *((_DWORD *)this + 137);
if ( v5 )
{
v3 = *(const char **)(v5 + 264);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Version: %i",
*(const char **)(v5 + 276));
}
else
{
v6 = *((_DWORD *)this + 134);
v3 = (const char *)(*(_DWORD *)(v6 + 268) - *(_DWORD *)(v6 + 272));
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Version: %i",
*(const char **)(v6 + 612));
}
}
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v4);
v9 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v8);
v10 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v9,
2);
v11 = cocos2d::CCMenu::create(v10);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v11, 2);
if ( v3 )
{
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"ID: %i", v3);
v14 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v13);
}
else
{
v14 = (cocos2d::CCLabelBMFont *)"ID: na";
}
v15 = cocos2d::CCLabelBMFont::create(v14, "goldFont.fnt", v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v20[0] * 0.5, (float)((float)(v20[1] * 0.5) - 145.0) + 14.0);
v19 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, -50.0, 0.0);
cocos2d::CCPoint::operator+(v24, v21, v23);
v19(v9, v24);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 80))(v9, 1058642330);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 80))(v15, 1058642330);
v24[0] = InfoLayer::onCopyLevelID;
v24[1] = 0;
v16 = CCMenuItemSpriteExtra::create(v15, 0, (int)this, (int)InfoLayer::onCopyLevelID, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 228))(v11, v16);
v17 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 50.0, 0.0);
cocos2d::CCPoint::operator+(v23, v21, v22);
return v17(v11, v23);
}