//
// cocos2d::CCSpriteFrame::initWithTextureFilename from 0x5e8bd8 to 0x5e8c82 (170 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteFrame::create @ 0x5e8cae
//
// 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 cocos2d::CCSpriteFrame::initWithTextureFilename(
cocos2d::CCSpriteFrame *a1,
const char *a2,
const cocos2d::CCRect *a3)
{
float x; // s18
cocos2d::CCDirector *v7; // r0
float v8; // r0
float y; // s17
float v10; // s18
cocos2d::CCDirector *v11; // r0
float v12; // r0
float width; // s16
float v14; // s17
cocos2d::CCDirector *v15; // r0
float v16; // r0
float height; // s19
float v18; // s16
cocos2d::CCDirector *v19; // r0
float v20; // r0
cocos2d::CCRect v22; // [sp+Ch] [bp-18h] BYREF
x = a3->origin.x;
v7 = cocos2d::CCDirector::sharedDirector();
v8 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v7));
y = a3->origin.y;
v10 = x * v8;
v11 = cocos2d::CCDirector::sharedDirector();
v12 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v11));
width = a3->size.width;
v14 = y * v12;
v15 = cocos2d::CCDirector::sharedDirector();
v16 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v15));
height = a3->size.height;
v18 = width * v16;
v19 = cocos2d::CCDirector::sharedDirector();
v20 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v19));
cocos2d::CCRect::CCRect(&v22, v10, v14, v18, height * v20);
return cocos2d::CCSpriteFrame::initWithTextureFilename(a1, (char *)a2, &v22, 0, &stru_AC9340, &v22.size);
}