//
// cocos2d::CCSprite::initWithSpriteFrame from 0x18008edc0 to 0x18008ee22 (98 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800f1d00
// > ??> @ 0x1800f21e8
// > ??> @ 0x1800f2d98
// > ??> @ 0x18010a1d8
// > ??> @ 0x18010d1f0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfe68
//
// 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:22:07 +0000
//
__int64 __fastcall cocos2d::CCSprite::initWithSpriteFrame(cocos2d::CCSprite *this, struct cocos2d::CCSpriteFrame *a2)
{
__int64 v2; // rdi
struct cocos2d::CCTexture2D *Texture; // rax
unsigned __int8 v6; // bl
v2 = *(_QWORD *)this;
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
v6 = (*(__int64 (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCTexture2D *, char *))(v2 + 896))(
this,
Texture,
(char *)a2 + 92);
(*(void (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *))(*(_QWORD *)this + 1008LL))(this, a2);
return v6;
}