//
// cocos2d::CCSpriteFrame::createWithTexture from 0xd8a164 to 0xd8a260 (252 bytes)
//
// 2 xrefs:
// > cocos2d::CCSprite::displayFrame @ 0xd8694c
// > ??> @ 0xcc118
//
// 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:08:15 +0000
//
_QWORD *__fastcall cocos2d::CCSpriteFrame::createWithTexture(
cocos2d::CCSpriteFrame *this,
cocos2d::CCTexture2D *a2,
const cocos2d::CCRect *a3,
const cocos2d::CCPoint *a4,
const cocos2d::CCPoint *a5,
const cocos2d::CCSize *a6)
{
char v8; // w21
_QWORD *v10; // x0
_QWORD *v11; // x19
v8 = (char)a3;
v10 = (_QWORD *)operator new(0xB8u);
*v10 = 0;
v10[1] = 0;
v10[2] = 0;
v10[3] = 0;
v10[4] = 0;
v10[5] = 0;
v10[6] = 0;
v10[7] = 0;
v10[8] = 0;
v10[9] = 0;
v10[10] = 0;
v10[11] = 0;
v10[12] = 0;
v10[13] = 0;
v10[14] = 0;
v10[15] = 0;
v10[16] = 0;
v10[17] = 0;
v10[18] = 0;
v10[19] = 0;
v10[20] = 0;
v10[21] = 0;
v10[22] = 0;
v11 = v10;
cocos2d::CCObject::CCObject((__int64)v10);
*v11 = &off_152ED40;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v11 + 7));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v11 + 8));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v11 + 9));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)((char *)v11 + 92));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)((char *)v11 + 108));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)((char *)v11 + 116));
v11[17] = 0;
v11[18] = 0;
v11[19] = 0;
v11[20] = 0;
v11[21] = 0;
v11[22] = 0;
cocos2d::CCSpriteFrame::initWithTexture((cocos2d::CCSpriteFrame *)v11, this, a2, v8, a4, a5);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11);
return v11;
}