//
// PauseLayer::onEdit from 0x14037e700 to 0x14037e8e4 (484 bytes)
//
// 3 xrefs:
// > PauseLayer::onTryEdit @ 0x14037e6fa
// > PauseLayer::FLAlert_Clicked @ 0x14037eb89
// > ??> @ 0x1406d5dbc
//
// 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=6
void PauseLayer::onEdit(PauseLayer *a1, cocos2d::CCObject *a2)
{
float v2; // xmm3_4
__int64 v4; // rdx
__int64 v5; // rcx
__int64 v6; // rax
__int64 v7; // rcx
__int64 v8; // rcx
__int64 v9; // rcx
GJBaseGameLayer *v10; // rcx
__int64 v11; // rbx
struct cocos2d::CCDelayTime *v12; // rax
struct cocos2d::CCSequence *v13; // rax
cocos2d::ccColor3B *v14; // r8
float v15; // [rsp+20h] [rbp-8h]
void *v16; // [rsp+38h] [rbp+10h]
void *v17; // [rsp+38h] [rbp+10h]
void *v18; // [rsp+38h] [rbp+10h]
void *v19; // [rsp+38h] [rbp+10h]
void *v20; // [rsp+38h] [rbp+10h]
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v16 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v16);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
v5 = *(_QWORD *)(*(_QWORD *)(v4 + 520) + 2168LL);
if ( *(_DWORD *)(v5 + 1108) == 2 || *(_DWORD *)(v4 + 1012) - *(_DWORD *)(v4 + 1016) > 0 )
{
v6 = cocos2d::CCDirector::sharedDirector(v5);
*(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 112LL))(v6) + 56) = 1065353216;
v7 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v17 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v17);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v7 = qword_1406C2ED8;
}
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(v7 + 520), 31);
v8 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v18 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v18);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v8 = qword_1406C2ED8;
}
cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(v8 + 520));
v9 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v19 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v19);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v9 = qword_1406C2ED8;
}
cocos2d::CCNode::unscheduleAllSelectors(*(cocos2d::CCNode **)(v9 + 520));
if ( !qword_1406C2ED8 )
{
v20 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v20);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
}
GJBaseGameLayer::resetAudio(v10);
v11 = cocos2d::CCCallFunc::create(a1, PauseLayer::goEdit);
v12 = cocos2d::CCDelayTime::create(0.0);
v13 = cocos2d::CCSequence::create(v12, v11, 0);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v13, v14, v2, v15);
}
}