//
// KeybindingsSettingsPopup::onExport from 0x1403d9480 to 0x1403d9631 (433 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::settingsEntries @ 0x1403d819b
// > ??> @ 0x140924bc0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:31:38 +0000
//
// Hidden C++ exception states: #wind=1
__int64 KeybindingsSettingsPopup::onExport()
{
__int64 v0; // rax
__int64 result; // rax
__int64 v2; // rax
cocos2d::CCObject *v3; // rbx
__int64 v4; // rax
__int128 v5; // [rsp+50h] [rbp+17h] BYREF
__int64 v6; // [rsp+60h] [rbp+27h]
__int64 v7; // [rsp+68h] [rbp+2Fh]
_BYTE v8[32]; // [rsp+70h] [rbp+37h] BYREF
v0 = GJKeybindManager::sharedState();
result = GJKeybindManager::exportBindingsToFile(v0);
if ( (int)result <= 0 )
{
if ( (int)result >= 0 )
return result;
v5 = 0;
v6 = 0;
v7 = 0;
*(_QWORD *)&v5 = sub_14003D460(0x20u);
v6 = 25;
v7 = 31;
strcpy((char *)v5, "Could not write the file.");
v4 = sub_14003F4F0((__int64)v8, (__int64)&v5);
v3 = FLAlertLayer::create(0, (int)"Export Failed", v4, (__int64)"OK", 0, 1132068864, 0, 0, 1065353216);
}
else
{
v5 = 0;
v6 = 0;
v7 = 0;
*(_QWORD *)&v5 = sub_14003D460(0x20u);
v6 = 18;
v7 = 31;
strcpy((char *)v5, "Bindings exported.");
v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);
v3 = FLAlertLayer::create(0, (int)"Keybinds", v2, (__int64)"OK", 0, 1132068864, 0, 0, 1065353216);
}
sub_14003D310((__int64)&v5);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);
}