//
// KeybindCapturePopup::onSet from 0xcf6834 to 0xcf68e4 (176 bytes)
//
// 5 xrefs:
// > KeybindCapturePopup::inputKeySelected @ 0xcf7de8
// > KeybindCapturePopup::keyDown @ 0xcf7fc4
// > ??> @ 0x5ed50
// > KeybindCapturePopup::init @ 0xcf7764
// > ??> @ 0x1542368
//
// 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 13:06:48 +0000
//
__int64 __fastcall KeybindCapturePopup::onSet(__int64 this, cocos2d::CCObject *a2)
{
int v2; // w1
__int64 v3; // x2
_QWORD *v4; // x19
VirtualKeyboardNode *v5; // x0
FLAlertLayer *v6; // x0
unsigned int v7; // w3
v2 = *(_DWORD *)(this + 1048);
if ( v2 )
{
v3 = *(_QWORD *)(this + 1024);
if ( v3 )
{
if ( !*(_BYTE *)(this + 1056) )
{
v4 = (_QWORD *)this;
if ( !*(_BYTE *)(this + 1052) )
{
v7 = *(_DWORD *)(this + 1044);
if ( v7 )
{
if ( v2 != v7 )
{
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v3 + 40LL))(
v3,
v7,
*(unsigned int *)(this + 1040));
v3 = v4[128];
}
}
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 32LL))(v3);
v5 = (VirtualKeyboardNode *)v4[133];
if ( v5 )
VirtualKeyboardNode::resetModifiers(v5);
v6 = (FLAlertLayer *)v4[129];
if ( v6 )
FLAlertLayer::requestRebuild(v6);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*v4 + 1368LL))(v4, 0);
}
}
}
return this;
}