//
// KeybindingsLayer::create from 0x1006e1530 to 0x1006e168d (349 bytes)
//
// 5 xrefs:
// > EditorPauseLayer::onKeybindings @ 0x10027ef26
// > GameSettingsLayer::onCustomButton @ 0x10060340c
// > EditorUI::handleEditorAction @ 0x10060bf0d
// > sub_10087EF20 @ 0x10087ef26
// > sub_10095E4C0 @ 0x10095e4f9
//
// 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:35:45 +0000
//
char *__fastcall KeybindingsLayer::create(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x4A8u);
__bzero(v1, 1192);
SetupTriggerPopup::SetupTriggerPopup((__int64)v1);
*(_OWORD *)(v1 + 1048) = 0;
*(_OWORD *)(v1 + 1032) = 0;
*(_OWORD *)(v1 + 1016) = 0;
*((_QWORD *)v1 + 133) = 0xFFFFFFFF00000000LL;
*((_OWORD *)v1 + 67) = 0;
*(_QWORD *)v1 = off_100B93590;
*((_QWORD *)v1 + 40) = off_100B93BC0;
*((_QWORD *)v1 + 41) = &off_100B93C30;
*((_QWORD *)v1 + 42) = off_100B93C48;
*((_QWORD *)v1 + 43) = off_100B93C68;
*((_QWORD *)v1 + 44) = off_100B93C90;
*((_QWORD *)v1 + 51) = off_100B93CC0;
*((_QWORD *)v1 + 54) = off_100B93D40;
*((_QWORD *)v1 + 68) = off_100B93D60;
*((_QWORD *)v1 + 83) = &off_100B93DA8;
*((_QWORD *)v1 + 84) = off_100B93DC0;
*(_OWORD *)(v1 + 1160) = 0;
*((_QWORD *)v1 + 147) = 0;
*((_OWORD *)v1 + 68) = 0;
v1[1104] = 0;
*(_OWORD *)(v1 + 1112) = 0;
*(_OWORD *)(v1 + 1128) = 0;
*(_OWORD *)(v1 + 1137) = 0;
*((_DWORD *)v1 + 296) = -1;
if ( (unsigned __int8)KeybindingsLayer::init(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}