//
// KeybindCapturePopup::onSet from 0x79a352 to 0x79a3ba (104 bytes)
//
// 2 xrefs:
// > KeybindCapturePopup::inputKeySelected @ 0x79b2a6
// > KeybindCapturePopup::keyDown @ 0x79b3a8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:48 +0000
//
_DWORD *__fastcall KeybindCapturePopup::onSet(_DWORD *this, cocos2d::CCObject *a2)
{
_DWORD *v2; // r4
int v3; // r3
int v4; // r1
VirtualKeyboardNode *v5; // r0
FLAlertLayer *v6; // r0
v2 = this;
v3 = *(this + 183);
if ( v3 )
{
this = (_DWORD *)*(this + 179);
if ( this )
{
if ( !*((_BYTE *)v2 + 740) )
{
if ( !*((_BYTE *)v2 + 736) )
{
v4 = v2[182];
if ( v4 )
{
if ( v4 != v3 )
(*(void (__fastcall **)(_DWORD *, int, _DWORD))(*this + 20))(this, v4, v2[181]);
}
}
(*(void (__fastcall **)(_DWORD, _DWORD, _DWORD))(*(_DWORD *)v2[179] + 16))(v2[179], v2[183], v2[181]);
v5 = (VirtualKeyboardNode *)v2[186];
if ( v5 )
VirtualKeyboardNode::resetModifiers(v5);
v6 = (FLAlertLayer *)v2[180];
if ( v6 )
FLAlertLayer::requestRebuild(v6);
return (_DWORD *)(*(int (__fastcall **)(_DWORD *, _DWORD))(*v2 + 684))(v2, 0);
}
}
}
return this;
}