//
// PlatformerControlsPopup::onKeyboard from 0xcfa4d8 to 0xcfa544 (108 bytes)
//
// 3 xrefs:
// > ??> @ 0x4ec88
// > PlatformerControlsPopup::init @ 0xcfb0b4
// > ??> @ 0x1541a40
//
// 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 13:06:50 +0000
//
__int64 __fastcall PlatformerControlsPopup::onKeyboard(PlatformerControlsPopup *this, cocos2d::CCObject *a2)
{
GameSettingsLayer *v3; // x1
__int64 v4; // x0
if ( PlatformerControlsPopup::sourceIsCustom(this) )
{
PlatformerControlsPopup::ensureCustomDraft(this);
v4 = LevelBindingsLayer::create((LevelBindingsLayer *)(*((_QWORD *)this + 133) + 72LL), nullptr);
}
else
{
v4 = KeybindingsLayer::create(nullptr, v3);
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}