//
// sub_100996840 from 0x100996840 to 0x1009968a6 (102 bytes)
//
// 1 xrefs:
// > sub_1009948B0 @ 0x1009954cb
//
// 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 12:39:11 +0000
//
__int64 __fastcall sub_100996840(__int64 a1)
{
_DWORD *v1; // rbx
__int64 v2; // r14
int HighestChildZ; // ecx
int v4; // eax
v1 = InfoLayer::create(0, *(_QWORD *)(a1 + 872), 0, 0);
v2 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v2);
v4 = 110;
if ( HighestChildZ >= 110 )
v4 = cocos2d::CCScene::getHighestChildZ(v2) + 1;
v1[148] = v4;
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v1 + 1312LL))(v1);
return sub_100894470((__int64)v1);
}