{"type": "func", "start": 4200040, "end": 4200126, "name": "EditorPauseLayer::FLAlert_Clicked", "pseudocode": "// \n// EditorPauseLayer::FLAlert_Clicked from 0x401668 to 0x4016be (86 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorPauseLayer::FLAlert_Clicked @ 0x4016c2\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorPauseLayer::FLAlert_Clicked(EditorPauseLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  _BOOL4 v5; // r6\n\n  v5 = a3;\n  if ( a2->getTag(a2) == 1 && v5 )\n  {\n    EditorPauseLayer::onExitEditor(a1, nullptr);\n  }\n  else if ( a2->getTag(a2) == 2 && v5 )\n  {\n    EditorPauseLayer::doResetUnused(a1);\n  }\n  else if ( a2->getTag(a2) == 3 && v5 )\n  {\n    EditorPauseLayer::saveLevel(a1);\n  }\n}", "assembly": "; \n; EditorPauseLayer::FLAlert_Clicked from 0x401668 to 0x4016be (86 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorPauseLayer::FLAlert_Clicked @ 0x4016c2\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR             R3, [R1]                                               ; +0x0, 0x401668\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x40166a\nMOV             R5, R0                                                 ; +0x4, 0x40166c\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x40166e\nMOV             R0, R1                                                 ; +0x8, 0x401670\nMOV             R4, R1                                                 ; +0xa, 0x401672\nMOV             R6, R2                                                 ; +0xc, 0x401674\nBLX             R3                                                     ; +0xe, 0x401676\nCMP             R0, #1                                                 ; +0x10, 0x401678\nBNE             loc_40167E                                             ; +0x12, 0x40167a\nCBNZ            R6, loc_401696                                         ; +0x14, 0x40167c\nLDR             R3, [R4]                                               ; +0x16, 0x40167e\nMOV             R0, R4                                                 ; +0x18, 0x401680\nLDR             R3, [R3,#0x20]                                         ; +0x1a, 0x401682\nBLX             R3                                                     ; +0x1c, 0x401684\nCMP             R0, #2                                                 ; +0x1e, 0x401686\nBNE             loc_4016A2                                             ; +0x20, 0x401688\nCBZ             R6, loc_4016A2                                         ; +0x22, 0x40168a\nMOV             R0, R5; this                                           ; +0x24, 0x40168c\nPOP.W           {R4-R6,LR}                                             ; +0x26, 0x40168e\nB.W             _ZN16EditorPauseLayer13doResetUnusedEv; EditorPauseLayer::doResetUnused(void) ; +0x2a, 0x401692\nMOV             R0, R5; this                                           ; +0x2e, 0x401696\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x30, 0x401698\nPOP.W           {R4-R6,LR}                                             ; +0x32, 0x40169a\nB.W             _ZN16EditorPauseLayer12onExitEditorEPN7cocos2d8CCObjectE; EditorPauseLayer::onExitEditor(cocos2d::CCObject *) ; +0x36, 0x40169e\nLDR             R3, [R4]                                               ; +0x3a, 0x4016a2\nMOV             R0, R4                                                 ; +0x3c, 0x4016a4\nLDR             R3, [R3,#0x20]                                         ; +0x3e, 0x4016a6\nBLX             R3                                                     ; +0x40, 0x4016a8\nCMP             R0, #3                                                 ; +0x42, 0x4016aa\nBNE             locret_4016BC                                          ; +0x44, 0x4016ac\nCBNZ            R6, loc_4016B2                                         ; +0x46, 0x4016ae\nPOP             {R4-R6,PC}                                             ; +0x48, 0x4016b0\nMOV             R0, R5; this                                           ; +0x4a, 0x4016b2\nPOP.W           {R4-R6,LR}                                             ; +0x4c, 0x4016b4\nB.W             _ZN16EditorPauseLayer9saveLevelEv; EditorPauseLayer::saveLevel(void) ; +0x50, 0x4016b8\nPOP             {R4-R6,PC}                                             ; +0x54, 0x4016bc", "xrefs": ["`non-virtual thunk to'EditorPauseLayer::FLAlert_Clicked @ 0x4016c2"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}