{"type": "func", "start": 5370453952, "end": 5370454623, "name": "GameObject::playPickupAnimation", "pseudocode": "// \n// GameObject::playPickupAnimation from 0x1401a9fc0 to 0x1401aa25f (671 bytes)\n// \n// 3 xrefs:\n// > GameObject::playPickupAnimation_1 @ 0x1401a9f8c\n// > GameObject::playDestroyObjectAnim @ 0x1401ab2ed\n// > <???> @ 0x1406cc174\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GameObject::playPickupAnimation(\n        GameObject *a1,\n        cocos2d::CCSprite *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        bool a11,\n        float a12,\n        float a13)\n{\n  float v15; // xmm8_4\n  float v16; // xmm7_4\n  int v17; // eax\n  double v18; // xmm0_8\n  const cocos2d::CCPoint *v19; // rax\n  double v20; // xmm0_8\n  __int64 v21; // rax\n  double v22; // xmm0_8\n  __int64 v23; // rax\n  double v24; // xmm0_8\n  __int64 v25; // rax\n  struct cocos2d::CCBezierTo *v26; // rbx\n  __int64 v27; // rax\n  struct cocos2d::CCSequence *v28; // rax\n  cocos2d::ccColor3B *v29; // r8\n  struct cocos2d::CCDelayTime *v30; // rbx\n  struct cocos2d::CCFadeTo *v31; // rax\n  struct cocos2d::CCSequence *v32; // rax\n  cocos2d::ccColor3B *v33; // r8\n  struct cocos2d::CCRotateBy *v34; // rax\n  cocos2d::ccColor3B *v35; // r8\n  float v36; // [rsp+20h] [rbp-88h]\n  float v37; // [rsp+20h] [rbp-88h]\n  float v38; // [rsp+20h] [rbp-88h]\n  cocos2d::CCPoint v39; // [rsp+30h] [rbp-78h] BYREF\n  cocos2d::CCPoint v40; // [rsp+38h] [rbp-70h] BYREF\n  cocos2d::CCPoint v41[12]; // [rsp+40h] [rbp-68h] BYREF\n  cocos2d::CCPoint v42; // [rsp+B0h] [rbp+8h] BYREF\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  a1->getPosition_0(a1);\n  v18 = cocos2d::CCPoint::CCPoint(&v42);\n  v19 = a1->getPosition_0(a1);\n  cocos2d::CCPoint::CCPoint(*(float *)&v18, (float)(a3 * v15) + v19->x);\n  cocos2d::CCPoint::CCPoint(&v39);\n  cocos2d::CCPoint::CCPoint(&v40);\n  v20 = cocos2d::CCPoint::CCPoint(v41);\n  cocos2d::CCPoint::CCPoint(*(float *)&v20, v42.x);\n  v22 = cocos2d::CCPoint::operator=(&v40, v21);\n  cocos2d::CCPoint::CCPoint(*(float *)&v22, v36);\n  v24 = cocos2d::CCPoint::operator=(v41, v23);\n  cocos2d::CCPoint::CCPoint(*(float *)&v24, v36);\n  cocos2d::CCPoint::operator=(&v39, v25);\n  v26 = cocos2d::CCBezierTo::create(a8, (const struct cocos2d::_ccBezierConfig *)&v39);\n  v27 = cocos2d::CCCallFunc::create(a2, sub_14003BE70);\n  v28 = cocos2d::CCSequence::create(v26, v27, 0);\n  cocos2d::CCNode::runAction((CCLightFlash *)a2, (cocos2d::CCPoint)v28, v29, a4, v36);\n  v30 = cocos2d::CCDelayTime::create(a9);\n  v31 = cocos2d::CCFadeTo::create(a10, 0);\n  v32 = cocos2d::CCSequence::create(v30, v31, 0);\n  cocos2d::CCNode::runAction((CCLightFlash *)a2, (cocos2d::CCPoint)v32, v33, a4, v37);\n  if ( a11 )\n  {\n    v34 = cocos2d::CCRotateBy::create(0.60000002, (float)-v16 * 40.0);\n    cocos2d::CCNode::runAction((CCLightFlash *)a2, (cocos2d::CCPoint)v34, v35, a4, v38);\n  }\n}", "assembly": "; \n; GameObject::playPickupAnimation from 0x1401a9fc0 to 0x1401aa25f (671 bytes)\n; \n; 3 xrefs:\n; > GameObject::playPickupAnimation_1 @ 0x1401a9f8c\n; > GameObject::playDestroyObjectAnim @ 0x1401ab2ed\n; > <???> @ 0x1406cc174\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     rax, rsp                                                       ; +0x0, 0x1401a9fc0\nmov     [rax+10h], rbx                                                 ; +0x3, 0x1401a9fc3\npush    rdi                                                            ; +0x7, 0x1401a9fc7\nsub     rsp, 0A0h                                                      ; +0x8, 0x1401a9fc8\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0xf, 0x1401a9fcf\nxorps   xmm0, xmm0                                                     ; +0x13, 0x1401a9fd3\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x16, 0x1401a9fd6\nmov     rdi, rdx                                                       ; +0x1a, 0x1401a9fda\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x1d, 0x1401a9fdd\nmov     rbx, rcx                                                       ; +0x22, 0x1401a9fe2\nmovss   xmm8, [rsp+0A8h+arg_58]                                        ; +0x25, 0x1401a9fe5\nucomiss xmm8, xmm0                                                     ; +0x2f, 0x1401a9fef\nmovaps  xmmword ptr [rax-48h], xmm10                                   ; +0x33, 0x1401a9ff3\nmovaps  xmm10, xmm2                                                    ; +0x38, 0x1401a9ff8\nmovaps  xmmword ptr [rax-58h], xmm11                                   ; +0x3c, 0x1401a9ffc\nmovaps  xmm11, xmm3                                                    ; +0x41, 0x1401aa001\njp      short loc_1401AA056                                            ; +0x45, 0x1401aa005\njnz     short loc_1401AA056                                            ; +0x47, 0x1401aa007\nmovss   xmm7, [rsp+0A8h+arg_60]                                        ; +0x49, 0x1401aa009\nucomiss xmm7, xmm0                                                     ; +0x52, 0x1401aa012\njp      short loc_1401AA05F                                            ; +0x55, 0x1401aa015\njnz     short loc_1401AA05F                                            ; +0x57, 0x1401aa017\ncall    cs:rand                                                        ; +0x59, 0x1401aa019\nmovd    xmm8, eax                                                      ; +0x5f, 0x1401aa01f\ncvtdq2ps xmm8, xmm8                                                    ; +0x64, 0x1401aa024\ndivss   xmm8, cs:dword_140623644                                       ; +0x68, 0x1401aa028\naddss   xmm8, xmm8                                                     ; +0x71, 0x1401aa031\nsubss   xmm8, cs:flt_140622C24                                         ; +0x76, 0x1401aa036\ncall    cs:rand                                                        ; +0x7f, 0x1401aa03f\nmovd    xmm7, eax                                                      ; +0x85, 0x1401aa045\ncvtdq2ps xmm7, xmm7                                                    ; +0x89, 0x1401aa049\ndivss   xmm7, cs:dword_140623644                                       ; +0x8c, 0x1401aa04c\njmp     short loc_1401AA05F                                            ; +0x94, 0x1401aa054\nmovss   xmm7, [rsp+0A8h+arg_60]                                        ; +0x96, 0x1401aa056\nmov     rax, [rbx]                                                     ; +0x9f, 0x1401aa05f\nmov     rcx, rbx                                                       ; +0xa2, 0x1401aa062\ncall    qword ptr [rax+0C8h]                                           ; +0xa5, 0x1401aa065\nmov     rdx, rax                                                       ; +0xab, 0x1401aa06b\nlea     rcx, [rsp+0A8h+arg_0]                                          ; +0xae, 0x1401aa06e\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xb6, 0x1401aa076\nmovss   xmm6, [rsp+0A8h+arg_4]                                         ; +0xbc, 0x1401aa07c\nmov     rcx, rbx                                                       ; +0xc5, 0x1401aa085\nmov     rax, [rbx]                                                     ; +0xc8, 0x1401aa088\nsubss   xmm6, xmm11                                                    ; +0xcb, 0x1401aa08b\ncall    qword ptr [rax+0C8h]                                           ; +0xd0, 0x1401aa090\nmulss   xmm10, xmm8                                                    ; +0xd6, 0x1401aa096\nlea     rcx, [rsp+0A8h+var_88]                                         ; +0xdb, 0x1401aa09b\nmovaps  xmm2, xmm6                                                     ; +0xe0, 0x1401aa0a0\naddss   xmm10, dword ptr [rax]                                         ; +0xe3, 0x1401aa0a3\nmovaps  xmm1, xmm10                                                    ; +0xe8, 0x1401aa0a8\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xec, 0x1401aa0ac\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0xf2, 0x1401aa0b2\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xf7, 0x1401aa0b7\nlea     rcx, [rsp+0A8h+var_70]                                         ; +0xfd, 0x1401aa0bd\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x102, 0x1401aa0c2\nlea     rcx, [rsp+0A8h+var_68]                                         ; +0x108, 0x1401aa0c8\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x10d, 0x1401aa0cd\nmovss   xmm1, [rsp+0A8h+arg_0]                                         ; +0x113, 0x1401aa0d3\nlea     rcx, [rsp+0A8h+var_80]                                         ; +0x11c, 0x1401aa0dc\nmovaps  xmm6, xmm7                                                     ; +0x121, 0x1401aa0e1\nmulss   xmm6, cs:dword_140622A10                                       ; +0x124, 0x1401aa0e4\naddss   xmm6, cs:flt_140622C24                                         ; +0x12c, 0x1401aa0ec\nmovaps  xmm2, xmm6                                                     ; +0x134, 0x1401aa0f4\nmulss   xmm2, [rsp+0A8h+arg_20]                                        ; +0x137, 0x1401aa0f7\naddss   xmm2, [rsp+0A8h+arg_4]                                         ; +0x140, 0x1401aa100\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x149, 0x1401aa109\nmov     rdx, rax                                                       ; +0x14f, 0x1401aa10f\nlea     rcx, [rsp+0A8h+var_70]                                         ; +0x152, 0x1401aa112\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x157, 0x1401aa117\nmulss   xmm6, [rsp+0A8h+arg_28]                                        ; +0x15d, 0x1401aa11d\nlea     rcx, [rsp+0A8h+var_80]                                         ; +0x166, 0x1401aa126\nmovss   xmm1, [rsp+0A8h+var_88]                                        ; +0x16b, 0x1401aa12b\naddss   xmm6, [rsp+0A8h+arg_4]                                         ; +0x171, 0x1401aa131\nmovaps  xmm2, xmm6                                                     ; +0x17a, 0x1401aa13a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x17d, 0x1401aa13d\nmov     rdx, rax                                                       ; +0x183, 0x1401aa143\nlea     rcx, [rsp+0A8h+var_68]                                         ; +0x186, 0x1401aa146\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x18b, 0x1401aa14b\nmovss   xmm2, [rsp+0A8h+var_84]                                        ; +0x191, 0x1401aa151\nlea     rcx, [rsp+0A8h+var_80]                                         ; +0x197, 0x1401aa157\nsubss   xmm2, [rsp+0A8h+arg_30]                                        ; +0x19c, 0x1401aa15c\nmovss   xmm1, [rsp+0A8h+var_88]                                        ; +0x1a5, 0x1401aa165\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ab, 0x1401aa16b\nmov     rdx, rax                                                       ; +0x1b1, 0x1401aa171\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0x1b4, 0x1401aa174\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1b9, 0x1401aa179\nmovss   xmm0, [rsp+0A8h+arg_38]                                        ; +0x1bf, 0x1401aa17f\nlea     rdx, [rsp+0A8h+var_78]                                         ; +0x1c8, 0x1401aa188\ncall    cs:?create@CCBezierTo@cocos2d@@SAPEAV12@MAEBU_ccBezierConfig@2@@Z; cocos2d::CCBezierTo::create(float,cocos2d::_ccBezierConfig const &) ; +0x1cd, 0x1401aa18d\nlea     rdx, sub_14003BE70                                             ; +0x1d3, 0x1401aa193\nmov     rcx, rdi                                                       ; +0x1da, 0x1401aa19a\nmov     rbx, rax                                                       ; +0x1dd, 0x1401aa19d\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x1e0, 0x1401aa1a0\nxor     r8d, r8d                                                       ; +0x1e6, 0x1401aa1a6\nmov     rcx, rbx                                                       ; +0x1e9, 0x1401aa1a9\nmov     rdx, rax                                                       ; +0x1ec, 0x1401aa1ac\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x1ef, 0x1401aa1af\nmov     rdx, rax                                                       ; +0x1f5, 0x1401aa1b5\nmov     rcx, rdi                                                       ; +0x1f8, 0x1401aa1b8\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1fb, 0x1401aa1bb\nmovss   xmm0, [rsp+0A8h+arg_40]                                        ; +0x201, 0x1401aa1c1\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x20a, 0x1401aa1ca\nmovss   xmm0, [rsp+0A8h+arg_48]                                        ; +0x210, 0x1401aa1d0\nxor     edx, edx                                                       ; +0x219, 0x1401aa1d9\nmov     rbx, rax                                                       ; +0x21b, 0x1401aa1db\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x21e, 0x1401aa1de\nxor     r8d, r8d                                                       ; +0x224, 0x1401aa1e4\nmov     rcx, rbx                                                       ; +0x227, 0x1401aa1e7\nmov     rdx, rax                                                       ; +0x22a, 0x1401aa1ea\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x22d, 0x1401aa1ed\nmov     rdx, rax                                                       ; +0x233, 0x1401aa1f3\nmov     rcx, rdi                                                       ; +0x236, 0x1401aa1f6\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x239, 0x1401aa1f9\ncmp     [rsp+0A8h+arg_50], 0                                           ; +0x23f, 0x1401aa1ff\njz      short loc_1401AA235                                            ; +0x247, 0x1401aa207\nxorps   xmm7, cs:xmmword_1406243F0                                     ; +0x249, 0x1401aa209\nmulss   xmm7, cs:dword_1406231B0                                       ; +0x250, 0x1401aa210\nmovss   xmm0, cs:dword_140622B38                                       ; +0x258, 0x1401aa218\nmovaps  xmm1, xmm7                                                     ; +0x260, 0x1401aa220\ncall    cs:?create@CCRotateBy@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCRotateBy::create(float,float) ; +0x263, 0x1401aa223\nmov     rdx, rax                                                       ; +0x269, 0x1401aa229\nmov     rcx, rdi                                                       ; +0x26c, 0x1401aa22c\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x26f, 0x1401aa22f\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x275, 0x1401aa235\nmov     rbx, [r11+18h]                                                 ; +0x27d, 0x1401aa23d\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x281, 0x1401aa241\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x286, 0x1401aa246\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x28b, 0x1401aa24b\nmovaps  xmm10, xmmword ptr [r11-40h]                                   ; +0x290, 0x1401aa250\nmovaps  xmm11, xmmword ptr [r11-50h]                                   ; +0x295, 0x1401aa255\nmov     rsp, r11                                                       ; +0x29a, 0x1401aa25a\npop     rdi                                                            ; +0x29d, 0x1401aa25d\nretn                                                                   ; +0x29e, 0x1401aa25e", "xrefs": ["GameObject::playPickupAnimation_1 @ 0x1401a9f8c", "GameObject::playDestroyObjectAnim @ 0x1401ab2ed", "<???> @ 0x1406cc174"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}