//
// cocos2d::extension::CCScale9Sprite::setSpriteFrame from 0x7abdf4 to 0x7abe68 (116 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 12:00:03 +0000
//
int __fastcall cocos2d::extension::CCScale9Sprite::setSpriteFrame(
cocos2d::extension::CCScale9Sprite *this,
cocos2d::CCSpriteFrame *a2)
{
cocos2d::CCSpriteBatchNode *Texture; // r0
unsigned int v5; // r2
int v6; // r0
int (__fastcall *v7)(cocos2d::extension::CCScale9Sprite *, int, _BYTE *, int, _BYTE *); // r8
int v8; // r10
int v9; // r9
int result; // r0
_BYTE v11[16]; // [sp+Ch] [bp+0h] BYREF
_BYTE v12[16]; // [sp+1Ch] [bp+10h] BYREF
Texture = (cocos2d::CCSpriteBatchNode *)cocos2d::CCSpriteFrame::getTexture(a2);
v6 = cocos2d::CCSpriteBatchNode::createWithTexture(Texture, (cocos2d::CCTexture2D *)byte_9, v5);
v7 = *(int (__fastcall **)(cocos2d::extension::CCScale9Sprite *, int, _BYTE *, int, _BYTE *))(*(_DWORD *)this + 592);
v8 = v6;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, (cocos2d::CCSpriteFrame *)((char *)a2 + 88));
v9 = *((unsigned __int8 *)a2 + 84);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, (const cocos2d::CCRect *)&unk_D2E94C);
result = v7(this, v8, v11, v9, v12);
*((_DWORD *)this + 78) = 0;
*((_DWORD *)this + 79) = 0;
*((_DWORD *)this + 80) = 0;
*((_DWORD *)this + 81) = 0;
return result;
}