{"type": "func", "start": 5372827728, "end": 5372827859, "name": "LevelEditorLayer::create", "pseudocode": "// \n// LevelEditorLayer::create from 0x1403ed850 to 0x1403ed8d3 (131 bytes)\n// \n// 4 xrefs:\n// > EditLevelLayer::onEdit @ 0x14017b94e\n// > GJGameLoadingLayer::loadLevel @ 0x140353335\n// > LevelInfoLayer::onEdit @ 0x140422b79\n// > <???> @ 0x1409252a4\n// \n// This function is hookable on this platform (idp: pc, 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 11:31:46 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall LevelEditorLayer::create(__int64 a1, unsigned __int8 a2)\n{\n  __int64 v4; // rax\n  cocos2d::CCObject *v5; // rbx\n  void *v7; // [rsp+40h] [rbp+18h]\n\n  v7 = operator new(0x3E08u);\n  v4 = LevelEditorLayer::LevelEditorLayer((__int64)v7);\n  v5 = (cocos2d::CCObject *)v4;\n  if ( v4 )\n  {\n    if ( (unsigned __int8)LevelEditorLayer::init(v4, a1, a2) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n    return nullptr;\n  }\n  return v5;\n}", "assembly": "; \n; LevelEditorLayer::create from 0x1403ed850 to 0x1403ed8d3 (131 bytes)\n; \n; 4 xrefs:\n; > EditLevelLayer::onEdit @ 0x14017b94e\n; > GJGameLoadingLayer::loadLevel @ 0x140353335\n; > LevelInfoLayer::onEdit @ 0x140422b79\n; > <???> @ 0x1409252a4\n; \n; This function is hookable on this platform (idp: pc, 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 11:31:46 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403ed850\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1403ed855\npush    rdi                                                            ; +0xa, 0x1403ed85a\nsub     rsp, 20h                                                       ; +0xb, 0x1403ed85b\nmovzx   edi, dl                                                        ; +0xf, 0x1403ed85f\nmov     rsi, rcx                                                       ; +0x12, 0x1403ed862\nmov     ecx, 3E08h; Size                                               ; +0x15, 0x1403ed865\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1403ed86a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x1403ed86f\nmov     rcx, rax                                                       ; +0x24, 0x1403ed874\ncall    LevelEditorLayer__LevelEditorLayer                             ; +0x27, 0x1403ed877\nmov     rbx, rax                                                       ; +0x2c, 0x1403ed87c\ntest    rax, rax                                                       ; +0x2f, 0x1403ed87f\njz      short loc_1403ED8C0                                            ; +0x32, 0x1403ed882\nmovzx   r8d, dil                                                       ; +0x34, 0x1403ed884\nmov     rdx, rsi                                                       ; +0x38, 0x1403ed888\nmov     rcx, rax                                                       ; +0x3b, 0x1403ed88b\ncall    LevelEditorLayer__init                                         ; +0x3e, 0x1403ed88e\nmov     rcx, rbx                                                       ; +0x43, 0x1403ed893\ntest    al, al                                                         ; +0x46, 0x1403ed896\njz      short loc_1403ED8B3                                            ; +0x48, 0x1403ed898\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x4a, 0x1403ed89a\nmov     rax, rbx                                                       ; +0x50, 0x1403ed8a0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x53, 0x1403ed8a3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x58, 0x1403ed8a8\nadd     rsp, 20h                                                       ; +0x5d, 0x1403ed8ad\npop     rdi                                                            ; +0x61, 0x1403ed8b1\nretn                                                                   ; +0x62, 0x1403ed8b2\nmov     rax, [rbx]                                                     ; +0x63, 0x1403ed8b3\nmov     edx, 1                                                         ; +0x66, 0x1403ed8b6\ncall    qword ptr [rax+8]                                              ; +0x6b, 0x1403ed8bb\nxor     ebx, ebx                                                       ; +0x6e, 0x1403ed8be\nmov     rax, rbx                                                       ; +0x70, 0x1403ed8c0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x73, 0x1403ed8c3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x78, 0x1403ed8c8\nadd     rsp, 20h                                                       ; +0x7d, 0x1403ed8cd\npop     rdi                                                            ; +0x81, 0x1403ed8d1\nretn                                                                   ; +0x82, 0x1403ed8d2", "xrefs": ["EditLevelLayer::onEdit @ 0x14017b94e", "GJGameLoadingLayer::loadLevel @ 0x140353335", "LevelInfoLayer::onEdit @ 0x140422b79", "<???> @ 0x1409252a4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}