//
// KeybindCapturePopup::create from 0x14044e090 to 0x14044e24e (446 bytes)
//
// 3 xrefs:
// > KeybindingsLayer::openBindingEditor @ 0x1403d8106
// > LevelBindingsLayer::openBindingEditor @ 0x14044c93d
// > ??> @ 0x1409275cc
//
// 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
//
// Hidden C++ exception states: #wind=1
void *__fastcall KeybindCapturePopup::create(__int64 a1, int a2, int a3, __int64 a4, int a5)
{
void *v9; // r14
v9 = operator new(0x468u);
memset(v9, 0, 0x468u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v9);
*(_QWORD *)v9 = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 40) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 41) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 42) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 43) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 44) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 51) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 54) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 68) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 83) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 84) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 125) = &KeybindCapturePopup::`vftable';
*((_QWORD *)v9 + 126) = 0;
*((_QWORD *)v9 + 127) = 0;
*((_QWORD *)v9 + 128) = 0;
*((_QWORD *)v9 + 129) = 0;
*((_BYTE *)v9 + 1040) = 0;
*((_QWORD *)v9 + 131) = 0;
*((_QWORD *)v9 + 132) = 0;
*((_QWORD *)v9 + 133) = 0;
*((_QWORD *)v9 + 134) = 0;
*((_QWORD *)v9 + 135) = 0;
*((_QWORD *)v9 + 136) = 0;
*((_QWORD *)v9 + 137) = 0;
*((_QWORD *)v9 + 138) = 0;
*((_QWORD *)v9 + 139) = 0;
*((_QWORD *)v9 + 140) = 0;
if ( KeybindCapturePopup::init((__int64)v9, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
return v9;
}
else
{
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
return nullptr;
}
}