//
// cocos2d::CCSpeed::copyWithZone from 0x1006c7370 to 0x1006c74b5 (325 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b8edd0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:35:34 +0000
//
char *__fastcall cocos2d::CCSpeed::copyWithZone(__int64 a1, void **a2)
{
char *v2; // rbx
void **v3; // r15
_DWORD *v4; // rax
char *v5; // r12
_QWORD *v6; // r13
__int64 v7; // rax
__int64 v8; // r12
int v10; // [rsp+0h] [rbp-2Ch]
if ( a2 )
{
v2 = (char *)*a2;
if ( *a2 )
{
v3 = nullptr;
v4 = *a2;
LABEL_5:
v4[18] = *(_DWORD *)(a1 + 72);
goto LABEL_7;
}
}
v2 = (char *)operator new(0x60u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_OWORD *)(v2 + 56) = 0;
*((_DWORD *)v2 + 18) = -1;
*(_QWORD *)v2 = off_100B8EDD0;
_mm_storel_ps((double *)(v2 + 76), (__m128)0x3F800000u);
*((_QWORD *)v2 + 11) = 0;
v3 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
v4 = *v3;
if ( *v3 )
goto LABEL_5;
v5 = (char *)operator new(0x50u);
cocos2d::CCObject::CCObject((__int64)v5);
*(_QWORD *)v5 = off_100B8ED50;
*(_OWORD *)(v5 + 56) = 0;
*((_QWORD *)v5 + 9) = 0x3F800000FFFFFFFFLL;
v6 = operator new(8u);
cocos2d::CCZone::CCZone(v6, (__int64)v5);
*((_DWORD *)v5 + 18) = *(_DWORD *)(a1 + 72);
operator delete(v6);
LABEL_7:
v7 = sub_1004800C0(*(__int64 (__fastcall ****)(_QWORD, _QWORD))(a1 + 88));
v8 = cocos2d::CCObject::autorelease(v7);
v10 = *(_DWORD *)(a1 + 80);
cocos2d::CCObject::retain(v8);
*((_QWORD *)v2 + 11) = v8;
*((_DWORD *)v2 + 20) = v10;
if ( v3 )
operator delete(v3);
return v2;
}