//
// PauseLayer::onEdit from 0x7d62b0 to 0x7d6388 (216 bytes)
//
// 3 xrefs:
// > PauseLayer::onTryEdit @ 0x7d64b8
// > PauseLayer::FLAlert_Clicked @ 0x7d662c
// > ??> @ 0xad7e8
//
// This function is hookable on this platform (idp: arm, 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:54:21 +0000
//
__int64 __fastcall PauseLayer::onEdit(PauseLayer *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
__int64 v4; // x0
__int64 v5; // x0
float *v6; // x0
__int64 v7; // x0
GameManager *v8; // x0
__int64 v9; // x0
GameManager *v10; // x0
__int64 v11; // x0
GameManager *v12; // x0
__int64 v13; // x0
cocos2d::CCDelayTime *v14; // x0
cocos2d::CCSequence *v15; // x20
cocos2d::CCFiniteTimeAction *v16; // x0
cocos2d::CCAction *v17; // x0
result = *(unsigned int *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(this) + 544) + 1936LL) + 1140LL);
if ( (_DWORD)result == 2
|| (v4 = GameManager::sharedState((GameManager *)result),
result = (unsigned int)(*(_DWORD *)(v4 + 1032) - *(_DWORD *)(v4 + 1036)),
(int)result > 0) )
{
v5 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)result);
v6 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 128LL))(v5);
v6[14] = 1.0;
v7 = GameManager::sharedState((GameManager *)v6);
v8 = (GameManager *)PlayLayer::stopRecording(*(PlayLayer **)(v7 + 544));
v9 = GameManager::sharedState(v8);
v10 = (GameManager *)cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(v9 + 544));
v11 = GameManager::sharedState(v10);
v12 = (GameManager *)cocos2d::CCNode::unscheduleAllSelectors(*(cocos2d::CCNode **)(v11 + 544));
v13 = GameManager::sharedState(v12);
v14 = (cocos2d::CCDelayTime *)GJBaseGameLayer::resetAudio(*(GJBaseGameLayer **)(v13 + 544));
v15 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v14, 0.0);
v16 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, PauseLayer::goEdit, 0);
v17 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v15, v16, 0);
return cocos2d::CCNode::runAction(this, v17);
}
return result;
}