//
// KeybindCapturePopup::onSet from 0x1001a4d84 to 0x1001a4e30 (172 bytes)
//
// 3 xrefs:
// > KeybindCapturePopup::inputKeySelected @ 0x1001a51e4
// > KeybindCapturePopup::keyDown @ 0x1001a59a4
// > KeybindCapturePopup::init @ 0x1001a4aec
//
// This function is hookable on this platform (idp: arm, 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:00:02 +0000
//
__int64 __fastcall KeybindCapturePopup::onSet(__int64 result)
{
int v1; // w1
__int64 v2; // x19
int v3; // w8
v1 = *(_DWORD *)(result + 1048);
if ( v1 )
{
v2 = result;
result = *(_QWORD *)(result + 1024);
if ( result )
{
if ( (*(_BYTE *)(v2 + 1056) & 1) == 0 )
{
if ( (*(_BYTE *)(v2 + 1052) & 1) == 0 )
{
v3 = *(_DWORD *)(v2 + 1044);
if ( v3 )
{
if ( v3 != v1 )
{
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)result + 40LL))(
result,
*(unsigned int *)(v2 + 1044),
*(unsigned int *)(v2 + 1040));
result = *(_QWORD *)(v2 + 1024);
}
}
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)result + 32LL))(result);
if ( *(_QWORD *)(v2 + 1064) )
VirtualKeyboardNode::resetModifiers();
if ( *(_QWORD *)(v2 + 1032) )
FLAlertLayer::requestRebuild();
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1368LL))(v2, 0);
}
}
}
return result;
}