{"type": "func", "start": 5373272816, "end": 5373272907, "name": "LevelSettingsLayer::onMode", "pseudocode": "// \n// LevelSettingsLayer::onMode from 0x14045a2f0 to 0x14045a34b (91 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::init @ 0x140459e9e\n// > <???> @ 0x140927c08\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__int64 __fastcall LevelSettingsLayer::onMode(__int64 a1)\n{\n  __int64 *v2; // rax\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n\n  v2 = (__int64 *)SelectSettingLayer::create(\n                    *(_BYTE *)(*(_QWORD *)(a1 + 816) + 341LL) != 0,\n                    *(unsigned int *)(*(_QWORD *)(a1 + 816) + 328LL));\n  v3 = a1 + 680;\n  if ( !a1 )\n    v3 = 0;\n  v4 = *v2;\n  v2[85] = v3;\n  return (*(__int64 (__fastcall **)(__int64 *))(v4 + 1064))(v2);\n}", "assembly": "; \n; LevelSettingsLayer::onMode from 0x14045a2f0 to 0x14045a34b (91 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::init @ 0x140459e9e\n; > <???> @ 0x140927c08\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_0], rbx                                               ; +0x0, 0x14045a2f0\npush    rdi                                                            ; +0x5, 0x14045a2f5\nsub     rsp, 20h                                                       ; +0x6, 0x14045a2f6\nmov     rdx, [rcx+330h]                                                ; +0xa, 0x14045a2fa\nmov     rbx, rcx                                                       ; +0x11, 0x14045a301\nxor     edi, edi                                                       ; +0x14, 0x14045a304\nmov     ecx, edi                                                       ; +0x16, 0x14045a306\ncmp     [rdx+155h], cl                                                 ; +0x18, 0x14045a308\nmov     edx, [rdx+148h]                                                ; +0x1e, 0x14045a30e\nsetnz   cl                                                             ; +0x24, 0x14045a314\ncall    SelectSettingLayer__create                                     ; +0x27, 0x14045a317\ntest    rbx, rbx                                                       ; +0x2c, 0x14045a31c\nlea     rdx, [rbx+2A8h]                                                ; +0x2f, 0x14045a31f\ncmovz   rdx, rdi                                                       ; +0x36, 0x14045a326\nmov     rcx, [rax]                                                     ; +0x3a, 0x14045a32a\nmov     [rax+2A8h], rdx                                                ; +0x3d, 0x14045a32d\nmov     rdx, [rcx+428h]                                                ; +0x44, 0x14045a334\nmov     rcx, rax                                                       ; +0x4b, 0x14045a33b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x14045a33e\nadd     rsp, 20h                                                       ; +0x53, 0x14045a343\npop     rdi                                                            ; +0x57, 0x14045a347\njmp     rdx                                                            ; +0x58, 0x14045a348", "xrefs": ["LevelSettingsLayer::init @ 0x140459e9e", "<???> @ 0x140927c08"], "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"}