//
// GameObject::getScalePosDelta from 0x44d7bc to 0x44d866 (170 bytes)
//
// 6 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x43c30a
// > PlayerObject::collidedWithObjectInternal @ 0x43c314
// > PlayerObject::collidedWithObjectInternal @ 0x43c930
// > PlayerObject::collidedWithObjectInternal @ 0x43c944
// > PlayerObject::postCollision @ 0x44328e
// > PlayerObject::postCollision @ 0x4433ac
//
// 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:35 +0000
//
GameObject *__fastcall GameObject::getScalePosDelta(GameObject *this, int a2)
{
const cocos2d::CCRect *v4; // r0
float v5; // r2
int v6; // r2
_BYTE v8[8]; // [sp+4h] [bp-14h] BYREF
float v9; // [sp+Ch] [bp-Ch]
float v10; // [sp+10h] [bp-8h]
cocos2d::CCPoint::CCPoint(this, (const cocos2d::CCPoint *)&unk_D2B868);
v4 = (const cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 664))(a2);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, v4);
if ( *(_BYTE *)(a2 + 768) )
{
v5 = v10;
v10 = v9;
v9 = v5;
}
if ( GameObject::didScaleXChange((GameObject *)a2) )
*(float *)this = (float)(v9 - (float)((float)(v9 / *(float *)(a2 + 1008)) * *(float *)(a2 + 852))) * 0.5;
if ( GameObject::didScaleYChange((GameObject *)a2) )
*((float *)this + 1) = (float)(v10 - (float)((float)(v10 / *(float *)(a2 + 1012)) * *(float *)(a2 + 856))) * 0.5;
if ( *(_BYTE *)(a2 + 768) )
{
v6 = *((_DWORD *)this + 1);
*((_DWORD *)this + 1) = *(_DWORD *)this;
*(_DWORD *)this = v6;
}
return this;
}