//
// cocos2d::CCBlink::copyWithZone from 0x1003baa10 to 0x1003baaeb (219 bytes)
//
// 1 xrefs:
// > ??> @ 0x10092a580
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::CCBlink::copyWithZone(cocos2d::CCBlink *a1, cocos2d::CCZone *a2)
{
cocos2d::CCObject *v2; // rbx
cocos2d::CCZone *v3; // r15
__m128 m_fDuration_low; // xmm0
int v5; // eax
__m128 v6; // xmm1
if ( a2 && (v2 = *(cocos2d::CCObject **)a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = (cocos2d::CCObject *)operator new(0x68u);
*(_OWORD *)&v2->__vftable = 0;
*(_OWORD *)&v2->m_nTag = 0;
*(_OWORD *)&v2->m_uIndexInArray = 0;
*(_OWORD *)&v2->m_uOrderOfArrival = 0;
*(_OWORD *)&v2[1].m_uID = 0;
*(_OWORD *)&v2[1].m_uAutoReleaseCount = 0;
*(_QWORD *)&v2[1].m_unknown2 = 0;
cocos2d::CCAction::CCAction(v2);
v2[1].m_uAutoReleaseCount = 0;
v2->__vftable = (cocos2d::CCObject_vtbl *)off_10092A580;
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
a2 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
m_fDuration_low = (__m128)LODWORD(a1->m_fDuration);
v5 = *((_DWORD *)&a1->m_bFirstTick + 1);
v6 = _mm_cmpeq_ss((__m128)0LL, m_fDuration_low);
*(_QWORD *)&v2[1].m_uAutoReleaseCount = _mm_andnot_ps(v6, m_fDuration_low).u32[0] | v6.i32[0] & 0x34000000;
LOBYTE(v2[1].m_uIndexInArray) = 1;
v2[1].m_uUnknown = v5;
if ( v3 )
operator delete(v3);
return v2;
}