//
// sub_30F168 from 0x30f168 to 0x30f1a6 (62 bytes)
//
// 2 xrefs:
// > std::__detail::_ReuseOrAllocNode,false>>>::operator @ 0x318ebc
// > std::__detail::_ReuseOrAllocNode,false>>>::operator @ 0x318ed0
//
// 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
//
int __fastcall sub_30F168(int result, int a2)
{
int v3; // r4
v3 = result;
if ( result )
{
*(_DWORD *)result = *(_DWORD *)a2;
*(_DWORD *)(result + 4) = *(_DWORD *)(a2 + 4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(result + 8), (const cocos2d::CCPoint *)(a2 + 8));
result = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 16), (const cocos2d::CCPoint *)(a2 + 16));
*(_DWORD *)(v3 + 24) = *(_DWORD *)(a2 + 24);
*(_DWORD *)(v3 + 28) = *(_DWORD *)(a2 + 28);
*(_DWORD *)(v3 + 32) = *(_DWORD *)(a2 + 32);
*(_DWORD *)(v3 + 36) = *(_DWORD *)(a2 + 36);
*(_DWORD *)(v3 + 40) = *(_DWORD *)(a2 + 40);
}
return result;
}