//
// cocos2d::CCSpriteFrame::initWithTextureFilename_1 from 0x1003576a0 to 0x100357786 (230 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteFrame::create_1 @ 0x10035764b
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall cocos2d::CCSpriteFrame::initWithTextureFilename_1(
cocos2d::CCSpriteFrame *a1,
const char *a2,
const cocos2d::CCRect *a3)
{
cocos2d::CCDirector *v4; // rax
cocos2d::CCDirector *v5; // rax
cocos2d::CCDirector *v6; // rax
cocos2d::CCDirector *v7; // rax
__m128 v8; // xmm3
cocos2d::CCRect v10; // [rsp+8h] [rbp-38h] BYREF
float v11; // [rsp+18h] [rbp-28h]
float height; // [rsp+1Ch] [rbp-24h]
float width; // [rsp+20h] [rbp-20h]
float x; // [rsp+24h] [rbp-1Ch]
x = a3->origin.x;
v4 = cocos2d::CCDirector::sharedDirector();
v11 = sub_1004849C0(v4) * x;
x = a3->origin.y;
v5 = cocos2d::CCDirector::sharedDirector();
x = x * sub_1004849C0(v5);
width = a3->size.width;
v6 = cocos2d::CCDirector::sharedDirector();
width = width * sub_1004849C0(v6);
height = a3->size.height;
v7 = cocos2d::CCDirector::sharedDirector();
v8 = (__m128)LODWORD(height);
v8.f32[0] = height * sub_1004849C0(v7);
sub_10028CC00((__int64)&v10, v11, x, (__m128)LODWORD(width), v8);
cocos2d::CCSpriteFrame::initWithTextureFilename(a1, a2, &v10, 0, &stru_1009A0BA0, &v10.size);
return 1;
}