//
// sub_1004A366C from 0x1004a366c to 0x1004a3738 (204 bytes)
//
// 1 xrefs:
// > EditButtonBar::loadFromItems @ 0x1004a3294
//
// 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:03 +0000
//
_QWORD *__fastcall sub_1004A366C(__int64 a1, double *a2, __int64 a3, float a4)
{
_QWORD *v8; // x19
__int64 v10; // [xsp+8h] [xbp-38h] BYREF
v8 = operator new(0x198u);
cocos2d::CCLayer::CCLayer((__int64)v8);
*v8 = &off_10097D3F0;
v8[40] = off_10097D880;
v8[41] = &off_10097D8F0;
v8[42] = off_10097D908;
v8[43] = &off_10097D928;
v8[44] = off_10097D950;
sub_1000262F4(&v10, a2);
if ( (unsigned int)sub_1004A3A20(v8, a1, &v10, a3, a4) )
{
cocos2d::CCObject::autorelease((__int64)v8);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v8 + 16LL))(v8);
return nullptr;
}
return v8;
}