//
// GameObject::getObjectTextureRect from 0x44c0bc to 0x44c264 (424 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 11:48:34 +0000
//
char *__fastcall GameObject::getObjectTextureRect(GameObject *this, float a2, float a3, int a4)
{
char *v5; // r6
float v6; // s14
float v7; // s12
float v8; // s14
int v9; // r0
const cocos2d::CCSize *v10; // r1
float v11; // s15
int v12; // r3
float v13; // s15
float v14; // s13
float v15; // s14
float v16; // s10
double v17; // d6
float v18; // s9
float v19; // s14
float v21; // [sp+4h] [bp-Ch] BYREF
float v22; // [sp+8h] [bp-8h]
int v23; // [sp+Ch] [bp-4h]
v21 = a2;
v22 = a3;
v23 = a4;
v5 = (char *)this + 692;
if ( *((_BYTE *)this + 708) )
{
*((_BYTE *)this + 708) = 0;
*((_BYTE *)this + 709) = 0;
if ( *((_BYTE *)this + 1048) )
{
*((_BYTE *)this + 732) = 1;
v9 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 664))(this);
cocos2d::CCRect::operator=(v5, v9);
}
else
{
if ( *((_BYTE *)this + 1049) )
v10 = (GameObject *)((char *)this + 1052);
else
v10 = (const cocos2d::CCSize *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 164))(this);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v21, v10);
v11 = *((float *)this + 252);
v12 = *((unsigned __int8 *)this + 768);
if ( v11 != 1.0 )
v21 = v21 * fabsf(v11);
v13 = *((float *)this + 253);
v14 = v21;
if ( v13 != 1.0 )
v22 = v22 * fabsf(v13);
if ( v12 )
{
v21 = v22;
v22 = v14;
}
else
{
v15 = *((float *)this + 13);
if ( v15 != 0.0 && fabsf(v15) != 180.0 )
{
v21 = sqrtf((float)(v22 * v22) + (float)(v21 * v21));
v22 = v21;
}
}
v16 = v21;
v17 = *((double *)this + 101);
*((float *)this + 175) = v21;
v18 = v22;
*((float *)this + 176) = v22;
*(float *)&v17 = v17 - (float)(v16 * 0.5);
*((_DWORD *)this + 173) = LODWORD(v17);
v19 = *((double *)this + 102) - (float)(v18 * 0.5);
*((float *)this + 174) = v19;
if ( v16 > 30.0 )
*((float *)this + 178) = (float)(v16 * 0.5) - 15.0;
}
}
else if ( *((_BYTE *)this + 709) )
{
*((_BYTE *)this + 709) = *((_BYTE *)this + 708);
v6 = *((double *)this + 101) - (float)(*((float *)this + 175) * 0.5);
v7 = *((float *)this + 176) * 0.5;
*((float *)this + 173) = v6;
v8 = *((double *)this + 102) - v7;
*((float *)this + 174) = v8;
}
return v5;
}