//
// cocos2d::CCSprite::displayFrame from 0x5e66e0 to 0x5e67fa (282 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCSpriteFrame *cocos2d::CCSprite::displayFrame(cocos2d::CCSprite *a1)
{
cocos2d::CCTexture2D *m_pobTexture; // r9
float x; // s18
cocos2d::CCDirector *v4; // r0
float v5; // r0
float y; // s17
float v7; // s18
cocos2d::CCDirector *v8; // r0
float v9; // r0
float width; // s16
float v11; // s17
cocos2d::CCDirector *v12; // r0
float v13; // r0
float height; // s19
float v15; // s16
cocos2d::CCDirector *v16; // r0
float v17; // r0
float v18; // s17
cocos2d::CCDirector *v19; // r0
float v20; // r0
float v21; // s16
float v22; // s17
cocos2d::CCDirector *v23; // r0
float v24; // r0
float v25; // s17
cocos2d::CCDirector *v26; // r0
float v27; // r0
float v28; // s16
float v29; // s17
cocos2d::CCDirector *v30; // r0
float v31; // r0
cocos2d::CCPoint v33; // [sp+Ch] [bp-10h] BYREF
cocos2d::CCSize v34; // [sp+14h] [bp-8h] BYREF
cocos2d::CCRect v35; // [sp+1Ch] [bp+0h] BYREF
m_pobTexture = a1->m_pobTexture;
x = a1->m_obRect.origin.x;
v4 = cocos2d::CCDirector::sharedDirector();
v5 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v4));
y = a1->m_obRect.origin.y;
v7 = x * v5;
v8 = cocos2d::CCDirector::sharedDirector();
v9 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v8));
width = a1->m_obRect.size.width;
v11 = y * v9;
v12 = cocos2d::CCDirector::sharedDirector();
v13 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v12));
height = a1->m_obRect.size.height;
v15 = width * v13;
v16 = cocos2d::CCDirector::sharedDirector();
v17 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v16));
cocos2d::CCRect::CCRect(&v35, v7, v11, v15, height * v17);
v18 = a1->m_obUnflippedOffsetPositionFromCenter.x;
v19 = cocos2d::CCDirector::sharedDirector();
v20 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v19));
v21 = a1->m_obUnflippedOffsetPositionFromCenter.y;
v22 = v18 * v20;
v23 = cocos2d::CCDirector::sharedDirector();
v24 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v23));
cocos2d::CCPoint::CCPoint(&v33, v22, v21 * v24);
v25 = a1->m_obContentSize.width;
v26 = cocos2d::CCDirector::sharedDirector();
v27 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v26));
v28 = a1->m_obContentSize.height;
v29 = v25 * v27;
v30 = cocos2d::CCDirector::sharedDirector();
v31 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v30));
cocos2d::CCSize::CCSize(&v34, v29, v28 * v31);
return cocos2d::CCSpriteFrame::createWithTexture(m_pobTexture, &v35);
}