//
// GameObject::addColorSpriteToSelf from 0x44d528 to 0x44d5e8 (192 bytes)
//
// 2 xrefs:
// > GameObject::addColorSpriteToParent @ 0x44d9a0
// > EditorUI::spriteFromObjectString @ 0x6f5302
//
// 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::addColorSpriteToSelf(GameObject *this)
{
GameObject *result; // r0
int v3; // r0
int v4; // r2
const cocos2d::CCSize *v5; // r0
int v6; // r6
int (__fastcall *v7)(int, _BYTE *); // r7
float v8[2]; // [sp+4h] [bp-18h] BYREF
_BYTE v9[8]; // [sp+Ch] [bp-10h] BYREF
result = (GameObject *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 189) + 256))(*((_DWORD *)this + 189));
if ( this != result )
{
v3 = *((_DWORD *)this + 189);
*((_BYTE *)this + 734) = 1;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v3 + 264))(v3, 0);
if ( *((_BYTE *)this + 917) )
v4 = 100;
else
v4 = -100;
(*(void (__fastcall **)(GameObject *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 189), v4);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 189) + 80))(*((_DWORD *)this + 189), 1065353216);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 189) + 180))(*((_DWORD *)this + 189), 0);
v5 = (const cocos2d::CCSize *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 164))(this);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v8, v5);
v6 = *((_DWORD *)this + 189);
v7 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v8[0] * 0.5, v8[1] * 0.5);
return (GameObject *)v7(v6, v9);
}
return result;
}