//
// cocos2d::CCSpriteFrame::initWithTextureFilename from 0x100343520 to 0x100343711 (497 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteFrame::initWithTextureFilename_1 @ 0x100342e84
// > cocos2d::CCSpriteFrame::create @ 0x1003434c4
// > cocos2d::CCSpriteFrame::copyWithZone @ 0x10034395a
//
// 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 12:28:44 +0000
//
char __fastcall cocos2d::CCSpriteFrame::initWithTextureFilename(
__int64 a1,
const std::string::value_type *a2,
__int64 a3,
char a4,
_QWORD *a5,
_QWORD *a6)
{
__m128 *v11; // rdi
__int64 v12; // rdi
__int64 v13; // rdi
__int64 v14; // rdi
__int64 v15; // rax
__m128 v16; // xmm3
__int64 v17; // rdi
float v18; // xmm0_4
__int64 v19; // rax
float v20; // xmm0_4
__int64 v21; // rdi
float v22; // xmm0_4
__int64 v23; // rax
float v24; // xmm0_4
unsigned __int64 v26[2]; // [rsp+8h] [rbp-48h] BYREF
float v27; // [rsp+18h] [rbp-38h]
float v28; // [rsp+1Ch] [rbp-34h]
float v29; // [rsp+20h] [rbp-30h]
float v30; // [rsp+24h] [rbp-2Ch]
*(_QWORD *)(a1 + 128) = 0;
std::string::assign((std::string *)(a1 + 136), a2);
v11 = (__m128 *)(a1 + 72);
sub_100278810(v11, (unsigned __int64 *)a3);
v30 = *(float *)a3;
v12 = cocos2d::CCDirector::sharedDirector(v11, a3);
v30 = v30 / sub_100479350(v12);
v29 = *(float *)(a3 + 4);
v13 = cocos2d::CCDirector::sharedDirector(v12, a3);
v29 = v29 / sub_100479350(v13);
v28 = *(float *)(a3 + 8);
v14 = cocos2d::CCDirector::sharedDirector(v13, a3);
v28 = v28 / sub_100479350(v14);
v27 = *(float *)(a3 + 12);
v15 = cocos2d::CCDirector::sharedDirector(v14, a3);
v16 = (__m128)LODWORD(v27);
v16.f32[0] = v27 / sub_100479350(v15);
sub_100278270((__int64)v26, v30, v29, (__m128)LODWORD(v28), v16);
sub_100278810((__m128 *)(a1 + 92), v26);
sub_100278300((_QWORD *)(a1 + 108), a5);
v30 = *(float *)(a1 + 108);
v17 = cocos2d::CCDirector::sharedDirector(a1 + 108, a5);
v18 = sub_100479350(v17);
v30 = v30 / v18;
v29 = *(float *)(a1 + 112);
v19 = cocos2d::CCDirector::sharedDirector(v17, a5);
v20 = sub_100479350(v19);
sub_100278250((float *)v26, v30, v29 / v20);
sub_100278300((_QWORD *)(a1 + 56), v26);
sub_100278660((_QWORD *)(a1 + 116), a6);
v30 = *(float *)(a1 + 116);
v21 = cocos2d::CCDirector::sharedDirector(a1 + 116, a6);
v22 = sub_100479350(v21);
v30 = v30 / v22;
v29 = *(float *)(a1 + 120);
v23 = cocos2d::CCDirector::sharedDirector(v21, a6);
v24 = sub_100479350(v23);
sub_100278260((float *)v26, v30, v29 / v24);
sub_100278660((_QWORD *)(a1 + 64), v26);
*(_BYTE *)(a1 + 88) = a4;
return 1;
}