//
// KeybindingsLayer::create from 0x1403d5650 to 0x1403d56d0 (128 bytes)
//
// 4 xrefs:
// > EditorUI::handleEditorAction @ 0x1401c41ad
// > GameSettingsLayer::onCustomButton @ 0x1402c7cc3
// > PlatformerControlsPopup::onKeyboard @ 0x140451849
// > ??> @ 0x1409249b0
//
// 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:31:36 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall KeybindingsLayer::create(__int64 a1)
{
__int64 v2; // rax
cocos2d::CCObject *v3; // rbx
void *v5; // [rsp+38h] [rbp+10h]
v5 = operator new(0x4A0u);
memset(v5, 0, 0x4A0u);
v2 = sub_1403D56D0(v5);
v3 = (cocos2d::CCObject *)v2;
if ( v2 )
{
if ( (unsigned __int8)KeybindingsLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);
return nullptr;
}
return v3;
}