//
// cocos2d::CCSpriteFrame::initWithTextureFilename from 0x180093190 to 0x180093364 (468 bytes)
//
// 5 xrefs:
// > cocos2d::CCSpriteFrame::copyWithZone @ 0x180092a92
// > cocos2d::CCSpriteFrame::create @ 0x180092bd9
// > cocos2d::CCSpriteFrame::initWithTextureFilename @ 0x180093155
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0534
//
// 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:08 +0000
//
char __fastcall cocos2d::CCSpriteFrame::initWithTextureFilename(
cocos2d::CCSpriteFrame *this,
char *a2,
const struct cocos2d::CCRect *a3,
char a4,
const struct cocos2d::CCPoint *a5,
const struct cocos2d::CCSize *a6)
{
size_t v10; // rax
cocos2d::CCDirector *v11; // rax
float ContentScaleFactor; // xmm0_4
float v13; // xmm8_4
float v14; // xmm9_4
cocos2d::CCDirector *v15; // rax
float v16; // xmm0_4
float v17; // xmm7_4
float v18; // xmm8_4
cocos2d::CCDirector *v19; // rax
float v20; // xmm0_4
float v21; // xmm6_4
float v22; // xmm7_4
cocos2d::CCDirector *v23; // rax
float v24; // xmm0_4
cocos2d::CCRect *v25; // rax
cocos2d::CCDirector *v26; // rax
float v27; // xmm0_4
float v28; // xmm6_4
float v29; // xmm7_4
cocos2d::CCDirector *v30; // rax
float v31; // xmm0_4
float *v32; // rax
cocos2d::CCDirector *v33; // rax
float v34; // xmm0_4
float v35; // xmm6_4
float v36; // xmm7_4
cocos2d::CCDirector *v37; // rax
float v38; // xmm0_4
float *v39; // rax
_BYTE v41[48]; // [rsp+30h] [rbp-58h] BYREF
float v42; // [rsp+90h] [rbp+8h] BYREF
*((_QWORD *)this + 16) = 0;
v10 = strlen(a2);
sub_1800101E0((void **)this + 17, a2, v10);
cocos2d::CCRect::operator=((__int64)this + 72, (__int64)a3);
v11 = cocos2d::CCDirector::sharedDirector();
ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v11);
v13 = *((float *)a3 + 2);
v14 = *((float *)a3 + 3) / ContentScaleFactor;
v15 = cocos2d::CCDirector::sharedDirector();
v16 = cocos2d::CCDirector::getContentScaleFactor(v15);
v17 = *((float *)a3 + 1);
v18 = v13 / v16;
v19 = cocos2d::CCDirector::sharedDirector();
v20 = cocos2d::CCDirector::getContentScaleFactor(v19);
v21 = *(float *)a3;
v22 = v17 / v20;
v23 = cocos2d::CCDirector::sharedDirector();
v24 = cocos2d::CCDirector::getContentScaleFactor(v23);
v25 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v41, v21 / v24, v22, v18, v14);
cocos2d::CCRect::operator=((__int64)this + 92, (__int64)v25);
cocos2d::CCSize::operator=((_DWORD *)this + 27, a5);
v26 = cocos2d::CCDirector::sharedDirector();
v27 = cocos2d::CCDirector::getContentScaleFactor(v26);
v28 = *((float *)this + 27);
v29 = *((float *)this + 28) / v27;
v30 = cocos2d::CCDirector::sharedDirector();
v31 = cocos2d::CCDirector::getContentScaleFactor(v30);
v32 = kmVec2Fill(&v42, v28 / v31, v29);
cocos2d::CCSize::operator=((_DWORD *)this + 14, v32);
cocos2d::CCSize::operator=((_DWORD *)this + 29, a6);
v33 = cocos2d::CCDirector::sharedDirector();
v34 = cocos2d::CCDirector::getContentScaleFactor(v33);
v35 = *((float *)this + 29);
v36 = *((float *)this + 30) / v34;
v37 = cocos2d::CCDirector::sharedDirector();
v38 = cocos2d::CCDirector::getContentScaleFactor(v37);
v39 = kmVec2Fill(&v42, v35 / v38, v36);
cocos2d::CCSize::operator=((_DWORD *)this + 16, v39);
*((_BYTE *)this + 88) = a4;
return 1;
}