//
// LevelBindingsLayer::create from 0x1004ef99c to 0x1004efa74 (216 bytes)
//
// 2 xrefs:
// > sub_10051C0D8 @ 0x10051c10c
// > sub_10051C188 @ 0x10051c1bc
//
// 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 11:06:44 +0000
//
void *__fastcall LevelBindingsLayer::create(__int64 a1, __int64 a2)
{
void *v4; // x19
v4 = operator new(0x4B8u);
bzero(v4, 0x4B8u);
KeybindingsLayer::KeybindingsLayer((__int64)v4);
*(_QWORD *)v4 = &off_1009939E8;
*((_QWORD *)v4 + 40) = off_100994018;
*((_QWORD *)v4 + 41) = &off_100994088;
*((_QWORD *)v4 + 42) = off_1009940A0;
*((_QWORD *)v4 + 43) = off_1009940C0;
*((_QWORD *)v4 + 44) = off_1009940E8;
*((_QWORD *)v4 + 51) = off_100994118;
*((_QWORD *)v4 + 54) = off_100994198;
*((_QWORD *)v4 + 68) = off_1009941B8;
*((_QWORD *)v4 + 83) = &off_100994200;
*((_QWORD *)v4 + 84) = off_100994218;
*((_QWORD *)v4 + 149) = 0;
*((_WORD *)v4 + 600) = 0;
if ( (unsigned int)LevelBindingsLayer::init((__int64)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}