//
// CustomSFXWidget::create from 0x10038afe4 to 0x10038b0ec (264 bytes)
//
// 2 xrefs:
// > CustomSFXCell::loadFromObject @ 0x100127bac
// > sub_10021378C @ 0x1002138e8
//
// 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:03:35 +0000
//
char *__fastcall CustomSFXWidget::create(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int64 a7,
char a8,
char a9)
{
char *v17; // x19
__int16 v19; // [xsp+0h] [xbp-60h]
v17 = (char *)operator new(0x1F8u);
cocos2d::CCNode::CCNode((__int64)v17);
*(_QWORD *)v17 = off_10093F020;
*((_QWORD *)v17 + 40) = off_10093F3D0;
*((_QWORD *)v17 + 41) = &off_10093F440;
*((_QWORD *)v17 + 42) = 0;
*((_QWORD *)v17 + 47) = 0;
*((_QWORD *)v17 + 62) = 0;
*((_QWORD *)v17 + 44) = 0;
*((_QWORD *)v17 + 45) = 0;
*(_OWORD *)(v17 + 392) = 0u;
*(_OWORD *)(v17 + 408) = 0u;
*(_OWORD *)(v17 + 424) = 0u;
*(_OWORD *)(v17 + 440) = 0u;
*(_OWORD *)(v17 + 456) = 0u;
*(_OWORD *)(v17 + 472) = 0u;
*(_QWORD *)(v17 + 487) = 0;
HIBYTE(v19) = a9;
LOBYTE(v19) = a8;
if ( (unsigned int)CustomSFXWidget::init(v17, a1, a2, a3, a4, a5, a6, a7, v19) )
{
cocos2d::CCObject::autorelease((__int64)v17);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v17 + 16LL))(v17);
return nullptr;
}
return v17;
}