//
// sub_1004D2430 from 0x1004d2430 to 0x1004d24b0 (128 bytes)
//
// 1 xrefs:
// > sub_1004CF9C0 @ 0x1004d0e74
//
// 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 11:06:29 +0000
//
_QWORD *__fastcall sub_1004D2430(_QWORD *result)
{
__int64 v1; // x3
_DWORD *v2; // x19
__int64 v3; // x20
int v4; // w8
v1 = result[136];
if ( v1 )
{
result = InfoLayer::create(0, 0, 0, v1);
if ( result )
{
v2 = result;
v3 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
if ( (int)cocos2d::CCScene::getHighestChildZ(v3) < 110 )
v4 = 110;
else
v4 = cocos2d::CCScene::getHighestChildZ(v3) + 1;
v2[148] = v4;
return (_QWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v2 + 1312LL))(v2);
}
}
return result;
}