{"type": "func", "start": 5371767584, "end": 5371767889, "name": "LevelSettingsObject::create", "pseudocode": "// \n// LevelSettingsObject::create from 0x1402eab20 to 0x1402eac51 (305 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::init @ 0x1402d29b3\n// > LevelSettingsObject::objectFromDict @ 0x1402eca6d\n// > PlayLayer::setupHasCompleted @ 0x1403a685e\n// > StartPosObject::init @ 0x1404b2004\n// > <???> @ 0x1406d383c\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\n// Hidden C++ exception states: #wind=1\nLevelSettingsObject *LevelSettingsObject::create()\n{\n  char *v0; // rbx\n  bool (*v1)(LevelSettingsObject *); // rdx\n  bool v2; // al\n\n  v0 = (char *)operator new(0x1D8u);\n  cocos2d::CCNode::CCNode((cocos2d::CCNode *)v0);\n  *(_QWORD *)v0 = &LevelSettingsObject::`vftable';\n  *((_QWORD *)v0 + 40) = 0;\n  *((_DWORD *)v0 + 84) = 0;\n  *((_WORD *)v0 + 170) = 0;\n  *((_DWORD *)v0 + 86) = 0;\n  *((_WORD *)v0 + 174) = 0;\n  v0[350] = 0;\n  *((_QWORD *)v0 + 44) = 0;\n  *((_QWORD *)v0 + 45) = 0;\n  *((_DWORD *)v0 + 92) = 0;\n  *(_QWORD *)(v0 + 372) = 0;\n  *((_QWORD *)v0 + 48) = 0;\n  *(_OWORD *)(v0 + 392) = 0;\n  *((_QWORD *)v0 + 51) = 0;\n  *((_QWORD *)v0 + 52) = 15;\n  v0[392] = 0;\n  v0[424] = 0;\n  *(_QWORD *)(v0 + 428) = 0;\n  *((_WORD *)v0 + 218) = 0;\n  v0[438] = 0;\n  *((_QWORD *)v0 + 55) = 0;\n  v0[448] = 0;\n  *(_QWORD *)(v0 + 452) = 0;\n  *(_QWORD *)(v0 + 460) = 0;\n  v0[468] = 0;\n  v1 = *(bool (**)(LevelSettingsObject *))(*(_QWORD *)v0 + 72LL);\n  if ( v1 == LevelSettingsObject::init )\n    v2 = LevelSettingsObject::init((LevelSettingsObject *)v0);\n  else\n    v2 = v1((LevelSettingsObject *)v0);\n  if ( v2 )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n    return (LevelSettingsObject *)v0;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; LevelSettingsObject::create from 0x1402eab20 to 0x1402eac51 (305 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::init @ 0x1402d29b3\n; > LevelSettingsObject::objectFromDict @ 0x1402eca6d\n; > PlayLayer::setupHasCompleted @ 0x1403a685e\n; > StartPosObject::init @ 0x1404b2004\n; > <???> @ 0x1406d383c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402eab20\npush    rdi                                                            ; +0x5, 0x1402eab25\nsub     rsp, 20h                                                       ; +0x6, 0x1402eab26\nmov     ecx, 1D8h; Size                                                ; +0xa, 0x1402eab2a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x1402eab2f\nmov     rbx, rax                                                       ; +0x14, 0x1402eab34\nmov     [rsp+28h+arg_0], rax                                           ; +0x17, 0x1402eab37\nmov     rcx, rax                                                       ; +0x1c, 0x1402eab3c\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x1f, 0x1402eab3f\nlea     rax, ??_7LevelSettingsObject@@6B@; const LevelSettingsObject::`vftable' ; +0x25, 0x1402eab45\nmov     [rbx], rax                                                     ; +0x2c, 0x1402eab4c\nxor     edi, edi                                                       ; +0x2f, 0x1402eab4f\nmov     [rbx+140h], rdi                                                ; +0x31, 0x1402eab51\nmov     [rbx+150h], edi                                                ; +0x38, 0x1402eab58\nmov     [rbx+154h], di                                                 ; +0x3e, 0x1402eab5e\nmov     [rbx+158h], edi                                                ; +0x45, 0x1402eab65\nmov     [rbx+15Ch], di                                                 ; +0x4b, 0x1402eab6b\nmov     [rbx+15Eh], dil                                                ; +0x52, 0x1402eab72\nmov     [rbx+160h], rdi                                                ; +0x59, 0x1402eab79\nmov     [rbx+168h], rdi                                                ; +0x60, 0x1402eab80\nmov     [rbx+170h], edi                                                ; +0x67, 0x1402eab87\nmov     [rbx+174h], rdi                                                ; +0x6d, 0x1402eab8d\nmov     [rbx+180h], rdi                                                ; +0x74, 0x1402eab94\nxorps   xmm0, xmm0                                                     ; +0x7b, 0x1402eab9b\nmovups  xmmword ptr [rbx+188h], xmm0                                   ; +0x7e, 0x1402eab9e\nmov     [rbx+198h], rdi                                                ; +0x85, 0x1402eaba5\nmov     qword ptr [rbx+1A0h], 0Fh                                      ; +0x8c, 0x1402eabac\nmov     [rbx+188h], dil                                                ; +0x97, 0x1402eabb7\nmov     [rbx+1A8h], dil                                                ; +0x9e, 0x1402eabbe\nmov     [rbx+1ACh], rdi                                                ; +0xa5, 0x1402eabc5\nmov     [rbx+1B4h], di                                                 ; +0xac, 0x1402eabcc\nmov     [rbx+1B6h], dil                                                ; +0xb3, 0x1402eabd3\nmov     [rbx+1B8h], rdi                                                ; +0xba, 0x1402eabda\nmov     [rbx+1C0h], dil                                                ; +0xc1, 0x1402eabe1\nmov     [rbx+1C4h], rdi                                                ; +0xc8, 0x1402eabe8\nmov     [rbx+1CCh], rdi                                                ; +0xcf, 0x1402eabef\nmov     [rbx+1D4h], dil                                                ; +0xd6, 0x1402eabf6\nmov     rax, [rbx]                                                     ; +0xdd, 0x1402eabfd\nmov     rdx, [rax+48h]                                                 ; +0xe0, 0x1402eac00\nlea     rax, LevelSettingsObject__init                                 ; +0xe4, 0x1402eac04\nmov     rcx, rbx                                                       ; +0xeb, 0x1402eac0b\ncmp     rdx, rax                                                       ; +0xee, 0x1402eac0e\njnz     short loc_1402EAC1A                                            ; +0xf1, 0x1402eac11\ncall    LevelSettingsObject__init                                      ; +0xf3, 0x1402eac13\njmp     short loc_1402EAC1C                                            ; +0xf8, 0x1402eac18\ncall    rdx                                                            ; +0xfa, 0x1402eac1a\nmov     rcx, rbx                                                       ; +0xfc, 0x1402eac1c\ntest    al, al                                                         ; +0xff, 0x1402eac1f\njz      short loc_1402EAC37                                            ; +0x101, 0x1402eac21\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x103, 0x1402eac23\nmov     rax, rbx                                                       ; +0x109, 0x1402eac29\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x10c, 0x1402eac2c\nadd     rsp, 20h                                                       ; +0x111, 0x1402eac31\npop     rdi                                                            ; +0x115, 0x1402eac35\nretn                                                                   ; +0x116, 0x1402eac36\nmov     r8, [rbx]                                                      ; +0x117, 0x1402eac37\nmov     edx, 1                                                         ; +0x11a, 0x1402eac3a\ncall    qword ptr [r8+8]                                               ; +0x11f, 0x1402eac3f\nmov     rax, rdi                                                       ; +0x123, 0x1402eac43\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x126, 0x1402eac46\nadd     rsp, 20h                                                       ; +0x12b, 0x1402eac4b\npop     rdi                                                            ; +0x12f, 0x1402eac4f\nretn                                                                   ; +0x130, 0x1402eac50", "xrefs": ["LevelEditorLayer::init @ 0x1402d29b3", "LevelSettingsObject::objectFromDict @ 0x1402eca6d", "PlayLayer::setupHasCompleted @ 0x1403a685e", "StartPosObject::init @ 0x1404b2004", "<???> @ 0x1406d383c"], "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"}