//
// GameObjectCopy::init from 0x6647a4 to 0x664864 (192 bytes)
//
// 2 xrefs:
// > GameObjectCopy::create @ 0x6648bc
// > ??> @ 0x62640
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool GameObjectCopy::init(GameObjectCopy *a1, GameObject *a2)
{
float v3; // s0
float v4; // s1
float v5; // s0
GameObject *m_object; // x1
float v7; // s0
GameObject *v8; // x1
GameObject *v9; // x1
a1->m_object = a2;
cocos2d::CCObject::retain(a2);
v3 = ((float (__fastcall *)(GameObject *))a1->m_object->getPosition)(a1->m_object);
cocos2d::CCPoint::operator=(&a1->m_position, v3, v4);
v5 = a1->m_object->getRotationX(a1->m_object);
m_object = a1->m_object;
a1->m_rotationX = v5;
v7 = m_object->getRotationY(m_object);
v8 = a1->m_object;
a1->m_rotationY = v7;
a1->m_isFlipX = v8->isFlipX(v8);
a1->m_isFlipY = a1->m_object->isFlipY(a1->m_object);
v9 = a1->m_object;
a1->m_customScaleX = v9->m_scaleX;
a1->m_customScaleY = v9->m_scaleY;
return 1;
}