//
// GameObject::playPickupAnimation from 0x1402a7350 to 0x1402a75ec (668 bytes)
//
// 3 xrefs:
// > GameObject::playPickupAnimation_1 @ 0x1402a731c
// > GameObject::playDestroyObjectAnim @ 0x1402a8570
// > ??> @ 0x14091dae0
//
// 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 11:29:18 +0000
//
struct cocos2d::CCAction *__fastcall GameObject::playPickupAnimation(
__int64 a1,
cocos2d::CCNode *a2,
float a3,
float a4,
float a5,
float a6,
float a7,
float a8,
float a9,
float a10,
char a11,
float a12,
float a13)
{
float v15; // xmm8_4
float v16; // xmm7_4
int v17; // eax
const struct cocos2d::CCPoint *v18; // rax
float *v19; // rax
float v20; // xmm6_4
__int64 v21; // rax
__int64 v22; // rax
__int64 v23; // rax
struct cocos2d::CCFiniteTimeAction *v24; // rbx
__int64 v25; // rax
struct cocos2d::CCAction *v26; // rax
struct cocos2d::CCFiniteTimeAction *v27; // rbx
struct cocos2d::CCFadeTo *v28; // rax
struct cocos2d::CCAction *v29; // rax
struct cocos2d::CCAction *result; // rax
struct cocos2d::CCAction *v31; // rax
float v32[2]; // [rsp+20h] [rbp-88h] BYREF
_BYTE v33[8]; // [rsp+28h] [rbp-80h] BYREF
_BYTE v34[8]; // [rsp+30h] [rbp-78h] BYREF
_BYTE v35[8]; // [rsp+38h] [rbp-70h] BYREF
_BYTE v36[96]; // [rsp+40h] [rbp-68h] BYREF
float v37; // [rsp+B0h] [rbp+8h] BYREF
float v38; // [rsp+B4h] [rbp+Ch]
v15 = a12;
if ( a12 == 0.0 )
{
v16 = a13;
if ( a13 == 0.0 )
{
v17 = rand();
v15 = (float)((float)((float)v17 / 32767.0) + (float)((float)v17 / 32767.0)) - 1.0;
v16 = (float)rand() / 32767.0;
}
}
else
{
v16 = a13;
}
v18 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, v18);
v19 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, (float)(a3 * v15) + *v19, v38 - a4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36);
v20 = (float)(v16 * 0.1) + 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v37, (float)(v20 * a5) + v38);
cocos2d::CCPoint::operator=(v35, v21);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v32[0], (float)(v20 * a6) + v38);
cocos2d::CCPoint::operator=(v36, v22);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v32[0], v32[1] - a7);
cocos2d::CCPoint::operator=(v34, v23);
v24 = cocos2d::CCBezierTo::create(a8, (const struct cocos2d::_ccBezierConfig *)v34);
v25 = cocos2d::CCCallFunc::create(a2, sub_14003F5B0);
v26 = cocos2d::CCSequence::create(v24, v25, 0);
cocos2d::CCNode::runAction(a2, v26);
v27 = cocos2d::CCDelayTime::create(a9);
v28 = cocos2d::CCFadeTo::create(a10, 0);
v29 = cocos2d::CCSequence::create(v27, v28, 0);
result = cocos2d::CCNode::runAction(a2, v29);
if ( a11 )
{
v31 = cocos2d::CCRotateBy::create(0.60000002, (float)-v16 * 40.0);
return cocos2d::CCNode::runAction(a2, v31);
}
return result;
}