{"type": "func", "start": 5371990272, "end": 5371990360, "name": "LevelSettingsLayer::onMode", "pseudocode": "// \n// LevelSettingsLayer::onMode from 0x140321100 to 0x140321158 (88 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::init @ 0x140320cc1\n// > <???> @ 0x1406d4c04\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\nvoid LevelSettingsLayer::onMode(LevelSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  SelectSettingLayer *v3; // rax\n  SelectSettingDelegate *v4; // rdx\n\n  v3 = SelectSettingLayer::create(\n         (SelectSettingType)a1->m_settingsObject->m_platformerMode,\n         a1->m_settingsObject->m_startMode);\n  v4 = &a1->SelectSettingDelegate;\n  if ( !a1 )\n    v4 = nullptr;\n  v3->m_delegate = v4;\n  v3->show(v3);\n}", "assembly": "; \n; LevelSettingsLayer::onMode from 0x140321100 to 0x140321158 (88 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::init @ 0x140320cc1\n; > <???> @ 0x1406d4c04\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_0], rbx                                               ; +0x0, 0x140321100\npush    rdi                                                            ; +0x5, 0x140321105\nsub     rsp, 20h                                                       ; +0x6, 0x140321106\nmov     rdx, [rcx+318h]                                                ; +0xa, 0x14032110a\nmov     rbx, rcx                                                       ; +0x11, 0x140321111\nxor     edi, edi                                                       ; +0x14, 0x140321114\nmov     ecx, edi                                                       ; +0x16, 0x140321116\ncmp     [rdx+155h], cl                                                 ; +0x18, 0x140321118\nmov     edx, [rdx+148h]                                                ; +0x1e, 0x14032111e\nsetnz   cl                                                             ; +0x24, 0x140321124\ncall    SelectSettingLayer__create                                     ; +0x27, 0x140321127\ntest    rbx, rbx                                                       ; +0x2c, 0x14032112c\nlea     rdx, [rbx+288h]                                                ; +0x2f, 0x14032112f\nmov     rcx, rax                                                       ; +0x36, 0x140321136\ncmovz   rdx, rdi                                                       ; +0x39, 0x140321139\nmov     [rax+288h], rdx                                                ; +0x3d, 0x14032113d\nmov     rdx, [rax]                                                     ; +0x44, 0x140321144\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x47, 0x140321147\nadd     rsp, 20h                                                       ; +0x4c, 0x14032114c\npop     rdi                                                            ; +0x50, 0x140321150\njmp     qword ptr [rdx+410h]                                           ; +0x51, 0x140321151", "xrefs": ["LevelSettingsLayer::init @ 0x140320cc1", "<???> @ 0x1406d4c04"], "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"}