//
// GameObject::resetObject from 0x44dd80 to 0x44df8a (522 bytes)
//
// 1 xrefs:
// > EnhancedGameObject::resetObject @ 0x44dfb4
//
// 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
//
int __fastcall GameObject::resetObject(GameObject *this)
{
int v2; // r6
int v3; // r2
int v4; // r3
float v5; // s12
double v6; // d7
double v7; // d6
bool v8; // fzf
float v9; // s14
int result; // r0
_BYTE v11[8]; // [sp+4h] [bp-10h] BYREF
*((_BYTE *)this + 834) = 0;
v2 = dword_D2B880;
v3 = dword_D2B884;
*((_BYTE *)this + 710) = 1;
*((_BYTE *)this + 658) = 0;
*((_BYTE *)this + 1111) = 0;
*(_QWORD *)&dword_D2B880 = 214013 * __PAIR64__(v3, v2) + 2531011;
*((_WORD *)this + 434) = (int)(float)((float)((float)(HIWORD(dword_D2B880) & 0x7FFF) / 32767.0) * 1900.0);
GameObject::resetGroupDisabled((int)this);
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)this + 620))(this, *((unsigned __int8 *)this + 860));
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)this + 624))(this, *((unsigned __int8 *)this + 861));
if ( *((float *)this + 252) != *((float *)this + 211) )
GameObject::updateCustomScaleX(this, *((float *)this + 211));
if ( *((float *)this + 253) != *((float *)this + 212) )
GameObject::updateCustomScaleY(this, *((float *)this + 212));
v4 = *(_DWORD *)this;
if ( *((float *)this + 209) == *((float *)this + 210) )
{
(*(void (__fastcall **)(GameObject *, _DWORD))(v4 + 180))(this, *((_DWORD *)this + 209));
}
else
{
(*(void (__fastcall **)(GameObject *, _DWORD))(v4 + 188))(this, *((_DWORD *)this + 209));
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)this + 196))(this, *((_DWORD *)this + 210));
}
v5 = *((float *)this + 206);
*((_WORD *)this + 436) = -1;
*((_WORD *)this + 437) = -1;
v6 = *((double *)this + 101);
*((_BYTE *)this + 880) = 1;
*((_DWORD *)this + 269) = -1;
v7 = v5;
v8 = v6 == v7;
v9 = *((float *)this + 207);
if ( !v8
|| *((double *)this + 102) != v9
|| *((float *)this + 144) != 0.0
|| *((float *)this + 146) != 0.0
|| *((float *)this + 148) != 0.0
|| *((float *)this + 149) != 0.0 )
{
*((double *)this + 101) = v7;
*((_DWORD *)this + 148) = 0;
*((_DWORD *)this + 149) = 0;
*((_DWORD *)this + 144) = 0;
*((_DWORD *)this + 146) = 0;
*((_BYTE *)this + 708) = 1;
*((double *)this + 102) = v9;
*((_BYTE *)this + 732) = 1;
}
*((_DWORD *)this + 142) = 0;
*((_DWORD *)this + 143) = 0;
*((_DWORD *)this + 145) = 0;
*((_DWORD *)this + 147) = 0;
*((_DWORD *)this + 150) = 0;
*((_DWORD *)this + 151) = 0;
*((_DWORD *)this + 199) = 0;
*((_DWORD *)this + 200) = 0;
(*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)this + 680))(v11, this);
result = cocos2d::CCPoint::operator=((char *)this + 1060, v11);
*((_DWORD *)this + 213) = *((_DWORD *)this + 252);
*((_DWORD *)this + 214) = *((_DWORD *)this + 253);
return result;
}