{"type": "func", "start": 5371491152, "end": 5371491820, "name": "GameObject::playPickupAnimation", "pseudocode": "// \n// GameObject::playPickupAnimation from 0x1402a7350 to 0x1402a75ec (668 bytes)\n// \n// 3 xrefs:\n// > GameObject::playPickupAnimation_1 @ 0x1402a731c\n// > GameObject::playDestroyObjectAnim @ 0x1402a8570\n// > <???> @ 0x14091dae0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:29:18 +0000\n// \n\nstruct cocos2d::CCAction *__fastcall GameObject::playPickupAnimation(\n        __int64 a1,\n        cocos2d::CCNode *a2,\n        float a3,\n        float a4,\n        float a5,\n        float a6,\n        float a7,\n        float a8,\n        float a9,\n        float a10,\n        char a11,\n        float a12,\n        float a13)\n{\n  float v15; // xmm8_4\n  float v16; // xmm7_4\n  int v17; // eax\n  const struct cocos2d::CCPoint *v18; // rax\n  float *v19; // rax\n  float v20; // xmm6_4\n  __int64 v21; // rax\n  __int64 v22; // rax\n  __int64 v23; // rax\n  struct cocos2d::CCFiniteTimeAction *v24; // rbx\n  __int64 v25; // rax\n  struct cocos2d::CCAction *v26; // rax\n  struct cocos2d::CCFiniteTimeAction *v27; // rbx\n  struct cocos2d::CCFadeTo *v28; // rax\n  struct cocos2d::CCAction *v29; // rax\n  struct cocos2d::CCAction *result; // rax\n  struct cocos2d::CCAction *v31; // rax\n  float v32[2]; // [rsp+20h] [rbp-88h] BYREF\n  _BYTE v33[8]; // [rsp+28h] [rbp-80h] BYREF\n  _BYTE v34[8]; // [rsp+30h] [rbp-78h] BYREF\n  _BYTE v35[8]; // [rsp+38h] [rbp-70h] BYREF\n  _BYTE v36[96]; // [rsp+40h] [rbp-68h] BYREF\n  float v37; // [rsp+B0h] [rbp+8h] BYREF\n  float v38; // [rsp+B4h] [rbp+Ch]\n\n  v15 = a12;\n  if ( a12 == 0.0 )\n  {\n    v16 = a13;\n    if ( a13 == 0.0 )\n    {\n      v17 = rand();\n      v15 = (float)((float)((float)v17 / 32767.0) + (float)((float)v17 / 32767.0)) - 1.0;\n      v16 = (float)rand() / 32767.0;\n    }\n  }\n  else\n  {\n    v16 = a13;\n  }\n  v18 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, v18);\n  v19 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, (float)(a3 * v15) + *v19, v38 - a4);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36);\n  v20 = (float)(v16 * 0.1) + 1.0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v37, (float)(v20 * a5) + v38);\n  cocos2d::CCPoint::operator=(v35, v21);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v32[0], (float)(v20 * a6) + v38);\n  cocos2d::CCPoint::operator=(v36, v22);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v32[0], v32[1] - a7);\n  cocos2d::CCPoint::operator=(v34, v23);\n  v24 = cocos2d::CCBezierTo::create(a8, (const struct cocos2d::_ccBezierConfig *)v34);\n  v25 = cocos2d::CCCallFunc::create(a2, sub_14003F5B0);\n  v26 = cocos2d::CCSequence::create(v24, v25, 0);\n  cocos2d::CCNode::runAction(a2, v26);\n  v27 = cocos2d::CCDelayTime::create(a9);\n  v28 = cocos2d::CCFadeTo::create(a10, 0);\n  v29 = cocos2d::CCSequence::create(v27, v28, 0);\n  result = cocos2d::CCNode::runAction(a2, v29);\n  if ( a11 )\n  {\n    v31 = cocos2d::CCRotateBy::create(0.60000002, (float)-v16 * 40.0);\n    return cocos2d::CCNode::runAction(a2, v31);\n  }\n  return result;\n}", "assembly": "; \n; GameObject::playPickupAnimation from 0x1402a7350 to 0x1402a75ec (668 bytes)\n; \n; 3 xrefs:\n; > GameObject::playPickupAnimation_1 @ 0x1402a731c\n; > GameObject::playDestroyObjectAnim @ 0x1402a8570\n; > <???> @ 0x14091dae0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:29:18 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x1402a7350\nmov     [rax+10h], rbx                                                 ; +0x3, 0x1402a7353\npush    rdi                                                            ; +0x7, 0x1402a7357\nsub     rsp, 0A0h                                                      ; +0x8, 0x1402a7358\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0xf, 0x1402a735f\nxorps   xmm0, xmm0                                                     ; +0x13, 0x1402a7363\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x16, 0x1402a7366\nmov     rdi, rdx                                                       ; +0x1a, 0x1402a736a\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x1d, 0x1402a736d\nmov     rbx, rcx                                                       ; +0x22, 0x1402a7372\nmovss   xmm8, [rsp+0A8h+arg_58]                                        ; +0x25, 0x1402a7375\nucomiss xmm8, xmm0                                                     ; +0x2f, 0x1402a737f\nmovaps  xmmword ptr [rax-48h], xmm10                                   ; +0x33, 0x1402a7383\nmovaps  xmm10, xmm2                                                    ; +0x38, 0x1402a7388\nmovaps  xmmword ptr [rax-58h], xmm11                                   ; +0x3c, 0x1402a738c\nmovaps  xmm11, xmm3                                                    ; +0x41, 0x1402a7391\njp      short loc_1402A73E6                                            ; +0x45, 0x1402a7395\njnz     short loc_1402A73E6                                            ; +0x47, 0x1402a7397\nmovss   xmm7, [rsp+0A8h+arg_60]                                        ; +0x49, 0x1402a7399\nucomiss xmm7, xmm0                                                     ; +0x52, 0x1402a73a2\njp      short loc_1402A73EF                                            ; +0x55, 0x1402a73a5\njnz     short loc_1402A73EF                                            ; +0x57, 0x1402a73a7\ncall    cs:rand                                                        ; +0x59, 0x1402a73a9\nmovd    xmm8, eax                                                      ; +0x5f, 0x1402a73af\ncvtdq2ps xmm8, xmm8                                                    ; +0x64, 0x1402a73b4\ndivss   xmm8, cs:dword_140835BDC                                       ; +0x68, 0x1402a73b8\naddss   xmm8, xmm8                                                     ; +0x71, 0x1402a73c1\nsubss   xmm8, cs:flt_140835080                                         ; +0x76, 0x1402a73c6\ncall    cs:rand                                                        ; +0x7f, 0x1402a73cf\nmovd    xmm7, eax                                                      ; +0x85, 0x1402a73d5\ncvtdq2ps xmm7, xmm7                                                    ; +0x89, 0x1402a73d9\ndivss   xmm7, cs:dword_140835BDC                                       ; +0x8c, 0x1402a73dc\njmp     short loc_1402A73EF                                            ; +0x94, 0x1402a73e4\nmovss   xmm7, [rsp+0A8h+arg_60]                                        ; +0x96, 0x1402a73e6\nmov     rax, [rbx]                                                     ; +0x9f, 0x1402a73ef\nmov     rcx, rbx                                                       ; +0xa2, 0x1402a73f2\ncall    qword ptr [rax+0C8h]                                           ; +0xa5, 0x1402a73f5\nmov     rdx, rax                                                       ; +0xab, 0x1402a73fb\nlea     rcx, [rsp+0A8h+arg_0]                                          ; +0xae, 0x1402a73fe\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xb6, 0x1402a7406\nmov     rax, [rbx]                                                     ; +0xbc, 0x1402a740c\nmov     rcx, rbx                                                       ; +0xbf, 0x1402a740f\ncall    qword ptr [rax+0C8h]                                           ; +0xc2, 0x1402a7412\nmovss   xmm2, [rsp+0A8h+arg_4]                                         ; +0xc8, 0x1402a7418\nlea     rcx, [rsp+0A8h+var_88]                                         ; +0xd1, 0x1402a7421\nmulss   xmm10, xmm8                                                    ; +0xd6, 0x1402a7426\nsubss   xmm2, xmm11                                                    ; +0xdb, 0x1402a742b\naddss   xmm10, dword ptr [rax]                                         ; +0xe0, 0x1402a7430\nmovaps  xmm1, xmm10                                                    ; +0xe5, 0x1402a7435\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe9, 0x1402a7439\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0xef, 0x1402a743f\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xf4, 0x1402a7444\nlea     rcx, [rsp+0A8h+var_70]                                         ; +0xfa, 0x1402a744a\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xff, 0x1402a744f\nlea     rcx, [rsp+0A8h+var_68]                                         ; +0x105, 0x1402a7455\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x10a, 0x1402a745a\nmovss   xmm1, [rsp+0A8h+arg_0]                                         ; +0x110, 0x1402a7460\nlea     rcx, [rsp+0A8h+var_80]                                         ; +0x119, 0x1402a7469\nmovaps  xmm6, xmm7                                                     ; +0x11e, 0x1402a746e\nmulss   xmm6, cs:dword_140834E00                                       ; +0x121, 0x1402a7471\naddss   xmm6, cs:flt_140835080                                         ; +0x129, 0x1402a7479\nmovaps  xmm2, xmm6                                                     ; +0x131, 0x1402a7481\nmulss   xmm2, [rsp+0A8h+arg_20]                                        ; +0x134, 0x1402a7484\naddss   xmm2, [rsp+0A8h+arg_4]                                         ; +0x13d, 0x1402a748d\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x146, 0x1402a7496\nmov     rdx, rax                                                       ; +0x14c, 0x1402a749c\nlea     rcx, [rsp+0A8h+var_70]                                         ; +0x14f, 0x1402a749f\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x154, 0x1402a74a4\nmulss   xmm6, [rsp+0A8h+arg_28]                                        ; +0x15a, 0x1402a74aa\nlea     rcx, [rsp+0A8h+var_80]                                         ; +0x163, 0x1402a74b3\nmovss   xmm1, [rsp+0A8h+var_88]                                        ; +0x168, 0x1402a74b8\naddss   xmm6, [rsp+0A8h+arg_4]                                         ; +0x16e, 0x1402a74be\nmovaps  xmm2, xmm6                                                     ; +0x177, 0x1402a74c7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x17a, 0x1402a74ca\nmov     rdx, rax                                                       ; +0x180, 0x1402a74d0\nlea     rcx, [rsp+0A8h+var_68]                                         ; +0x183, 0x1402a74d3\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x188, 0x1402a74d8\nmovss   xmm2, [rsp+0A8h+var_84]                                        ; +0x18e, 0x1402a74de\nlea     rcx, [rsp+0A8h+var_80]                                         ; +0x194, 0x1402a74e4\nsubss   xmm2, [rsp+0A8h+arg_30]                                        ; +0x199, 0x1402a74e9\nmovss   xmm1, [rsp+0A8h+var_88]                                        ; +0x1a2, 0x1402a74f2\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a8, 0x1402a74f8\nmov     rdx, rax                                                       ; +0x1ae, 0x1402a74fe\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0x1b1, 0x1402a7501\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1b6, 0x1402a7506\nmovss   xmm0, [rsp+0A8h+arg_38]                                        ; +0x1bc, 0x1402a750c\nlea     rdx, [rsp+0A8h+var_78]                                         ; +0x1c5, 0x1402a7515\ncall    cs:?create@CCBezierTo@cocos2d@@SAPEAV12@MAEBU_ccBezierConfig@2@@Z; cocos2d::CCBezierTo::create(float,cocos2d::_ccBezierConfig const &) ; +0x1ca, 0x1402a751a\nlea     rdx, sub_14003F5B0                                             ; +0x1d0, 0x1402a7520\nmov     rcx, rdi                                                       ; +0x1d7, 0x1402a7527\nmov     rbx, rax                                                       ; +0x1da, 0x1402a752a\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x1dd, 0x1402a752d\nxor     r8d, r8d                                                       ; +0x1e3, 0x1402a7533\nmov     rcx, rbx                                                       ; +0x1e6, 0x1402a7536\nmov     rdx, rax                                                       ; +0x1e9, 0x1402a7539\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x1ec, 0x1402a753c\nmov     rdx, rax                                                       ; +0x1f2, 0x1402a7542\nmov     rcx, rdi                                                       ; +0x1f5, 0x1402a7545\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1f8, 0x1402a7548\nmovss   xmm0, [rsp+0A8h+arg_40]                                        ; +0x1fe, 0x1402a754e\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x207, 0x1402a7557\nmovss   xmm0, [rsp+0A8h+arg_48]                                        ; +0x20d, 0x1402a755d\nxor     edx, edx                                                       ; +0x216, 0x1402a7566\nmov     rbx, rax                                                       ; +0x218, 0x1402a7568\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x21b, 0x1402a756b\nxor     r8d, r8d                                                       ; +0x221, 0x1402a7571\nmov     rcx, rbx                                                       ; +0x224, 0x1402a7574\nmov     rdx, rax                                                       ; +0x227, 0x1402a7577\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x22a, 0x1402a757a\nmov     rdx, rax                                                       ; +0x230, 0x1402a7580\nmov     rcx, rdi                                                       ; +0x233, 0x1402a7583\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x236, 0x1402a7586\ncmp     [rsp+0A8h+arg_50], 0                                           ; +0x23c, 0x1402a758c\njz      short loc_1402A75C2                                            ; +0x244, 0x1402a7594\nxorps   xmm7, cs:xmmword_140836CC0                                     ; +0x246, 0x1402a7596\nmulss   xmm7, cs:dword_140835674                                       ; +0x24d, 0x1402a759d\nmovss   xmm0, cs:dword_140834F64                                       ; +0x255, 0x1402a75a5\nmovaps  xmm1, xmm7                                                     ; +0x25d, 0x1402a75ad\ncall    cs:?create@CCRotateBy@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCRotateBy::create(float,float) ; +0x260, 0x1402a75b0\nmov     rdx, rax                                                       ; +0x266, 0x1402a75b6\nmov     rcx, rdi                                                       ; +0x269, 0x1402a75b9\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x26c, 0x1402a75bc\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x272, 0x1402a75c2\nmov     rbx, [r11+18h]                                                 ; +0x27a, 0x1402a75ca\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x27e, 0x1402a75ce\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x283, 0x1402a75d3\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x288, 0x1402a75d8\nmovaps  xmm10, xmmword ptr [r11-40h]                                   ; +0x28d, 0x1402a75dd\nmovaps  xmm11, xmmword ptr [r11-50h]                                   ; +0x292, 0x1402a75e2\nmov     rsp, r11                                                       ; +0x297, 0x1402a75e7\npop     rdi                                                            ; +0x29a, 0x1402a75ea\nretn                                                                   ; +0x29b, 0x1402a75eb", "xrefs": ["GameObject::playPickupAnimation_1 @ 0x1402a731c", "GameObject::playDestroyObjectAnim @ 0x1402a8570", "<???> @ 0x14091dae0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}