{"type": "func", "start": 5372744832, "end": 5372745265, "name": "KeybindingsSettingsPopup::onExport", "pseudocode": "// \n// KeybindingsSettingsPopup::onExport from 0x1403d9480 to 0x1403d9631 (433 bytes)\n// \n// 2 xrefs:\n// > KeybindingsLayer::settingsEntries @ 0x1403d819b\n// > <???> @ 0x140924bc0\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 KeybindingsSettingsPopup::onExport()\n{\n  __int64 v0; // rax\n  __int64 result; // rax\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int64 v4; // rax\n  __int128 v5; // [rsp+50h] [rbp+17h] BYREF\n  __int64 v6; // [rsp+60h] [rbp+27h]\n  __int64 v7; // [rsp+68h] [rbp+2Fh]\n  _BYTE v8[32]; // [rsp+70h] [rbp+37h] BYREF\n\n  v0 = GJKeybindManager::sharedState();\n  result = GJKeybindManager::exportBindingsToFile(v0);\n  if ( (int)result <= 0 )\n  {\n    if ( (int)result >= 0 )\n      return result;\n    v5 = 0;\n    v6 = 0;\n    v7 = 0;\n    *(_QWORD *)&v5 = sub_14003D460(0x20u);\n    v6 = 25;\n    v7 = 31;\n    strcpy((char *)v5, \"Could not write the file.\");\n    v4 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n    v3 = FLAlertLayer::create(0, (int)\"Export Failed\", v4, (__int64)\"OK\", 0, 1132068864, 0, 0, 1065353216);\n  }\n  else\n  {\n    v5 = 0;\n    v6 = 0;\n    v7 = 0;\n    *(_QWORD *)&v5 = sub_14003D460(0x20u);\n    v6 = 18;\n    v7 = 31;\n    strcpy((char *)v5, \"Bindings exported.\");\n    v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n    v3 = FLAlertLayer::create(0, (int)\"Keybinds\", v2, (__int64)\"OK\", 0, 1132068864, 0, 0, 1065353216);\n  }\n  sub_14003D310((__int64)&v5);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; KeybindingsSettingsPopup::onExport from 0x1403d9480 to 0x1403d9631 (433 bytes)\n; \n; 2 xrefs:\n; > KeybindingsLayer::settingsEntries @ 0x1403d819b\n; > <???> @ 0x140924bc0\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; \nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x1403d9480\npush    rbp                                                            ; +0x5, 0x1403d9485\nlea     rbp, [rsp-57h]                                                 ; +0x6, 0x1403d9486\nsub     rsp, 90h                                                       ; +0xb, 0x1403d948b\ncall    GJKeybindManager__sharedState                                  ; +0x12, 0x1403d9492\nmov     rcx, rax                                                       ; +0x17, 0x1403d9497\ncall    GJKeybindManager__exportBindingsToFile                         ; +0x1a, 0x1403d949a\ntest    eax, eax                                                       ; +0x1f, 0x1403d949f\njle     loc_1403D9551                                                  ; +0x21, 0x1403d94a1\nxorps   xmm0, xmm0                                                     ; +0x27, 0x1403d94a7\nmovups  [rbp+57h+var_40], xmm0                                         ; +0x2a, 0x1403d94aa\nxor     ebx, ebx                                                       ; +0x2e, 0x1403d94ae\nmov     [rbp+57h+var_30], rbx                                          ; +0x30, 0x1403d94b0\nmov     [rbp+57h+var_28], rbx                                          ; +0x34, 0x1403d94b4\nmov     ecx, 20h ; ' '                                                 ; +0x38, 0x1403d94b8\ncall    sub_14003D460                                                  ; +0x3d, 0x1403d94bd\nmov     qword ptr [rbp+57h+var_40], rax                                ; +0x42, 0x1403d94c2\nmov     [rbp+57h+var_30], 12h                                          ; +0x46, 0x1403d94c6\nmov     [rbp+57h+var_28], 1Fh                                          ; +0x4e, 0x1403d94ce\nmovups  xmm0, cs:xmmword_140786930                                     ; +0x56, 0x1403d94d6\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5d, 0x1403d94dd\nmovzx   ecx, cs:word_140786940                                         ; +0x60, 0x1403d94e0\nmov     [rax+10h], cx                                                  ; +0x67, 0x1403d94e7\nmov     [rax+12h], bl                                                  ; +0x6b, 0x1403d94eb\nlea     rax, [rbp+57h+var_40]                                          ; +0x6e, 0x1403d94ee\nmov     [rbp+57h+arg_10], rax                                          ; +0x72, 0x1403d94f2\nlea     rdx, [rbp+57h+var_40]                                          ; +0x76, 0x1403d94f6\nlea     rcx, [rbp+57h+var_20]                                          ; +0x7a, 0x1403d94fa\ncall    sub_14003F4F0                                                  ; +0x7e, 0x1403d94fe\nmovss   xmm0, cs:flt_140835080                                         ; +0x83, 0x1403d9503\nmovss   [rsp+90h+var_50], xmm0                                         ; +0x8b, 0x1403d950b\nxorps   xmm1, xmm1                                                     ; +0x91, 0x1403d9511\nmovss   [rsp+90h+var_58], xmm1                                         ; +0x94, 0x1403d9514\nmov     [rsp+90h+var_60], bl                                           ; +0x9a, 0x1403d951a\nmovss   xmm0, cs:dword_14083595C                                       ; +0x9e, 0x1403d951e\nmovss   [rsp+90h+var_68], xmm0                                         ; +0xa6, 0x1403d9526\nmov     [rsp+90h+var_70], rbx                                          ; +0xac, 0x1403d952c\nlea     r9, aOk; \"OK\"                                                  ; +0xb1, 0x1403d9531\nmov     r8, rax                                                        ; +0xb8, 0x1403d9538\nlea     rdx, aKeybinds; \"Keybinds\"                                     ; +0xbb, 0x1403d953b\nxor     ecx, ecx                                                       ; +0xc2, 0x1403d9542\ncall    FLAlertLayer__create                                           ; +0xc4, 0x1403d9544\nmov     rbx, rax                                                       ; +0xc9, 0x1403d9549\njmp     loc_1403D9608                                                  ; +0xcc, 0x1403d954c\njns     loc_1403D9620                                                  ; +0xd1, 0x1403d9551\nxorps   xmm0, xmm0                                                     ; +0xd7, 0x1403d9557\nmovups  [rbp+57h+var_40], xmm0                                         ; +0xda, 0x1403d955a\nxor     ebx, ebx                                                       ; +0xde, 0x1403d955e\nmov     [rbp+57h+var_30], rbx                                          ; +0xe0, 0x1403d9560\nmov     [rbp+57h+var_28], rbx                                          ; +0xe4, 0x1403d9564\nmov     ecx, 20h ; ' '                                                 ; +0xe8, 0x1403d9568\ncall    sub_14003D460                                                  ; +0xed, 0x1403d956d\nmov     qword ptr [rbp+57h+var_40], rax                                ; +0xf2, 0x1403d9572\nmov     [rbp+57h+var_30], 19h                                          ; +0xf6, 0x1403d9576\nmov     [rbp+57h+var_28], 1Fh                                          ; +0xfe, 0x1403d957e\nmovups  xmm0, cs:xmmword_1407868C8                                     ; +0x106, 0x1403d9586\nmovups  xmmword ptr [rax], xmm0                                        ; +0x10d, 0x1403d958d\nmovsd   xmm0, cs:qword_1407868D8                                       ; +0x110, 0x1403d9590\nmovsd   qword ptr [rax+10h], xmm0                                      ; +0x118, 0x1403d9598\nmovzx   ecx, cs:byte_1407868E0                                         ; +0x11d, 0x1403d959d\nmov     [rax+18h], cl                                                  ; +0x124, 0x1403d95a4\nmov     [rax+19h], bl                                                  ; +0x127, 0x1403d95a7\nlea     rax, [rbp+57h+var_40]                                          ; +0x12a, 0x1403d95aa\nmov     [rbp+57h+arg_10], rax                                          ; +0x12e, 0x1403d95ae\nlea     rdx, [rbp+57h+var_40]                                          ; +0x132, 0x1403d95b2\nlea     rcx, [rbp+57h+var_20]                                          ; +0x136, 0x1403d95b6\ncall    sub_14003F4F0                                                  ; +0x13a, 0x1403d95ba\nmovss   xmm0, cs:flt_140835080                                         ; +0x13f, 0x1403d95bf\nmovss   [rsp+90h+var_50], xmm0                                         ; +0x147, 0x1403d95c7\nxorps   xmm1, xmm1                                                     ; +0x14d, 0x1403d95cd\nmovss   [rsp+90h+var_58], xmm1                                         ; +0x150, 0x1403d95d0\nmov     [rsp+90h+var_60], bl                                           ; +0x156, 0x1403d95d6\nmovss   xmm0, cs:dword_14083595C                                       ; +0x15a, 0x1403d95da\nmovss   [rsp+90h+var_68], xmm0                                         ; +0x162, 0x1403d95e2\nmov     [rsp+90h+var_70], rbx                                          ; +0x168, 0x1403d95e8\nlea     r9, aOk; \"OK\"                                                  ; +0x16d, 0x1403d95ed\nmov     r8, rax                                                        ; +0x174, 0x1403d95f4\nlea     rdx, aExportFailed; \"Export Failed\"                            ; +0x177, 0x1403d95f7\nxor     ecx, ecx                                                       ; +0x17e, 0x1403d95fe\ncall    FLAlertLayer__create                                           ; +0x180, 0x1403d9600\nmov     rbx, rax                                                       ; +0x185, 0x1403d9605\nlea     rcx, [rbp+57h+var_40]                                          ; +0x188, 0x1403d9608\ncall    sub_14003D310                                                  ; +0x18c, 0x1403d960c\nmov     rcx, [rbx]                                                     ; +0x191, 0x1403d9611\nmov     rdx, [rcx+428h]                                                ; +0x194, 0x1403d9614\nmov     rcx, rbx                                                       ; +0x19b, 0x1403d961b\ncall    rdx                                                            ; +0x19e, 0x1403d961e\nmov     rbx, [rsp+90h+arg_0]                                           ; +0x1a0, 0x1403d9620\nadd     rsp, 90h                                                       ; +0x1a8, 0x1403d9628\npop     rbp                                                            ; +0x1af, 0x1403d962f\nretn                                                                   ; +0x1b0, 0x1403d9630", "xrefs": ["KeybindingsLayer::settingsEntries @ 0x1403d819b", "<???> @ 0x140924bc0"], "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"}