//
// KeybindCapturePopup::create from 0x1001a4f98 to 0x1001a50b0 (280 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::openBindingEditor @ 0x1000258f8
// > LevelBindingsLayer::openBindingEditor @ 0x1004efbcc
//
// 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
//
char *__fastcall KeybindCapturePopup::create(__int64 a1, int a2, int a3, __int64 a4, int a5)
{
char *v10; // x19
v10 = (char *)operator new(0x478u);
bzero(v10, 0x478u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v10);
*(_QWORD *)v10 = off_1008E51B0;
*((_QWORD *)v10 + 40) = off_1008E57B0;
*((_QWORD *)v10 + 41) = &off_1008E5820;
*((_QWORD *)v10 + 42) = off_1008E5838;
*((_QWORD *)v10 + 43) = off_1008E5858;
*((_QWORD *)v10 + 44) = off_1008E5880;
*((_QWORD *)v10 + 51) = off_1008E58B0;
*((_QWORD *)v10 + 54) = off_1008E5930;
*((_QWORD *)v10 + 68) = off_1008E5950;
*((_QWORD *)v10 + 83) = &off_1008E5998;
*((_QWORD *)v10 + 84) = off_1008E59B0;
*((_QWORD *)v10 + 127) = off_1008E59D0;
*((_OWORD *)v10 + 64) = 0u;
*((_OWORD *)v10 + 65) = 0u;
v10[1056] = 0;
*(_OWORD *)(v10 + 1064) = 0u;
*(_OWORD *)(v10 + 1080) = 0u;
*(_OWORD *)(v10 + 1096) = 0u;
*(_OWORD *)(v10 + 1112) = 0u;
*(_OWORD *)(v10 + 1128) = 0u;
if ( (unsigned int)KeybindCapturePopup::init((__int64)v10, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((__int64)v10);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v10 + 16LL))(v10);
return nullptr;
}
return v10;
}