//
// sub_1008F6BF0 from 0x1008f6bf0 to 0x1008f6c5b (107 bytes)
//
// 1 xrefs:
// > sub_1008F3770 @ 0x1008f4be9
//
// 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:37:58 +0000
//
void __fastcall sub_1008F6BF0(__int64 a1)
{
__int64 v1; // rcx
_DWORD *v2; // rax
_DWORD *v3; // rbx
__int64 v4; // r14
int HighestChildZ; // ecx
int v6; // eax
v1 = *(_QWORD *)(a1 + 1088);
if ( v1 )
{
v2 = InfoLayer::create(0, 0, 0, v1);
if ( v2 )
{
v3 = v2;
v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v4);
v6 = 110;
if ( HighestChildZ >= 110 )
v6 = cocos2d::CCScene::getHighestChildZ(v4) + 1;
v3[148] = v6;
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 1312LL))(v3);
}
}
}