// // PauseLayer::onQuit from 0x1404db760 to 0x1404db8a2 (322 bytes) // // 3 xrefs: // > PauseLayer::tryQuit @ 0x1404db6e4 // > PauseLayer::FLAlert_Clicked @ 0x1404db742 // > @ 0x1409299fc // // 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 11:33:04 +0000 // // Hidden C++ exception states: #wind=3 __int64 __fastcall PauseLayer::onQuit(struct cocos2d::CCObject *a1) { __int64 v2; // rax cocos2d::CCTouchDispatcher *v3; // rax __int64 v4; // rcx __int64 v5; // r8 __int64 v6; // r9 int v7; // ecx __int128 v9; // [rsp+30h] [rbp-28h] BYREF __int64 v10; // [rsp+40h] [rbp-18h] __int64 v11; // [rsp+48h] [rbp-10h] void *v12; // [rsp+60h] [rbp+8h] void *v13; // [rsp+68h] [rbp+10h] if ( *((_BYTE *)a1 + 545) ) { *((_BYTE *)a1 + 545) = 0; v2 = cocos2d::CCDirector::sharedDirector(a1); v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2); cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1); } cocos2d::CCNode::unscheduleAllSelectors(a1); v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v13 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } PlayLayer::onQuit(*(_QWORD *)(v4 + 560)); v9 = 0; *(_QWORD *)&v9 = sub_14003D460(0x20u); v10 = 16; v11 = 31; strcpy((char *)v9, "quitSound_01.ogg"); v7 = qword_14090BF60; if ( !qword_14090BF60 ) { v12 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v7 = qword_14090BF60; } return FMODAudioEngine::playEffect(v7, (__int64)&v9, v5, v6, 1060320051); }
GD Web Decomp Icon

GD Web Decomp

Raw Source