//
// cocos2d::CCSpriteFrame::initWithTextureFilename from 0x1002eb434 to 0x1002eb590 (348 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteFrame::copyWithZone @ 0x1002eb6b4
//
// 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 11:02:53 +0000
//
__int64 __fastcall cocos2d::CCSpriteFrame::initWithTextureFilename(
__int64 a1,
const std::string::value_type *a2,
float *a3,
char a4,
double *a5,
double *a6)
{
float v11; // s8
__int64 v12; // x0
float v13; // s0
float v14; // s9
float v15; // s8
__int64 v16; // x0
float v17; // s0
float v18; // s10
float v19; // s9
__int64 v20; // x0
float v21; // s0
float v22; // s11
float v23; // s10
__int64 v24; // x0
float v25; // s0
float v26; // s8
__int64 v27; // x0
float v28; // s0
float v29; // s9
float v30; // s8
__int64 v31; // x0
float v32; // s0
float v33; // s8
__int64 v34; // x0
float v35; // s0
float v36; // s9
float v37; // s8
__int64 v38; // x0
float v39; // s0
double v41[2]; // [xsp+0h] [xbp-60h] BYREF
*(_QWORD *)(a1 + 128) = 0;
std::string::assign((std::string *)(a1 + 136), a2);
sub_1000264EC((_QWORD *)(a1 + 72), (__int64)a3);
v11 = *a3;
v12 = cocos2d::CCDirector::sharedDirector();
v13 = sub_100207B64(v12);
v14 = a3[1];
v15 = v11 / v13;
v16 = cocos2d::CCDirector::sharedDirector();
v17 = sub_100207B64(v16);
v18 = a3[2];
v19 = v14 / v17;
v20 = cocos2d::CCDirector::sharedDirector();
v21 = sub_100207B64(v20);
v22 = a3[3];
v23 = v18 / v21;
v24 = cocos2d::CCDirector::sharedDirector();
v25 = sub_100207B64(v24);
sub_1000262CC((float *)v41, v15, v19, v23, v22 / v25);
sub_1000264EC((_QWORD *)(a1 + 92), (__int64)v41);
sub_10002630C((_QWORD *)(a1 + 108), a5);
v26 = *(float *)(a1 + 108);
v27 = cocos2d::CCDirector::sharedDirector();
v28 = sub_100207B64(v27);
v29 = *(float *)(a1 + 112);
v30 = v26 / v28;
v31 = cocos2d::CCDirector::sharedDirector();
v32 = sub_100207B64(v31);
sub_1000262BC((float *)v41, v30, v29 / v32);
sub_10002630C((_QWORD *)(a1 + 56), v41);
sub_100026450((_QWORD *)(a1 + 116), a6);
v33 = *(float *)(a1 + 116);
v34 = cocos2d::CCDirector::sharedDirector();
v35 = sub_100207B64(v34);
v36 = *(float *)(a1 + 120);
v37 = v33 / v35;
v38 = cocos2d::CCDirector::sharedDirector();
v39 = sub_100207B64(v38);
sub_1000262C4((float *)v41, v37, v36 / v39);
sub_100026450((_QWORD *)(a1 + 64), v41);
*(_BYTE *)(a1 + 88) = a4;
return 1;
}