//
// cocos2d::extension::CCScale9Sprite::setSpriteFrame from 0x180010030 to 0x1800100d8 (168 bytes)
//
// 3 xrefs:
// > ??> @ 0x180027970
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004a080
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::extension::CCScale9Sprite::setSpriteFrame(
cocos2d::extension::CCScale9Sprite *this,
struct cocos2d::CCSpriteFrame *a2)
{
struct cocos2d::CCTexture2D *Texture; // rax
struct cocos2d::CCSpriteBatchNode *v5; // rax
unsigned __int8 v6; // di
__int64 v7; // rbp
struct cocos2d::CCSpriteBatchNode *v8; // rsi
__int64 v9; // rax
__int64 v10; // rbx
__int64 v11; // rax
_BYTE v12[16]; // [rsp+30h] [rbp-38h] BYREF
_BYTE v13[40]; // [rsp+40h] [rbp-28h] BYREF
Texture = cocos2d::CCSpriteFrame::getTexture(a2);
v5 = cocos2d::CCSpriteBatchNode::createWithTexture(Texture, 9u);
v6 = *((_BYTE *)a2 + 88);
v7 = *(_QWORD *)this;
v8 = v5;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, (const struct cocos2d::CCRect *)&unk_180048610);
v10 = v9;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13, (struct cocos2d::CCSpriteFrame *)((char *)a2 + 92));
(*(void (__fastcall **)(cocos2d::extension::CCScale9Sprite *, struct cocos2d::CCSpriteBatchNode *, __int64, _QWORD, __int64))(v7 + 1048))(
this,
v8,
v11,
v6,
v10);
*((_QWORD *)this + 47) = 0;
*((_QWORD *)this + 48) = 0;
}