//
// cocos2d::CCLayer::onExit from 0x1004b0fd0 to 0x1004b10c8 (248 bytes)
//
// 325 xrefs:
// > PlayLayer::onExit @ 0x1000bf7b9
// > MapSelectLayer::onExit @ 0x100269148
// > LevelAreaLayer::onExit @ 0x100279a39
// > LevelAreaInnerLayer::onExit @ 0x10027bb39
// > GJPromoPopup::onExit @ 0x1002b6769
// > GJPathsLayer::onExit @ 0x1002feab9
// > GJShopLayer::onExit @ 0x100324cb4
// > cocos2d::extension::CCControl::onExit @ 0x100351975
// > LevelListLayer::onExit @ 0x10035efe9
// > SecretLayer4::onExit @ 0x1003b5149
// > WorldSelectLayer::onExit @ 0x1003c3a79
// > SecretLayer5::onExit @ 0x10047e919
// > SecretLayer2::onExit @ 0x1004a3169
// > SecretLayer3::onExit @ 0x1004a8484
// > sub_10056A8F0 @ 0x10056a96c
// > sub_10056A990 @ 0x10056aa0c
// > sub_10056AA30 @ 0x10056aaa3
// > sub_10056AAC0 @ 0x10056ab3c
// > sub_10056AB60 @ 0x10056abd3
// > GauntletSelectLayer::onExit @ 0x100573809
// > TableView::onExit @ 0x100622b05
// > SecretRewardsLayer::onExit @ 0x10063a434
// > cocos2d::CCMenu::onExit @ 0x1007930e7
// > cocos2d::CCMenu::onExit @ 0x10079312c
// > ??> @ 0x1008af020
// > ??> @ 0x1008af818
// > ??> @ 0x1008b03c8
// > ??> @ 0x1008b0bd8
// > ??> @ 0x1008b1250
// > ??> @ 0x1008b17d8
// > ??> @ 0x1008b22b8
// > ??> @ 0x1008b2ab0
// > ??> @ 0x1008b4d98
// > ??> @ 0x1008b5590
// > ??> @ 0x1008b5d48
// > ??> @ 0x1008b6a40
// > ??> @ 0x1008b8680
// > ??> @ 0x1008b8e18
// > ??> @ 0x1008c0460
// > ??> @ 0x1008c0c80
// > ??> @ 0x1008c1690
// > ??> @ 0x1008c1dd0
// > ??> @ 0x1008c23a0
// > ??> @ 0x1008d9648
// > ??> @ 0x1008d9e48
// > ??> @ 0x1008da640
// > ??> @ 0x1008dad38
// > ??> @ 0x1008db518
// > ??> @ 0x1008dc968
// > ??> @ 0x1008ddde0
// > ??> @ 0x1008de5b8
// > ??> @ 0x1008dec80
// > ??> @ 0x1008df388
// > ??> @ 0x1008dfb00
// > ??> @ 0x1008e0200
// > ??> @ 0x1008e1500
// > ??> @ 0x1008e1ce8
// > ??> @ 0x1008e28e0
// > ??> @ 0x1008e31b0
// > ??> @ 0x1008e3720
// > ??> @ 0x1008e3c90
// > ??> @ 0x1008e4200
// > ??> @ 0x1008e4770
// > ??> @ 0x1008e4ce0
// > ??> @ 0x1008e52a0
// > ??> @ 0x1008e5848
// > ??> @ 0x1008e5e08
// > ??> @ 0x1008e6378
// > ??> @ 0x1008e68e8
// > ??> @ 0x1008e6e98
// > ??> @ 0x1008e7428
// > ??> @ 0x1008e7998
// > ??> @ 0x1008e7f08
// > ??> @ 0x1008e84e8
// > ??> @ 0x1008e8ac8
// > ??> @ 0x1008e90a8
// > ??> @ 0x1008e9618
// > ??> @ 0x1008e9b88
// > ??> @ 0x1008ea0f8
// > ??> @ 0x1008ebff0
// > ??> @ 0x1008ec700
// > ??> @ 0x1008ecea0
// > ??> @ 0x1008ed550
// > ??> @ 0x1008edcd8
// > ??> @ 0x1008ee4e8
// > ??> @ 0x1008f1318
// > ??> @ 0x1008f19c8
// > ??> @ 0x1008f2108
// > ??> @ 0x1008f2818
// > ??> @ 0x1008f30f8
// > ??> @ 0x1008f3f28
// > ??> @ 0x1008f6078
// > ??> @ 0x1008f6788
// > ??> @ 0x1008f7318
// > ??> @ 0x1008f7b60
// > ??> @ 0x1008f8170
// > ??> @ 0x1008f8820
// > ??> @ 0x1008f9018
// > ??> @ 0x1008f96c0
// > ??> @ 0x1008f9eb0
// > ??> @ 0x1008fa590
// > ??> @ 0x1008facb0
// > ??> @ 0x1008fb400
// > ??> @ 0x1008fbb90
// > ??> @ 0x1008fc2a0
// > ??> @ 0x1008fca08
// > ??> @ 0x1008fd200
// > ??> @ 0x1008fd910
// > ??> @ 0x1008fe108
// > ??> @ 0x1008fe918
// > ??> @ 0x1008ff1d0
// > ??> @ 0x1008ff9e0
// > ??> @ 0x100900248
// > ??> @ 0x1009009c0
// > ??> @ 0x1009010e8
// > ??> @ 0x100901860
// > ??> @ 0x1009022d8
// > ??> @ 0x100902b00
// > ??> @ 0x1009032f8
// > ??> @ 0x100904568
// > ??> @ 0x100905300
// > ??> @ 0x100905af8
// > ??> @ 0x1009062f0
// > ??> @ 0x100906ae8
// > ??> @ 0x100907330
// > ??> @ 0x100907e40
// > ??> @ 0x1009086f8
// > ??> @ 0x100908dc0
// > ??> @ 0x10090ab68
// > ??> @ 0x10090b2a8
// > ??> @ 0x10090bf10
// > ??> @ 0x10090d020
// > ??> @ 0x10090d6e8
// > ??> @ 0x10090df30
// > ??> @ 0x10090e728
// > ??> @ 0x10090ef20
// > ??> @ 0x10090f560
// > ??> @ 0x10090fad0
// > ??> @ 0x100910150
// > ??> @ 0x100910938
// > ??> @ 0x100911060
// > ??> @ 0x1009117e8
// > ??> @ 0x100912540
// > ??> @ 0x100912c20
// > ??> @ 0x100913f90
// > ??> @ 0x100917548
// > ??> @ 0x100918ca8
// > ??> @ 0x100919358
// > ??> @ 0x100919a08
// > ??> @ 0x10091a1e8
// > ??> @ 0x10091a910
// > ??> @ 0x10091b938
// > ??> @ 0x10091cbe8
// > ??> @ 0x10091d2b0
// > ??> @ 0x10091e510
// > ??> @ 0x10091f138
// > ??> @ 0x10091f930
// > ??> @ 0x10091ff38
// > ??> @ 0x1009208d0
// > ??> @ 0x1009210c8
// > ??> @ 0x1009218c0
// > ??> @ 0x1009220b8
// > ??> @ 0x100922878
// > ??> @ 0x100922e00
// > ??> @ 0x100923de0
// > ??> @ 0x100924ff8
// > ??> @ 0x1009257f0
// > ??> @ 0x100925fe8
// > ??> @ 0x1009267e0
// > ??> @ 0x100927480
// > ??> @ 0x100927a08
// > ??> @ 0x100928c68
// > ??> @ 0x10092d5d0
// > ??> @ 0x10092e630
// > ??> @ 0x10092f1c0
// > ??> @ 0x10092f748
// > ??> @ 0x10092ff40
// > ??> @ 0x100930710
// > ??> @ 0x100931200
// > ??> @ 0x1009320a8
// > ??> @ 0x100932630
// > ??> @ 0x100933430
// > ??> @ 0x100934788
// > ??> @ 0x100935878
// > ??> @ 0x100935ef0
// > ??> @ 0x100936868
// > ??> @ 0x100936f68
// > ??> @ 0x1009374f8
// > ??> @ 0x100938418
// > ??> @ 0x100938c38
// > ??> @ 0x100939300
// > ??> @ 0x100939b88
// > ??> @ 0x10093a248
// > ??> @ 0x10093aa08
// > ??> @ 0x10093bb70
// > ??> @ 0x10093c158
// > ??> @ 0x1009427f8
// > ??> @ 0x100943050
// > ??> @ 0x100943ab0
// > ??> @ 0x1009441d0
// > ??> @ 0x100944948
// > ??> @ 0x100945178
// > ??> @ 0x1009464d0
// > ??> @ 0x100946e28
// > ??> @ 0x100948820
// > ??> @ 0x100948ee0
// > ??> @ 0x100949450
// > ??> @ 0x100949ab0
// > ??> @ 0x10094a158
// > ??> @ 0x10094a7c0
// > ??> @ 0x10094b010
// > ??> @ 0x10094b808
// > ??> @ 0x10094c000
// > ??> @ 0x10094c898
// > ??> @ 0x10094d130
// > ??> @ 0x10094d928
// > ??> @ 0x10094e120
// > ??> @ 0x10094f118
// > ??> @ 0x10094fbf8
// > ??> @ 0x1009503f0
// > ??> @ 0x100950ab8
// > ??> @ 0x100951888
// > ??> @ 0x100952080
// > ??> @ 0x100952878
// > ??> @ 0x100953070
// > ??> @ 0x100953868
// > ??> @ 0x1009540a8
// > ??> @ 0x1009548a0
// > ??> @ 0x1009550c0
// > ??> @ 0x100955788
// > ??> @ 0x1009564c8
// > ??> @ 0x100956be0
// > ??> @ 0x100957310
// > ??> @ 0x1009579c8
// > ??> @ 0x100958230
// > ??> @ 0x100958998
// > ??> @ 0x100958f20
// > ??> @ 0x100959f40
// > ??> @ 0x10095a7c0
// > ??> @ 0x10095af00
// > ??> @ 0x10095b6f8
// > ??> @ 0x10095bef0
// > ??> @ 0x10095c630
// > ??> @ 0x10095cd50
// > ??> @ 0x10095d6a0
// > ??> @ 0x10095e3d8
// > ??> @ 0x10095eae8
// > ??> @ 0x10095ff80
// > ??> @ 0x100963048
// > ??> @ 0x100963710
// > ??> @ 0x100963dd8
// > ??> @ 0x100964508
// > ??> @ 0x1009660b8
// > ??> @ 0x100966898
// > ??> @ 0x1009670a8
// > ??> @ 0x1009678a0
// > ??> @ 0x100968098
// > ??> @ 0x100968890
// > ??> @ 0x100969088
// > ??> @ 0x100969880
// > ??> @ 0x10096a0b8
// > ??> @ 0x10096a8b0
// > ??> @ 0x10096b0e8
// > ??> @ 0x10096b8e0
// > ??> @ 0x10096c0d8
// > ??> @ 0x10096c8d0
// > ??> @ 0x10096d0c8
// > ??> @ 0x10096d8c0
// > ??> @ 0x10096e0b8
// > ??> @ 0x10096e8b0
// > ??> @ 0x10096f0a8
// > ??> @ 0x10096f8a0
// > ??> @ 0x100970eb0
// > ??> @ 0x100972e88
// > ??> @ 0x100973548
// > ??> @ 0x100973c10
// > ??> @ 0x100975ed8
// > ??> @ 0x100976a28
// > ??> @ 0x100977428
// > ??> @ 0x100977c20
// > ??> @ 0x100978418
// > ??> @ 0x100978b28
// > ??> @ 0x100979320
// > ??> @ 0x1009798c0
// > ??> @ 0x100979e60
// > ??> @ 0x10097afd8
// > ??> @ 0x10097c538
// > ??> @ 0x10097d088
// > ??> @ 0x10097d6c0
// > ??> @ 0x10097de60
// > ??> @ 0x10097f590
// > ??> @ 0x100980120
// > ??> @ 0x100980918
// > ??> @ 0x1009810e0
// > ??> @ 0x100982ce0
// > ??> @ 0x100983420
// > ??> @ 0x100983ae8
// > ??> @ 0x100984070
// > ??> @ 0x100984680
// > ??> @ 0x100984d88
// > ??> @ 0x100986278
// > ??> @ 0x100986eb8
// > ??> @ 0x100987580
// > ??> @ 0x100987d78
// > ??> @ 0x1009885a0
// > ??> @ 0x100988d98
// > ??> @ 0x100989d40
// > ??> @ 0x10098ab80
// > ??> @ 0x10098b780
// > ??> @ 0x10098c988
// > ??> @ 0x10098d430
// > ??> @ 0x10098dc28
// > ??> @ 0x10098e970
// > ??> @ 0x10098f0b8
// > ??> @ 0x10098f768
// > ??> @ 0x10098fe60
// > ??> @ 0x100990510
// > ??> @ 0x100990d20
// > ??> @ 0x100991368
// > ??> @ 0x100992798
// > ??> @ 0x100992fe0
// > ??> @ 0x100994048
// > ??> @ 0x100994918
// > ??> @ 0x100994fe0
// > ??> @ 0x1009956a8
//
// 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 cocos2d::CCLayer::onExit(cocos2d::CCLayer *a1)
{
cocos2d::CCDirector *v1; // r14
cocos2d::CCMouseDispatcher *v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
cocos2d::CCKeypadDispatcher *v4; // rax
cocos2d::CCKeyboardDispatcher *v5; // rax
v1 = cocos2d::CCDirector::sharedDirector();
if ( a1->m_bTouchEnabled )
{
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getTouchDispatcher)(v1);
cocos2d::CCTouchDispatcher::removeDelegate(v3, &a1->cocos2d::CCTouchDelegate);
if ( !a1->m_bAccelerometerEnabled )
{
LABEL_3:
if ( !a1->m_bKeypadEnabled )
goto LABEL_4;
goto LABEL_10;
}
}
else if ( !a1->m_bAccelerometerEnabled )
{
goto LABEL_3;
}
((void (__fastcall *)(cocos2d::CCDirector *))v1->getAccelerometer)(v1);
if ( !a1->m_bKeypadEnabled )
{
LABEL_4:
if ( !a1->m_bKeyboardEnabled )
goto LABEL_5;
LABEL_11:
v5 = (cocos2d::CCKeyboardDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getKeyboardDispatcher)(v1);
cocos2d::CCKeyboardDispatcher::removeDelegate(v5, &a1->cocos2d::CCKeyboardDelegate);
if ( !a1->m_bMouseEnabled )
goto LABEL_7;
goto LABEL_6;
}
LABEL_10:
v4 = (cocos2d::CCKeypadDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getKeypadDispatcher)(v1);
cocos2d::CCKeypadDispatcher::removeDelegate(v4, &a1->cocos2d::CCKeypadDelegate);
if ( a1->m_bKeyboardEnabled )
goto LABEL_11;
LABEL_5:
if ( a1->m_bMouseEnabled )
{
LABEL_6:
v2 = (cocos2d::CCMouseDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getMouseDispatcher)(v1);
cocos2d::CCMouseDispatcher::removeDelegate(v2, &a1->cocos2d::CCMouseDelegate);
}
LABEL_7:
cocos2d::CCNode::onExit(a1);
}