//
// KeybindingsLayer::create from 0x1000235d8 to 0x100023644 (108 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x100162b68
// > GameSettingsLayer::onCustomButton @ 0x100167148
// > sub_10051C0D8 @ 0x10051c118
//
// 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 10:57:23 +0000
//
void *__fastcall KeybindingsLayer::create(__int64 a1)
{
void *v2; // x19
v2 = operator new(0x4A8u);
bzero(v2, 0x4A8u);
KeybindingsLayer::KeybindingsLayer(v2);
if ( (unsigned int)KeybindingsLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}