//
// CCSpriteWithHue::create from 0x3f2628 to 0x3f2692 (106 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, int a2)
{
CCSpriteWithHue *v4; // r0
CCSpriteWithHue *v5; // r4
int v6; // r1
v4 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);
v5 = v4;
if ( !v4 )
return v5;
memset(v4, 0, 0x23Cu);
CCSpriteWithHue::CCSpriteWithHue(v5);
if ( (*(_BYTE *)a1 & 1) != 0 )
v6 = *(_DWORD *)(a1 + 8);
else
v6 = a1 + 1;
if ( (*(int (__fastcall **)(CCSpriteWithHue *, int, int))(*(_DWORD *)v5 + 528))(v5, v6, a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
(*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v5 + 8))(v5);
return nullptr;
}