//
// sub_100597720 from 0x100597720 to 0x10059781c (252 bytes)
//
// 0 xrefs:
//
// 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:32:29 +0000
//
char *__fastcall sub_100597720(__int64 a1, unsigned int a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x200u);
cocos2d::CCLayer::CCLayer((__int64)v2);
*(_QWORD *)v2 = off_100B71028;
*((_QWORD *)v2 + 40) = off_100B714B8;
*((_QWORD *)v2 + 41) = &off_100B71528;
*((_QWORD *)v2 + 42) = off_100B71540;
*((_QWORD *)v2 + 43) = off_100B71560;
*((_QWORD *)v2 + 44) = off_100B71588;
*(_OWORD *)(v2 + 404) = 0;
*(_OWORD *)(v2 + 420) = 0;
*(_OWORD *)(v2 + 440) = 0;
*((_WORD *)v2 + 228) = 0;
sub_100278250((float *)v2 + 115, 0.0, 0.0);
*((_QWORD *)v2 + 63) = 0;
*(_OWORD *)(v2 + 468) = 0;
*(_OWORD *)(v2 + 481) = 0;
if ( (unsigned __int8)sub_100597850(v2, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}