//
// CCSpritePlus::createWithSpriteFrameName from 0x14004be20 to 0x14004beaf (143 bytes)
//
// 4 xrefs:
// > GameObject::playShineEffect @ 0x1402974f6
// > GameObject::playShineEffect @ 0x140297670
// > ??> @ 0x14090fee4
// > ??> @ 0x14090fef0
//
// 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 11:25:33 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall CCSpritePlus::createWithSpriteFrameName(const char *a1)
{
cocos2d::CCSpriteFrameCache *v2; // rax
struct cocos2d::CCSpriteFrame *v3; // rdi
__int64 v4; // rax
cocos2d::CCObject *v5; // rbx
void *v7; // [rsp+38h] [rbp+10h]
v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v3 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, a1);
v7 = operator new(0x270u);
v4 = CCSpritePlus::CCSpritePlus((__int64)v7);
v5 = (cocos2d::CCObject *)v4;
if ( v4 )
{
if ( v3
&& (*(unsigned __int8 (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(*(_QWORD *)v4 + 912LL))(v4, v3) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
}
return nullptr;
}