//
// cocos2d::CCSpriteFrame::initWithTextureFilename from 0xb18fcc to 0xb190b0 (228 bytes)
//
// 2 xrefs:
// > cocos2d::CCSpriteFrame::create @ 0xb1915c
// > ??> @ 0x5a0c0
//
// 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; // s10
cocos2d::CCDirector *v6; // x0
float ContentScaleFactor; // s0
float y; // s8
float v9; // s10
cocos2d::CCDirector *v10; // x0
float v11; // s0
float width; // s9
cocos2d::CCDirector *v13; // x0
float v14; // s0
float height; // s8
cocos2d::CCDirector *v16; // x0
float v17; // s0
float v19; // [xsp+50h] [xbp+50h]
float v20; // [xsp+60h] [xbp+60h]
cocos2d::CCRect v22; // [xsp+88h] [xbp+88h] BYREF
x = a3->origin.x;
v6 = cocos2d::CCDirector::sharedDirector();
ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v6);
y = a3->origin.y;
v9 = x * ContentScaleFactor;
v10 = cocos2d::CCDirector::sharedDirector();
v11 = cocos2d::CCDirector::getContentScaleFactor(v10);
width = a3->size.width;
v19 = y * v11;
v13 = cocos2d::CCDirector::sharedDirector();
v14 = cocos2d::CCDirector::getContentScaleFactor(v13);
height = a3->size.height;
v20 = width * v14;
v16 = cocos2d::CCDirector::sharedDirector();
v17 = cocos2d::CCDirector::getContentScaleFactor(v16);
cocos2d::CCRect::CCRect(&v22, v9, v19, v20, height * v17);
return cocos2d::CCSpriteFrame::initWithTextureFilename(a1, a2, &v22, 0, &stru_1245B40, &v22.size);
}