{"type": "func", "start": 5373272624, "end": 5373272734, "name": "LevelSettingsLayer::onSettings", "pseudocode": "// \n// LevelSettingsLayer::onSettings from 0x14045a230 to 0x14045a29e (110 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::init @ 0x140459ff7\n// > <???> @ 0x140927bf0\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:32:31 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall LevelSettingsLayer::onSettings(__int64 a1)\n{\n  __int64 v1; // rdi\n  cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  _QWORD *v5; // [rsp+30h] [rbp+8h]\n\n  v1 = *(_QWORD *)(a1 + 816);\n  v5 = operator new(0x478u);\n  v2 = (cocos2d::CCObject *)LevelOptionsLayer::LevelOptionsLayer(v5);\n  v3 = v2;\n  if ( v2 )\n  {\n    if ( (unsigned __int8)LevelOptionsLayer::init(v2, v1) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n      v3 = nullptr;\n    }\n  }\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; LevelSettingsLayer::onSettings from 0x14045a230 to 0x14045a29e (110 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::init @ 0x140459ff7\n; > <???> @ 0x140927bf0\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:32:31 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14045a230\npush    rdi                                                            ; +0x5, 0x14045a235\nsub     rsp, 20h                                                       ; +0x6, 0x14045a236\nmov     rdi, [rcx+330h]                                                ; +0xa, 0x14045a23a\nmov     ecx, 478h; Size                                                ; +0x11, 0x14045a241\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16, 0x14045a246\nmov     [rsp+28h+arg_0], rax                                           ; +0x1b, 0x14045a24b\nmov     rcx, rax                                                       ; +0x20, 0x14045a250\ncall    LevelOptionsLayer__LevelOptionsLayer                           ; +0x23, 0x14045a253\nmov     rbx, rax                                                       ; +0x28, 0x14045a258\ntest    rax, rax                                                       ; +0x2b, 0x14045a25b\njz      short loc_14045A287                                            ; +0x2e, 0x14045a25e\nmov     rdx, rdi                                                       ; +0x30, 0x14045a260\nmov     rcx, rax                                                       ; +0x33, 0x14045a263\ncall    LevelOptionsLayer__init                                        ; +0x36, 0x14045a266\nmov     rcx, rbx                                                       ; +0x3b, 0x14045a26b\ntest    al, al                                                         ; +0x3e, 0x14045a26e\njz      short loc_14045A27A                                            ; +0x40, 0x14045a270\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x42, 0x14045a272\njmp     short loc_14045A287                                            ; +0x48, 0x14045a278\nmov     rax, [rbx]                                                     ; +0x4a, 0x14045a27a\nmov     edx, 1                                                         ; +0x4d, 0x14045a27d\ncall    qword ptr [rax+8]                                              ; +0x52, 0x14045a282\nxor     ebx, ebx                                                       ; +0x55, 0x14045a285\nmov     rax, [rbx]                                                     ; +0x57, 0x14045a287\nmov     rcx, rbx                                                       ; +0x5a, 0x14045a28a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x5d, 0x14045a28d\nadd     rsp, 20h                                                       ; +0x62, 0x14045a292\npop     rdi                                                            ; +0x66, 0x14045a296\njmp     qword ptr [rax+428h]                                           ; +0x67, 0x14045a297", "xrefs": ["LevelSettingsLayer::init @ 0x140459ff7", "<???> @ 0x140927bf0"], "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"}