{"type": "func", "start": 5371990080, "end": 5371990190, "name": "LevelSettingsLayer::onSettings", "pseudocode": "// \n// LevelSettingsLayer::onSettings from 0x140321040 to 0x1403210ae (110 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::init @ 0x140320e08\n// > <???> @ 0x1406d4bec\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\nvoid LevelSettingsLayer::onSettings(LevelSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  LevelSettingsObject *m_settingsObject; // rdi\n  LevelOptionsLayer *v3; // rax\n  cocos2d::CCObject *v4; // rbx\n  LevelOptionsLayer *v5; // [rsp+30h] [rbp+8h]\n\n  m_settingsObject = a1->m_settingsObject;\n  v5 = (LevelOptionsLayer *)operator new(0x3F8u);\n  v3 = LevelOptionsLayer::LevelOptionsLayer(v5);\n  v4 = v3;\n  if ( v3 )\n  {\n    if ( LevelOptionsLayer::init(v3, m_settingsObject) )\n    {\n      cocos2d::CCObject::autorelease(v4);\n    }\n    else\n    {\n      ((void (__fastcall *)(cocos2d::CCObject *, __int64))v4->~CCObject)(v4, 1);\n      v4 = nullptr;\n    }\n  }\n  ((void (__fastcall *)(cocos2d::CCObject *))v4->__vftable[14].update)(v4);\n}", "assembly": "; \n; LevelSettingsLayer::onSettings from 0x140321040 to 0x1403210ae (110 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::init @ 0x140320e08\n; > <???> @ 0x1406d4bec\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, 0x140321040\npush    rdi                                                            ; +0x5, 0x140321045\nsub     rsp, 20h                                                       ; +0x6, 0x140321046\nmov     rdi, [rcx+318h]                                                ; +0xa, 0x14032104a\nmov     ecx, 3F8h; Size                                                ; +0x11, 0x140321051\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16, 0x140321056\nmov     [rsp+28h+arg_0], rax                                           ; +0x1b, 0x14032105b\nmov     rcx, rax                                                       ; +0x20, 0x140321060\ncall    LevelOptionsLayer__LevelOptionsLayer                           ; +0x23, 0x140321063\nmov     rbx, rax                                                       ; +0x28, 0x140321068\ntest    rax, rax                                                       ; +0x2b, 0x14032106b\njz      short loc_140321097                                            ; +0x2e, 0x14032106e\nmov     rdx, rdi                                                       ; +0x30, 0x140321070\nmov     rcx, rax                                                       ; +0x33, 0x140321073\ncall    LevelOptionsLayer__init                                        ; +0x36, 0x140321076\nmov     rcx, rbx                                                       ; +0x3b, 0x14032107b\ntest    al, al                                                         ; +0x3e, 0x14032107e\njz      short loc_14032108A                                            ; +0x40, 0x140321080\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x42, 0x140321082\njmp     short loc_140321097                                            ; +0x48, 0x140321088\nmov     rax, [rbx]                                                     ; +0x4a, 0x14032108a\nmov     edx, 1                                                         ; +0x4d, 0x14032108d\ncall    qword ptr [rax+8]                                              ; +0x52, 0x140321092\nxor     ebx, ebx                                                       ; +0x55, 0x140321095\nmov     rax, [rbx]                                                     ; +0x57, 0x140321097\nmov     rcx, rbx                                                       ; +0x5a, 0x14032109a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x5d, 0x14032109d\nadd     rsp, 20h                                                       ; +0x62, 0x1403210a2\npop     rdi                                                            ; +0x66, 0x1403210a6\njmp     qword ptr [rax+410h]                                           ; +0x67, 0x1403210a7", "xrefs": ["LevelSettingsLayer::init @ 0x140320e08", "<???> @ 0x1406d4bec"], "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"}