//
// CCSpriteWithHue::create from 0x3f25bc to 0x3f2622 (102 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:14 +0000
//
CCSpriteWithHue *__fastcall CCSpriteWithHue::create(int a1)
{
CCSpriteWithHue *v2; // r0
CCSpriteWithHue *v3; // r4
int v4; // r1
v2 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);
v3 = v2;
if ( !v2 )
return v3;
memset(v2, 0, 0x23Cu);
CCSpriteWithHue::CCSpriteWithHue(v3);
if ( (*(_BYTE *)a1 & 1) != 0 )
v4 = *(_DWORD *)(a1 + 8);
else
v4 = a1 + 1;
if ( (*(int (__fastcall **)(CCSpriteWithHue *, int))(*(_DWORD *)v3 + 524))(v3, v4) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
(*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v3 + 8))(v3);
return nullptr;
}