//
// LevelPickerPopup::setupPageInfo from 0x74f06c to 0x74f130 (196 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelPickerPopup::setupPageInfo @ 0x74f13c
//
// 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:49 +0000
//
unsigned int __fastcall LevelPickerPopup::setupPageInfo(int a1, int a2, char *a3)
{
unsigned int result; // r0
int v7; // r2
int v8; // r2
const char *v9; // r4
size_t v10; // r0
cocos2d::CCArray *v11; // r4
cocos2d::CCString *v12; // r0
cocos2d::CCString *v13; // r0
int v14[3]; // [sp+8h] [bp-14h] BYREF
if ( !a3
|| ((result = strlen(a3), v7 = *(unsigned __int8 *)(a1 + 628), (v7 & 1) != 0)
? (v8 = *(_DWORD *)(a1 + 632))
: (v8 = v7 >> 1),
result == v8 && (result = std::string::compare((unsigned __int8 *)(a1 + 628), 0, 0xFFFFFFFF, a3, result)) == 0) )
{
if ( (*(_BYTE *)a2 & 1) != 0 )
v9 = *(const char **)(a2 + 8);
else
v9 = (const char *)(a2 + 1);
memset(v14, 0, sizeof(v14));
v10 = strlen(v9);
std::string::__init(v14, v9, v10);
v11 = sub_74EB30((cocos2d::CCArray *)v14, ":");
result = std::string::~string((int)v14);
if ( v11 )
{
result = cocos2d::CCArray::count(v11);
if ( result > 1 )
{
v12 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v11, 0);
*(_DWORD *)(a1 + 640) = cocos2d::CCString::intValue(v12);
v13 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v11, 1u);
result = cocos2d::CCString::intValue(v13);
*(_DWORD *)(a1 + 644) = result;
}
}
}
return result;
}