//
// CCSpriteWithHue::createWithSpriteFrame from 0x100238374 to 0x100238444 (208 bytes)
//
// 1 xrefs:
// > CCSpriteWithHue::createWithSpriteFrameName @ 0x100238490
//
// 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:01:20 +0000
//
__int64 (__fastcall ***__fastcall CCSpriteWithHue::createWithSpriteFrame(__int64 a1))()
{
__int64 (__fastcall ***v2)(); // x0
__int64 (__fastcall ***v3)(); // x19
__int64 (__fastcall **v4)(); // x8
__int64 Texture; // x0
char v6; // w21
v2 = (__int64 (__fastcall ***)())operator new(0x298u, &std::nothrow);
v3 = v2;
if ( v2 )
{
bzero(v2, 0x298u);
cocos2d::CCSprite::CCSprite(v3);
v4 = &off_100903D50;
*v3 = &off_100903D50;
v3[40] = off_100904250;
v3[43] = off_1009042D0;
if ( a1 )
{
Texture = cocos2d::CCSpriteFrame::getTexture(a1);
v6 = ((__int64 (__fastcall *)(__int64 (__fastcall ***)(), __int64, __int64))(*v3)[127])(v3, Texture, a1 + 92);
((void (__fastcall *)(__int64 (__fastcall ***)(), __int64))(*v3)[145])(v3, a1);
if ( (v6 & 1) != 0 )
{
cocos2d::CCObject::autorelease((__int64)v3);
return v3;
}
v4 = *v3;
}
((void (__fastcall *)(__int64 (__fastcall ***)()))v4[2])(v3);
return nullptr;
}
return v3;
}