//
// GameObjectCopy::init from 0x10036945c to 0x100369500 (164 bytes)
//
// 1 xrefs:
// > GameObjectCopy::create @ 0x10035c224
//
// 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 __fastcall GameObjectCopy::init(GameObjectCopy *a1, GameObject *a2)
{
double *v3; // x0
double v4; // d0
a1->m_object = a2;
cocos2d::CCObject::retain(a2);
v3 = (double *)((__int64 (__fastcall *)(GameObject *))a1->m_object->getPosition)(a1->m_object);
v4 = sub_1000229D0(&a1->m_position, v3);
a1->m_rotationX = ((float (__fastcall *)(GameObject *, double))a1->m_object->getRotationX)(a1->m_object, v4);
a1->m_rotationY = ((float (__fastcall *)(GameObject *))a1->m_object->getRotationY)(a1->m_object);
a1->m_isFlipX = ((__int64 (__fastcall *)(GameObject *))a1->m_object->isFlipX)(a1->m_object);
a1->m_isFlipY = ((__int64 (__fastcall *)(GameObject *))a1->m_object->isFlipY)(a1->m_object);
*(_QWORD *)&a1->m_customScaleX = *(_QWORD *)&a1->m_object->m_scaleX;
return 1;
}