{"type": "func", "start": 4298762232, "end": 4298762420, "name": "EditorPauseLayer::FLAlert_Clicked", "pseudocode": "// \n// EditorPauseLayer::FLAlert_Clicked from 0x10039e7f8 to 0x10039e8b4 (188 bytes)\n// \n// 2 xrefs:\n// > sub_10039E8B4 @ 0x10039e8b8\n// > <???> @ 0x10080bc10\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 __fastcall EditorPauseLayer::FLAlert_Clicked(EditorPauseLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  _BOOL4 v3; // w20\n  cocos2d::CCObject *v6; // x1\n\n  v3 = a3;\n  if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 1 || !v3 )\n  {\n    if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 2 || !v3 )\n    {\n      if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 3 && v3 )\n        EditorPauseLayer::saveLevel(a1);\n    }\n    else\n    {\n      LevelEditorLayer::resetUnusedColorChannels(a1->m_editorLayer);\n    }\n  }\n  else\n  {\n    EditorPauseLayer::onExitEditor(a1, v6);\n  }\n}", "assembly": "; \n; EditorPauseLayer::FLAlert_Clicked from 0x10039e7f8 to 0x10039e8b4 (188 bytes)\n; \n; 2 xrefs:\n; > sub_10039E8B4 @ 0x10039e8b8\n; > <???> @ 0x10080bc10\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10039e7f8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10039e7fc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10039e800\nADD             X29, SP, #0x20                                         ; +0xc, 0x10039e804\nMOV             X20, X2                                                ; +0x10, 0x10039e808\nMOV             X21, X1                                                ; +0x14, 0x10039e80c\nMOV             X19, X0                                                ; +0x18, 0x10039e810\nLDR             X8, [X1]                                               ; +0x1c, 0x10039e814\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x10039e818\nMOV             X0, X1                                                 ; +0x24, 0x10039e81c\nBLR             X8                                                     ; +0x28, 0x10039e820\nCMP             W0, #1                                                 ; +0x2c, 0x10039e824\nCCMP            W20, #0, #4, EQ                                        ; +0x30, 0x10039e828\nB.NE            loc_10039E878                                          ; +0x34, 0x10039e82c\nLDR             X8, [X21]                                              ; +0x38, 0x10039e830\nLDR             X8, [X8,#0x40]                                         ; +0x3c, 0x10039e834\nMOV             X0, X21                                                ; +0x40, 0x10039e838\nBLR             X8                                                     ; +0x44, 0x10039e83c\nCMP             W0, #2                                                 ; +0x48, 0x10039e840\nCCMP            W20, #0, #4, EQ                                        ; +0x4c, 0x10039e844\nB.NE            loc_10039E88C                                          ; +0x50, 0x10039e848\nLDR             X8, [X21]                                              ; +0x54, 0x10039e84c\nLDR             X8, [X8,#0x40]                                         ; +0x58, 0x10039e850\nMOV             X0, X21                                                ; +0x5c, 0x10039e854\nBLR             X8                                                     ; +0x60, 0x10039e858\nCMP             W0, #3                                                 ; +0x64, 0x10039e85c\nCCMP            W20, #0, #4, EQ                                        ; +0x68, 0x10039e860\nB.NE            loc_10039E8A0                                          ; +0x6c, 0x10039e864\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x10039e868\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x10039e86c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x78, 0x10039e870\nRET                                                                    ; +0x7c, 0x10039e874\nMOV             X0, X19                                                ; +0x80, 0x10039e878\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x10039e87c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x10039e880\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x10039e884\nB               EditorPauseLayer__onExitEditor                         ; +0x90, 0x10039e888\nLDR             X0, [X19,#0x248]                                       ; +0x94, 0x10039e88c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x98, 0x10039e890\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x9c, 0x10039e894\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa0, 0x10039e898\nB               LevelEditorLayer__resetUnusedColorChannels             ; +0xa4, 0x10039e89c\nMOV             X0, X19                                                ; +0xa8, 0x10039e8a0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xac, 0x10039e8a4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb0, 0x10039e8a8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xb4, 0x10039e8ac\nB               EditorPauseLayer__saveLevel                            ; +0xb8, 0x10039e8b0", "xrefs": ["sub_10039E8B4 @ 0x10039e8b8", "<???> @ 0x10080bc10"], "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"}