//
// KeybindCapturePopup::onSet from 0x14044ec20 to 0x14044ece9 (201 bytes)
//
// 4 xrefs:
// > KeybindCapturePopup::inputKeySelected @ 0x14044e39b
// > KeybindCapturePopup::keyDown @ 0x14044ef77
// > KeybindCapturePopup::init @ 0x14044dd97
// > ??> @ 0x140927620
//
// 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:32:26 +0000
//
__int64 __fastcall KeybindCapturePopup::onSet(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rcx
__int64 v4; // rdx
__int64 v5; // rcx
__int64 v6; // rcx
result = *(unsigned int *)(a1 + 1032);
if ( (_DWORD)result )
{
v3 = *(_QWORD *)(a1 + 1008);
if ( v3 )
{
if ( !*(_BYTE *)(a1 + 1040) )
{
if ( !*(_BYTE *)(a1 + 1036) )
{
v4 = *(unsigned int *)(a1 + 1028);
if ( (_DWORD)v4 )
{
if ( (_DWORD)v4 != (_DWORD)result )
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v3 + 32LL))(
v3,
v4,
*(unsigned int *)(a1 + 1024));
}
}
(*(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(**(_QWORD **)(a1 + 1008) + 24LL))(
*(_QWORD *)(a1 + 1008),
*(unsigned int *)(a1 + 1032),
*(unsigned int *)(a1 + 1024));
v5 = *(_QWORD *)(a1 + 1048);
if ( v5 )
{
*(_WORD *)(v5 + 336) = 0;
*(_BYTE *)(v5 + 338) = 0;
sub_140457440();
}
v6 = *(_QWORD *)(a1 + 1016);
if ( v6 )
cocos2d::CCNode::scheduleOnce(v6, FLAlertLayer::rebuildContentDeferred);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1104LL))(a1, 0);
}
}
}
return result;
}