//
// CustomSFXWidget::create from 0x1006b5270 to 0x1006b539f (303 bytes)
//
// 2 xrefs:
// > CustomSFXCell::loadFromObject @ 0x10022a1b9
// > SetupSFXPopup::createSFXWidget @ 0x1004b30b2
//
// This function is hookable on this platform (idp: pc, 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 12:35:26 +0000
//
char *__fastcall CustomSFXWidget::create(
int a1,
int a2,
unsigned __int8 a3,
unsigned __int8 a4,
unsigned __int8 a5,
char a6,
char a7,
char a8,
char a9)
{
char *v12; // rbx
v12 = (char *)operator new(0x1F8u);
cocos2d::CCNode::CCNode((__int64)v12);
*(_QWORD *)v12 = off_100B89960;
*((_QWORD *)v12 + 40) = off_100B89D10;
*((_QWORD *)v12 + 41) = &off_100B89D80;
*((_QWORD *)v12 + 42) = 0;
*((_QWORD *)v12 + 47) = 0;
*((_QWORD *)v12 + 62) = 0;
*((_OWORD *)v12 + 22) = 0;
*(_OWORD *)(v12 + 392) = 0;
*(_OWORD *)(v12 + 408) = 0;
*(_OWORD *)(v12 + 424) = 0;
*(_OWORD *)(v12 + 440) = 0;
*(_OWORD *)(v12 + 456) = 0;
*(_OWORD *)(v12 + 472) = 0;
*(_QWORD *)(v12 + 487) = 0;
if ( (unsigned __int8)CustomSFXWidget::init((_DWORD)v12, a1, a2, a3, a4, a5, a6, a7, a8, a9) )
{
cocos2d::CCObject::autorelease((__int64)v12);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v12 + 16LL))(v12);
return nullptr;
}
return v12;
}