//
// KeybindCapturePopup::create from 0x1005b49b0 to 0x1005b4b12 (354 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::openBindingEditor @ 0x1006e4721
// > LevelBindingsLayer::openBindingEditor @ 0x10091ff26
//
// 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 12:32:40 +0000
//
char *__fastcall KeybindCapturePopup::create(__int64 a1, int a2, int a3, __int64 a4, int a5)
{
char *v7; // rbx
v7 = (char *)operator new(0x478u);
__bzero(v7, 1144);
SetupTriggerPopup::SetupTriggerPopup((__int64)v7);
*(_QWORD *)v7 = off_100B7D738;
*((_QWORD *)v7 + 40) = off_100B7DD38;
*((_QWORD *)v7 + 41) = &off_100B7DDA8;
*((_QWORD *)v7 + 42) = off_100B7DDC0;
*((_QWORD *)v7 + 43) = off_100B7DDE0;
*((_QWORD *)v7 + 44) = off_100B7DE08;
*((_QWORD *)v7 + 51) = off_100B7DE38;
*((_QWORD *)v7 + 54) = off_100B7DEB8;
*((_QWORD *)v7 + 68) = off_100B7DED8;
*((_QWORD *)v7 + 83) = &off_100B7DF20;
*((_QWORD *)v7 + 84) = off_100B7DF38;
*((_QWORD *)v7 + 127) = off_100B7DF58;
*((_OWORD *)v7 + 64) = 0;
*((_OWORD *)v7 + 65) = 0;
v7[1056] = 0;
*(_OWORD *)(v7 + 1064) = 0;
*(_OWORD *)(v7 + 1080) = 0;
*(_OWORD *)(v7 + 1096) = 0;
*(_OWORD *)(v7 + 1112) = 0;
*(_OWORD *)(v7 + 1128) = 0;
if ( (unsigned __int8)KeybindCapturePopup::init((__int64)v7, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((__int64)v7);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
return v7;
}