{"type": "func", "start": 9140260, "end": 9140508, "name": "EditorPauseLayer::create", "pseudocode": "// \n// EditorPauseLayer::create from 0x8b7824 to 0x8b791c (248 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onPause @ 0x7ceb64\n// > <???> @ 0xb91a0\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 12:56:25 +0000\n// \n\n__int64 __fastcall EditorPauseLayer::create(EditorPauseLayer *this, LevelEditorLayer *a2)\n{\n  __int64 v3; // x19\n\n  v3 = operator new(0x280u);\n  cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);\n  *(_BYTE *)(v3 + 544) = 0;\n  *(_BYTE *)(v3 + 545) = 0;\n  *(_BYTE *)(v3 + 568) = 0;\n  *(_QWORD *)v3 = &off_1459700;\n  *(_QWORD *)(v3 + 320) = off_1459C88;\n  *(_QWORD *)(v3 + 328) = &off_1459CF8;\n  *(_QWORD *)(v3 + 336) = off_1459D10;\n  *(_QWORD *)(v3 + 344) = off_1459D30;\n  *(_QWORD *)(v3 + 352) = off_1459D58;\n  *(_QWORD *)(v3 + 408) = &off_1459D88;\n  *(_QWORD *)(v3 + 432) = &off_1459E08;\n  *(_QWORD *)(v3 + 552) = &off_1459E28;\n  *(_QWORD *)(v3 + 560) = &off_1459E40;\n  *(_QWORD *)(v3 + 576) = 0;\n  *(_QWORD *)(v3 + 616) = 0;\n  *(_QWORD *)(v3 + 624) = 0;\n  *(_QWORD *)(v3 + 632) = 0;\n  if ( (unsigned __int8)EditorPauseLayer::init((EditorPauseLayer *)v3, this) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n    return v3;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);\n    return 0;\n  }\n}", "assembly": "; \n; EditorPauseLayer::create from 0x8b7824 to 0x8b791c (248 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onPause @ 0x7ceb64\n; > <???> @ 0xb91a0\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 12:56:25 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x8b7824\nMOV             X29, SP                                                ; +0x4, 0x8b7828\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x8b782c\nMOV             X20, X0                                                ; +0xc, 0x8b7830\nMOV             X0, #0x280; unsigned __int64                           ; +0x10, 0x8b7834\nBL              _Znwm; operator new(ulong)                             ; +0x14, 0x8b7838\nMOV             X19, X0                                                ; +0x18, 0x8b783c\nBL              _ZN7cocos2d12CCLayerColorC1Ev; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x1c, 0x8b7840\nADRP            X2, #_ZTV16EditorPauseLayer_ptr@PAGE                   ; +0x20, 0x8b7844\nSTRB            WZR, [X19,#0x220]                                      ; +0x24, 0x8b7848\nSTRB            WZR, [X19,#0x221]                                      ; +0x28, 0x8b784c\nMOV             X0, X19; this                                          ; +0x2c, 0x8b7850\nMOV             X1, X20; LevelEditorLayer *                            ; +0x30, 0x8b7854\nLDR             X2, [X2,#_ZTV16EditorPauseLayer_ptr@PAGEOFF]; `vtable for'EditorPauseLayer ... ; +0x34, 0x8b7858\nSTRB            WZR, [X19,#0x238]                                      ; +0x38, 0x8b785c\nADD             X11, X2, #0x10                                         ; +0x3c, 0x8b7860\nADD             X10, X2, #0x598                                        ; +0x40, 0x8b7864\nADD             X9, X2, #0x608                                         ; +0x44, 0x8b7868\nADD             X8, X2, #0x620                                         ; +0x48, 0x8b786c\nADD             X7, X2, #0x640                                         ; +0x4c, 0x8b7870\nADD             X6, X2, #0x668                                         ; +0x50, 0x8b7874\nADD             X5, X2, #0x698                                         ; +0x54, 0x8b7878\nADD             X4, X2, #0x718                                         ; +0x58, 0x8b787c\nADD             X3, X2, #0x738                                         ; +0x5c, 0x8b7880\nSTR             X11, [X19]                                             ; +0x60, 0x8b7884\nADD             X2, X2, #0x750                                         ; +0x64, 0x8b7888\nSTR             X10, [X19,#0x140]                                      ; +0x68, 0x8b788c\nSTR             X9, [X19,#0x148]                                       ; +0x6c, 0x8b7890\nSTR             X8, [X19,#0x150]                                       ; +0x70, 0x8b7894\nSTR             X7, [X19,#0x158]                                       ; +0x74, 0x8b7898\nSTR             X6, [X19,#0x160]                                       ; +0x78, 0x8b789c\nSTR             X5, [X19,#0x198]                                       ; +0x7c, 0x8b78a0\nSTR             X4, [X19,#0x1B0]                                       ; +0x80, 0x8b78a4\nSTR             X3, [X19,#0x228]                                       ; +0x84, 0x8b78a8\nSTR             X2, [X19,#0x230]                                       ; +0x88, 0x8b78ac\nSTR             XZR, [X19,#0x240]                                      ; +0x8c, 0x8b78b0\nSTR             XZR, [X19,#0x268]                                      ; +0x90, 0x8b78b4\nSTR             XZR, [X19,#0x270]                                      ; +0x94, 0x8b78b8\nSTR             XZR, [X19,#0x278]                                      ; +0x98, 0x8b78bc\nBL              _ZN16EditorPauseLayer4initEP16LevelEditorLayer; EditorPauseLayer::init(LevelEditorLayer *) ; +0x9c, 0x8b78c0\nUXTB            W0, W0                                                 ; +0xa0, 0x8b78c4\nCBZ             W0, loc_8B78E4                                         ; +0xa4, 0x8b78c8\nMOV             X0, X19; this                                          ; +0xa8, 0x8b78cc\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xac, 0x8b78d0\nMOV             X0, X19                                                ; +0xb0, 0x8b78d4\nLDP             X19, X20, [SP,#var_s10]                                ; +0xb4, 0x8b78d8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xb8, 0x8b78dc\nRET                                                                    ; +0xbc, 0x8b78e0\nLDR             X1, [X19]                                              ; +0xc0, 0x8b78e4\nMOV             X0, X19                                                ; +0xc4, 0x8b78e8\nMOV             X19, #0                                                ; +0xc8, 0x8b78ec\nLDR             X1, [X1,#0x10]                                         ; +0xcc, 0x8b78f0\nBLR             X1                                                     ; +0xd0, 0x8b78f4\nMOV             X0, X19                                                ; +0xd4, 0x8b78f8\nLDP             X19, X20, [SP,#var_s10]                                ; +0xd8, 0x8b78fc\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xdc, 0x8b7900\nRET                                                                    ; +0xe0, 0x8b7904\nMOV             X20, X0                                                ; +0xe4, 0x8b7908\nMOV             X0, X19; void *                                        ; +0xe8, 0x8b790c\nBL              _ZdlPv; operator delete(void *)                        ; +0xec, 0x8b7910\nMOV             X0, X20                                                ; +0xf0, 0x8b7914\nBL              _Unwind_Resume                                         ; +0xf4, 0x8b7918", "xrefs": ["EditorUI::onPause @ 0x7ceb64", "<???> @ 0xb91a0"], "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"}