//
// cocos2d::extension::CCScale9Sprite::initWithSpriteFrame from 0xd139e4 to 0xd13aa4 (192 bytes)
//
// 2 xrefs:
// > ??> @ 0x4bd48
// > ??> @ 0x150daf0
//
// 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 13:07:04 +0000
//
__int64 __fastcall cocos2d::extension::CCScale9Sprite::initWithSpriteFrame(
__int64 a1,
cocos2d::CCSpriteFrame *a2,
const cocos2d::CCRect *a3)
{
cocos2d::CCSpriteFrame *v3; // x21
cocos2d::CCSpriteBatchNode *Texture; // x0
unsigned int v6; // w2
__int64 v7; // x24
__int64 (__fastcall *v8)(__int64, __int64, _BYTE *, _QWORD, _BYTE *); // x23
_BYTE v11[16]; // [xsp+68h] [xbp+68h] BYREF
_BYTE v12[16]; // [xsp+78h] [xbp+78h] BYREF
v3 = a2;
Texture = (cocos2d::CCSpriteBatchNode *)cocos2d::CCSpriteFrame::getTexture(a2);
v7 = cocos2d::CCSpriteBatchNode::createWithTexture(Texture, (cocos2d::CCTexture2D *)byte_9, v6);
v8 = *(__int64 (__fastcall **)(__int64, __int64, _BYTE *, _QWORD, _BYTE *))(*(_QWORD *)a1 + 1104LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v11, (cocos2d::CCSpriteFrame *)((char *)v3 + 92));
LODWORD(v3) = *((unsigned __int8 *)v3 + 88);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, a3);
return v8(a1, v7, v11, (unsigned int)v3, v12);
}