//
// cocos2d::CCSprite::setTextureCoords from 0x7f0d5c to 0x7f0efc (416 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:04 +0000
//
cocos2d::CCRect *__fastcall cocos2d::CCSprite::setTextureCoords(cocos2d::CCRect **this, const cocos2d::CCRect *a2)
{
float v4; // s18
cocos2d::CCDirector *v5; // r0
float v6; // r0
float v7; // s17
float v8; // s18
cocos2d::CCDirector *v9; // r0
float v10; // r0
float v11; // s16
float v12; // s17
cocos2d::CCDirector *v13; // r0
float v14; // r0
float v15; // s19
float v16; // s16
cocos2d::CCDirector *v17; // r0
float v18; // r0
cocos2d::CCRect *result; // r0
cocos2d::CCRect *v20; // r5
float v21; // s16
float v22; // s12
float v23; // s11
float v24; // s13
float v25; // s14
float v26; // s15
float v27; // [sp+Ch] [bp-14h] BYREF
float v28; // [sp+10h] [bp-10h]
float v29; // [sp+14h] [bp-Ch]
float v30; // [sp+18h] [bp-8h]
v4 = *(float *)a2;
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v6 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v5));
v7 = *((float *)a2 + 1);
v8 = v4 * v6;
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v6));
v10 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v9));
v11 = *((float *)a2 + 2);
v12 = v7 * v10;
v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v10));
v14 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v13));
v15 = *((float *)a2 + 3);
v16 = v11 * v14;
v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v14));
v18 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v17));
result = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v27, v8, v12, v16, v15 * v18);
if ( *(this + 73) )
{
result = (cocos2d::CCRect *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 71) + 48))(*(this + 71));
v20 = result;
}
else
{
v20 = *(this + 83);
}
if ( v20 )
{
v21 = (float)(unsigned int)(*(int (__fastcall **)(cocos2d::CCRect *))(*(_DWORD *)v20 + 44))(v20);
result = (cocos2d::CCRect *)(*(int (__fastcall **)(cocos2d::CCRect *))(*(_DWORD *)v20 + 48))(v20);
v22 = v27 / v21;
v23 = (float)(unsigned int)result;
if ( *((_BYTE *)this + 352) )
{
v24 = v28 / v23;
v25 = (float)(v27 + v30) / v21;
v26 = (float)(v28 + v29) / v23;
if ( *((_BYTE *)this + 469) )
{
v24 = (float)(v28 + v29) / v23;
v26 = v28 / v23;
}
if ( *((_BYTE *)this + 470) )
{
v22 = (float)(v27 + v30) / v21;
v25 = v27 / v21;
}
*((float *)this + 103) = v22;
*((float *)this + 104) = v24;
*((float *)this + 115) = v22;
*((float *)this + 116) = v26;
*((float *)this + 97) = v25;
*((float *)this + 98) = v24;
*((float *)this + 109) = v25;
*((float *)this + 110) = v26;
}
else
{
v24 = v28 / v23;
v25 = (float)(v27 + v29) / v21;
v26 = (float)(v28 + v30) / v23;
if ( *((_BYTE *)this + 469) )
{
v22 = (float)(v27 + v29) / v21;
v25 = v27 / v21;
}
if ( *((_BYTE *)this + 470) )
{
v24 = (float)(v28 + v30) / v23;
v26 = v28 / v23;
}
*((float *)this + 103) = v22;
*((float *)this + 104) = v26;
*((float *)this + 115) = v25;
*((float *)this + 116) = v26;
*((float *)this + 97) = v22;
*((float *)this + 98) = v24;
*((float *)this + 109) = v25;
*((float *)this + 110) = v24;
}
*((float *)this + 123) = v22;
*((float *)this + 124) = v25;
*((float *)this + 125) = v26;
*((float *)this + 126) = v24;
}
return result;
}