//
// sub_1001436A4 from 0x1001436a4 to 0x1001436ec (72 bytes)
//
// 3 xrefs:
// > PauseLayer::goEdit @ 0x1001436a0
// > EndLevelLayer::goEdit @ 0x1002f8424
// > EditorPauseLayer::playStep3 @ 0x10039e7bc
//
// 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
//
void __fastcall sub_1001436A4(__int64 a1, cocos2d::CCObject *a2)
{
cocos2d::CCObject *v3; // x0
v3 = *(cocos2d::CCObject **)(a1 + 13672);
if ( v3 != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v3 = *(cocos2d::CCObject **)(a1 + 13672);
}
if ( v3 )
cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 13672) = a2;
}
}