//
// sub_140077F10 from 0x140077f10 to 0x14007800c (252 bytes)
//
// 6 xrefs:
// > AppDelegate::platformShutdown @ 0x1400825b4
// > GameManager::reportAchievementWithID @ 0x14017e14a
// > GameManager::update @ 0x140189c2d
// > GJAccountManager::loginAccount @ 0x140200cad
// > WinMain @ 0x1404cfac3
// > ??> @ 0x1406c6624
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
__int64 sub_140077F10()
{
__int64 result; // rax
bool (__fastcall *init)(cocos2d::CCNode *); // rdx
cocos2d::CCNode *v2; // [rsp+30h] [rbp+8h]
result = qword_1406C2EB0;
if ( !qword_1406C2EB0 )
{
v2 = (cocos2d::CCNode *)operator new(0x190u);
cocos2d::CCNode::CCNode(v2);
v2->__vftable = (cocos2d::CCNode_vtbl *)&SteamManager::`vftable';
LOBYTE(v2[1].m_uID) = 0;
v2[1].m_nLuaID = 0;
v2[1].__vftable = (cocos2d::CCNode_vtbl *)&CCallback::`vftable';
*(_QWORD *)&v2[1].m_nTag = v2;
*(_QWORD *)&v2[1].m_uAutoReleaseCount = sub_140078010;
SteamAPI_RegisterCallback(&v2[1], 1101);
LOBYTE(v2[1].m_unknown2) = 0;
v2[1].m_nZOrder = 0;
*(_QWORD *)&v2[1].m_uIndexInArray = &CCallback::`vftable';
*(_QWORD *)&v2[1].m_uOrderOfArrival = v2;
*(_QWORD *)&v2[1].m_fRotationX = guard_check_icall_nop;
SteamAPI_RegisterCallback(&v2[1].m_uIndexInArray, 1103);
LOWORD(v2[1].m_fScaleX) = 0;
*(_QWORD *)&v2[1].m_fVertexZ = 0;
qword_1406C2EB0 = (__int64)v2;
init = v2->init;
if ( init == CCNodeContainer::init )
cocos2d::CCNode::init(v2);
else
init(v2);
return qword_1406C2EB0;
}
return result;
}