//
// sub_10021F74C from 0x10021f74c to 0x10021f818 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008fc230
//
// This function is hookable on this platform (idp: arm, 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 11:01:07 +0000
//
char *__fastcall sub_10021F74C(__int64 a1, void **a2)
{
void **v3; // x21
char *v4; // x19
void **v5; // x22
float v6; // s0
if ( a2 && (v3 = a2, (v4 = (char *)*a2) != nullptr) )
{
v5 = nullptr;
}
else
{
v4 = (char *)operator new(0x80u);
*(_OWORD *)v4 = 0u;
*((_OWORD *)v4 + 1) = 0u;
*((_OWORD *)v4 + 2) = 0u;
*((_OWORD *)v4 + 3) = 0u;
*((_OWORD *)v4 + 4) = 0u;
*((_OWORD *)v4 + 5) = 0u;
*((_OWORD *)v4 + 6) = 0u;
*((_OWORD *)v4 + 7) = 0u;
cocos2d::CCAction::CCAction();
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = &off_1008FC230;
v3 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCScaleTo::copyWithZone(a1, v3);
v6 = *(float *)(a1 + 80);
if ( v6 == 0.0 )
v6 = 0.00000011921;
*((float *)v4 + 20) = v6;
*((_DWORD *)v4 + 21) = 0;
v4[88] = 1;
*(_QWORD *)(v4 + 108) = *(_QWORD *)(a1 + 108);
if ( v5 )
operator delete(v5);
return v4;
}