{"type": "func", "start": 5372746848, "end": 5372747123, "name": "KeybindingsSettingsPopup::onReset", "pseudocode": "// \n// KeybindingsSettingsPopup::onReset from 0x1403d9c60 to 0x1403d9d73 (275 bytes)\n// \n// 2 xrefs:\n// > KeybindingsLayer::settingsEntries @ 0x1403d81ed\n// > <???> @ 0x140924bd8\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:31:38 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall KeybindingsSettingsPopup::onReset(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  *(_DWORD *)(a1 + 704) = 1;\n  v1 = a1 + 664;\n  if ( !a1 )\n    v1 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003D460(0x30u);\n  v6 = 38;\n  v7 = 47;\n  strcpy((char *)v5, \"Reset all keybinds to <cy>default</c>?\");\n  v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n  v3 = FLAlertLayer::create(\n         v1,\n         (int)\"Reset Keybinds\",\n         v2,\n         (__int64)\"Cancel\",\n         (__int64)\"Reset\",\n         1136525312,\n         0,\n         0,\n         1065353216);\n  sub_14003D310((__int64)&v5);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; KeybindingsSettingsPopup::onReset from 0x1403d9c60 to 0x1403d9d73 (275 bytes)\n; \n; 2 xrefs:\n; > KeybindingsLayer::settingsEntries @ 0x1403d81ed\n; > <???> @ 0x140924bd8\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:31:38 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403d9c60\nsub     rsp, 90h                                                       ; +0x2, 0x1403d9c62\nmov     dword ptr [rcx+2C0h], 1                                        ; +0x9, 0x1403d9c69\nlea     rbx, [rcx+298h]                                                ; +0x13, 0x1403d9c73\nxor     eax, eax                                                       ; +0x1a, 0x1403d9c7a\ntest    rcx, rcx                                                       ; +0x1c, 0x1403d9c7c\ncmovz   rbx, rax                                                       ; +0x1f, 0x1403d9c7f\nxorps   xmm0, xmm0                                                     ; +0x23, 0x1403d9c83\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x26, 0x1403d9c86\nmov     [rsp+98h+var_38], rax                                          ; +0x2b, 0x1403d9c8b\nmov     [rsp+98h+var_30], rax                                          ; +0x30, 0x1403d9c90\nmov     ecx, 30h ; '0'                                                 ; +0x35, 0x1403d9c95\ncall    sub_14003D460                                                  ; +0x3a, 0x1403d9c9a\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x3f, 0x1403d9c9f\nmov     [rsp+98h+var_38], 26h ; '&'                                    ; +0x44, 0x1403d9ca4\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x4d, 0x1403d9cad\nmovups  xmm0, cs:xmmword_140786960                                     ; +0x56, 0x1403d9cb6\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5d, 0x1403d9cbd\nmovups  xmm1, cs:xmmword_140786970                                     ; +0x60, 0x1403d9cc0\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x67, 0x1403d9cc7\nmov     ecx, cs:dword_140786980                                        ; +0x6b, 0x1403d9ccb\nmov     [rax+20h], ecx                                                 ; +0x71, 0x1403d9cd1\nmovzx   ecx, cs:word_140786984                                         ; +0x74, 0x1403d9cd4\nmov     [rax+24h], cx                                                  ; +0x7b, 0x1403d9cdb\nmov     byte ptr [rax+26h], 0                                          ; +0x7f, 0x1403d9cdf\nlea     rax, [rsp+98h+var_48]                                          ; +0x83, 0x1403d9ce3\nmov     [rsp+98h+arg_0], rax                                           ; +0x88, 0x1403d9ce8\nlea     rdx, [rsp+98h+var_48]                                          ; +0x90, 0x1403d9cf0\nlea     rcx, [rsp+98h+var_28]                                          ; +0x95, 0x1403d9cf5\ncall    sub_14003F4F0                                                  ; +0x9a, 0x1403d9cfa\nmovss   xmm0, cs:flt_140835080                                         ; +0x9f, 0x1403d9cff\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xa7, 0x1403d9d07\nxorps   xmm1, xmm1                                                     ; +0xad, 0x1403d9d0d\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb0, 0x1403d9d10\nmov     [rsp+98h+var_68], 0                                            ; +0xb6, 0x1403d9d16\nmovss   xmm0, cs:dword_140835A04                                       ; +0xbb, 0x1403d9d1b\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc3, 0x1403d9d23\nlea     rcx, aReset; \"Reset\"                                           ; +0xc9, 0x1403d9d29\nmov     [rsp+98h+var_78], rcx                                          ; +0xd0, 0x1403d9d30\nlea     r9, aCancel; \"Cancel\"                                          ; +0xd5, 0x1403d9d35\nmov     r8, rax                                                        ; +0xdc, 0x1403d9d3c\nlea     rdx, aResetKeybinds; \"Reset Keybinds\"                          ; +0xdf, 0x1403d9d3f\nmov     rcx, rbx                                                       ; +0xe6, 0x1403d9d46\ncall    FLAlertLayer__create                                           ; +0xe9, 0x1403d9d49\nmov     rbx, rax                                                       ; +0xee, 0x1403d9d4e\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf1, 0x1403d9d51\ncall    sub_14003D310                                                  ; +0xf6, 0x1403d9d56\nmov     rcx, [rbx]                                                     ; +0xfb, 0x1403d9d5b\nmov     rdx, [rcx+428h]                                                ; +0xfe, 0x1403d9d5e\nmov     rcx, rbx                                                       ; +0x105, 0x1403d9d65\ncall    rdx                                                            ; +0x108, 0x1403d9d68\nadd     rsp, 90h                                                       ; +0x10a, 0x1403d9d6a\npop     rbx                                                            ; +0x111, 0x1403d9d71\nretn                                                                   ; +0x112, 0x1403d9d72", "xrefs": ["KeybindingsLayer::settingsEntries @ 0x1403d81ed", "<???> @ 0x140924bd8"], "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"}