//
// PauseLayer::create from 0x1001be044 to 0x1001be0a4 (96 bytes)
//
// 1 xrefs:
// > PlayLayer::pauseGame @ 0x10014c4c8
//
// 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:00:13 +0000
//
_BYTE *__fastcall PauseLayer::create(char a1)
{
_BYTE *v2; // x19
v2 = operator new(0x2A0u);
PauseLayer::PauseLayer();
v2[584] = a1;
if ( (unsigned int)CCBlockLayer::init(v2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}