//
// LevelBindingsLayer::create from 0x797924 to 0x797a3c (280 bytes)
//
// 2 xrefs:
// > PlatformerControlsPopup::onKeyboard @ 0x79cfb8
// > PlatformerControlsPopup::onController @ 0x79cfe6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:46 +0000
//
int *__fastcall LevelBindingsLayer::create(LevelBindingsLayer *this, KeybindSet *a2, bool a3)
{
int *v5; // r4
int v6; // r3
int *v7; // r0
v5 = (int *)operator new(0x32Cu);
memset(v5, 0, 0x32Cu);
SetupTriggerPopup::SetupTriggerPopup((SetupTriggerPopup *)v5);
v5[185] = -1;
v5[200] = -1;
v5[178] = 0;
v5[179] = 0;
v5[180] = 0;
v5[181] = 0;
v5[182] = 0;
v5[183] = 0;
v5[184] = 0;
v5[186] = 0;
v5[187] = 0;
v5[188] = 0;
v5[189] = 0;
*((_BYTE *)v5 + 760) = 0;
v5[191] = 0;
v5[192] = 0;
v5[193] = 0;
v5[194] = 0;
v5[195] = 0;
*((_BYTE *)v5 + 784) = 0;
v5[197] = 0;
v5[198] = 0;
v5[199] = 0;
*v5 = (int)&off_CFBB88;
v5[66] = (int)&off_CFBEA0;
v5[67] = (int)&off_CFBED8;
v5[68] = (int)&off_CFBEE4;
v5[69] = (int)&off_CFBEF4;
v5[70] = (int)&off_CFBF08;
v5[79] = (int)&off_CFBF20;
v5[83] = (int)&off_CFBF60;
v5[110] = (int)&off_CFBF70;
v5[130] = (int)&off_CFBF94;
v5[131] = (int)&off_CFBFA0;
v5[201] = 0;
*((_BYTE *)v5 + 808) = 0;
*((_BYTE *)v5 + 809) = 0;
if ( LevelBindingsLayer::init((LevelBindingsLayer *)v5, this, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v6 = *v5;
v7 = v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}