//
// LevelSelectLayer::onInfo from 0x140442fa0 to 0x140443005 (101 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::init @ 0x140442393
// > ??> @ 0x14092717c
//
// This function is hookable on this platform (idp: pc, 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 11:32:22 +0000
//
__int64 __fastcall LevelSelectLayer::onInfo(__int64 a1)
{
__int64 v1; // rdi
signed int v2; // ebx
cocos2d::CCArray *v3; // rcx
signed int v4; // ecx
struct cocos2d::CCObject *v5; // rax
v1 = *(_QWORD *)(a1 + 448);
v2 = *(_DWORD *)(v1 + 588);
v3 = *(cocos2d::CCArray **)(v1 + 480);
if ( *(_BYTE *)(v1 + 456) )
{
v4 = cocos2d::CCArray::count(v3);
if ( v2 <= 0 )
{
for ( ; v2 < 0; v2 += v4 )
;
}
else
{
v2 %= v4;
}
v3 = *(cocos2d::CCArray **)(v1 + 480);
}
v5 = cocos2d::CCArray::objectAtIndex(v3, v2);
return LevelPage::onInfo(v5);
}