{"type": "func", "start": 4296081956, "end": 4296082184, "name": "EditLevelLayer::onEdit", "pseudocode": "// \n// EditLevelLayer::onEdit from 0x100110224 to 0x100110308 (228 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::FLAlert_Clicked @ 0x1001123a0\n// > EditLevelLayer::init @ 0x10010f730\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:59:08 +0000\n// \n\n__int64 __fastcall EditLevelLayer::onEdit(__int64 a1)\n{\n  __int64 result; // x0\n  __int64 v3; // x0\n  __int64 v4; // x0\n  __int64 v5; // x20\n  __int64 Music; // x0\n  int v7; // w20\n  __int64 v8; // x0\n  void *v9; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v11; // [xsp+1Fh] [xbp-11h]\n\n  result = cocos2d::CCDirector::sharedDirector(a1);\n  if ( (*(_BYTE *)(result + 176) & 1) == 0 && (*(_BYTE *)(a1 + 496) & 1) == 0 )\n  {\n    sub_100111734(a1);\n    v3 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n    *(_BYTE *)(a1 + 496) = 1;\n    *(_DWORD *)(GameManager::sharedState(v3) + 708) = 3;\n    v4 = EditLevelLayer::verifyLevelName(a1);\n    v5 = FMODAudioEngine::sharedEngine(v4);\n    GJGameLevel::getAudioFileName(*(_QWORD *)(a1 + 472), __p);\n    Music = FMODAudioEngine::loadMusic(v5, __p, 1, 0, 0, 0, 1.0, 0.0, 1.0);\n    if ( v11 < 0 )\n      operator delete(__p[0]);\n    v7 = cocos2d::CCDirector::sharedDirector(Music);\n    v8 = LevelEditorLayer::scene(*(_QWORD *)(a1 + 472), 0);\n    v9 = (void *)cocos2d::CCTransitionFade::create_1(v8, 0.5);\n    return cocos2d::CCDirector::replaceScene(v7, v9);\n  }\n  return result;\n}", "assembly": "; \n; EditLevelLayer::onEdit from 0x100110224 to 0x100110308 (228 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::FLAlert_Clicked @ 0x1001123a0\n; > EditLevelLayer::init @ 0x10010f730\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:59:08 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x100110224\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100110228\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10011022c\nADD             X29, SP, #0x30                                         ; +0xc, 0x100110230\nMOV             X19, X0                                                ; +0x10, 0x100110234\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x14, 0x100110238\nLDRB            W8, [X0,#0xB0]                                         ; +0x18, 0x10011023c\nTBNZ            W8, #0, loc_1001102F8                                  ; +0x1c, 0x100110240\nLDRB            W8, [X19,#0x1F0]                                       ; +0x20, 0x100110244\nTBNZ            W8, #0, loc_1001102F8                                  ; +0x24, 0x100110248\nMOV             X0, X19                                                ; +0x28, 0x10011024c\nBL              sub_100111734                                          ; +0x2c, 0x100110250\nLDR             X8, [X19]                                              ; +0x30, 0x100110254\nLDR             X8, [X8,#0x430]                                        ; +0x34, 0x100110258\nMOV             X0, X19                                                ; +0x38, 0x10011025c\nMOV             W1, #0                                                 ; +0x3c, 0x100110260\nBLR             X8                                                     ; +0x40, 0x100110264\nMOV             W8, #1                                                 ; +0x44, 0x100110268\nSTRB            W8, [X19,#0x1F0]                                       ; +0x48, 0x10011026c\nBL              GameManager__sharedState                               ; +0x4c, 0x100110270\nMOV             W8, #3                                                 ; +0x50, 0x100110274\nSTR             W8, [X0,#0x2C4]                                        ; +0x54, 0x100110278\nMOV             X0, X19                                                ; +0x58, 0x10011027c\nBL              EditLevelLayer__verifyLevelName                        ; +0x5c, 0x100110280\nBL              FMODAudioEngine__sharedEngine                          ; +0x60, 0x100110284\nMOV             X20, X0                                                ; +0x64, 0x100110288\nLDR             X0, [X19,#0x1D8]                                       ; +0x68, 0x10011028c\nADD             X8, SP, #0x30+__p                                      ; +0x6c, 0x100110290\nBL              GJGameLevel__getAudioFileName                          ; +0x70, 0x100110294\nADD             X1, SP, #0x30+__p                                      ; +0x74, 0x100110298\nFMOV            S0, #1.0                                               ; +0x78, 0x10011029c\nFMOV            S1, WZR                                                ; +0x7c, 0x1001102a0\nFMOV            S2, #1.0                                               ; +0x80, 0x1001102a4\nMOV             X0, X20                                                ; +0x84, 0x1001102a8\nMOV             W2, #1                                                 ; +0x88, 0x1001102ac\nMOV             W3, #0                                                 ; +0x8c, 0x1001102b0\nMOV             W4, #0                                                 ; +0x90, 0x1001102b4\nMOV             W5, #0                                                 ; +0x94, 0x1001102b8\nBL              FMODAudioEngine__loadMusic                             ; +0x98, 0x1001102bc\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x9c, 0x1001102c0\nTBZ             W8, #0x1F, loc_1001102D0                               ; +0xa0, 0x1001102c4\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0xa4, 0x1001102c8\nBL              __ZdlPv; operator delete(void *)                       ; +0xa8, 0x1001102cc\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xac, 0x1001102d0\nMOV             X20, X0                                                ; +0xb0, 0x1001102d4\nLDR             X0, [X19,#0x1D8]                                       ; +0xb4, 0x1001102d8\nMOV             W1, #0                                                 ; +0xb8, 0x1001102dc\nBL              LevelEditorLayer__scene                                ; +0xbc, 0x1001102e0\nFMOV            S0, #0.5                                               ; +0xc0, 0x1001102e4\nBL              cocos2d__CCTransitionFade__create_1                    ; +0xc4, 0x1001102e8\nMOV             X1, X0; lpsrc                                          ; +0xc8, 0x1001102ec\nMOV             X0, X20; int                                           ; +0xcc, 0x1001102f0\nBL              cocos2d__CCDirector__replaceScene                      ; +0xd0, 0x1001102f4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd4, 0x1001102f8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd8, 0x1001102fc\nADD             SP, SP, #0x40 ; '@'                                    ; +0xdc, 0x100110300\nRET                                                                    ; +0xe0, 0x100110304", "xrefs": ["EditLevelLayer::FLAlert_Clicked @ 0x1001123a0", "EditLevelLayer::init @ 0x10010f730"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}