{"type": "func", "start": 5372476736, "end": 5372476972, "name": "PlayerObject::playerDestroyed", "pseudocode": "// \n// PlayerObject::playerDestroyed from 0x140397d40 to 0x140397e2c (236 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::postUpdate @ 0x1402e1080\n// > PlayLayer::destroyPlayer @ 0x1403b3ca8\n// > PlayLayer::destroyPlayer @ 0x1403b3ce4\n// > <???> @ 0x1406d647c\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 PlayerObject::playerDestroyed(PlayerObject *a1, bool a2)\n{\n  const cocos2d::CCPoint *v4; // rax\n  PlayerFireBoostSprite *m_robotFire; // rcx\n\n  if ( a1->m_isDart )\n    PlayerObject::fadeOutStreak2(a1, 0.2);\n  PlayerObject::stopDashing(a1);\n  a1->m_isDead = 1;\n  *(_WORD *)&a1->m_isRotating = 0;\n  a1->m_isBallRotating = 0;\n  a1->m_rotationSpeed = 0.0;\n  PlayerObject::stopParticles(a1);\n  v4 = a1->getPosition_0(a1);\n  cocos2d::CCPoint::operator=(&a1->m_lastPosition, v4);\n  m_robotFire = a1->m_robotFire;\n  if ( m_robotFire )\n  {\n    cocos2d::CCNode::stopAllActions(m_robotFire);\n    a1->m_robotFire->setVisible(a1->m_robotFire, 0);\n  }\n  PlayerObject::toggleGhostEffect(a1, (GhostType)0);\n  PlayerObject::disableSwingFire(a1);\n  if ( !a1->m_playEffects || a2 || a1->m_isHidden )\n    a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, 0);\n  else\n    PlayerObject::playDeathEffect(a1);\n}", "assembly": "; \n; PlayerObject::playerDestroyed from 0x140397d40 to 0x140397e2c (236 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::postUpdate @ 0x1402e1080\n; > PlayLayer::destroyPlayer @ 0x1403b3ca8\n; > PlayLayer::destroyPlayer @ 0x1403b3ce4\n; > <???> @ 0x1406d647c\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     [rsp+arg_0], rbx                                               ; +0x0, 0x140397d40\npush    rdi                                                            ; +0x5, 0x140397d45\nsub     rsp, 20h                                                       ; +0x6, 0x140397d46\ncmp     byte ptr [rcx+9BCh], 0                                         ; +0xa, 0x140397d4a\nmovzx   edi, dl                                                        ; +0x11, 0x140397d51\nmov     rbx, rcx                                                       ; +0x14, 0x140397d54\njz      short loc_140397D66                                            ; +0x17, 0x140397d57\nmovss   xmm1, cs:dword_140622A74                                       ; +0x19, 0x140397d59\ncall    PlayerObject__fadeOutStreak2                                   ; +0x21, 0x140397d61\nmov     rcx, rbx                                                       ; +0x26, 0x140397d66\ncall    PlayerObject__stopDashing                                      ; +0x29, 0x140397d69\nmov     rcx, rbx                                                       ; +0x2e, 0x140397d6e\nmov     byte ptr [rbx+9C0h], 1                                         ; +0x31, 0x140397d71\nmov     word ptr [rbx+728h], 0                                         ; +0x38, 0x140397d78\nmov     byte ptr [rbx+668h], 0                                         ; +0x41, 0x140397d81\nmov     dword ptr [rbx+720h], 0                                        ; +0x48, 0x140397d88\ncall    PlayerObject__stopParticles                                    ; +0x52, 0x140397d92\nmov     rax, [rbx]                                                     ; +0x57, 0x140397d97\nmov     rcx, rbx                                                       ; +0x5a, 0x140397d9a\ncall    qword ptr [rax+0C8h]                                           ; +0x5d, 0x140397d9d\nmov     rdx, rax                                                       ; +0x63, 0x140397da3\nlea     rcx, [rbx+4D0h]                                                ; +0x66, 0x140397da6\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x6d, 0x140397dad\nmov     rcx, [rbx+0C10h]                                               ; +0x73, 0x140397db3\ntest    rcx, rcx                                                       ; +0x7a, 0x140397dba\njz      short loc_140397DD7                                            ; +0x7d, 0x140397dbd\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x7f, 0x140397dbf\nmov     rcx, [rbx+0C10h]                                               ; +0x85, 0x140397dc5\nxor     edx, edx                                                       ; +0x8c, 0x140397dcc\nmov     rax, [rcx]                                                     ; +0x8e, 0x140397dce\ncall    qword ptr [rax+140h]                                           ; +0x91, 0x140397dd1\nxor     edx, edx                                                       ; +0x97, 0x140397dd7\nmov     rcx, rbx                                                       ; +0x99, 0x140397dd9\ncall    PlayerObject__toggleGhostEffect                                ; +0x9c, 0x140397ddc\nmov     rcx, rbx                                                       ; +0xa1, 0x140397de1\ncall    PlayerObject__disableSwingFire                                 ; +0xa4, 0x140397de4\ncmp     byte ptr [rbx+7E4h], 0                                         ; +0xa9, 0x140397de9\njz      short loc_140397E12                                            ; +0xb0, 0x140397df0\ntest    dil, dil                                                       ; +0xb2, 0x140397df2\njnz     short loc_140397E12                                            ; +0xb5, 0x140397df5\ncmp     [rbx+72Bh], dil                                                ; +0xb7, 0x140397df7\njnz     short loc_140397E12                                            ; +0xbe, 0x140397dfe\nmov     rcx, rbx                                                       ; +0xc0, 0x140397e00\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc3, 0x140397e03\nadd     rsp, 20h                                                       ; +0xc8, 0x140397e08\npop     rdi                                                            ; +0xcc, 0x140397e0c\njmp     PlayerObject__playDeathEffect                                  ; +0xcd, 0x140397e0d\nlea     rcx, [rbx+140h]                                                ; +0xd2, 0x140397e12\nxor     edx, edx                                                       ; +0xd9, 0x140397e19\nmov     rax, [rcx]                                                     ; +0xdb, 0x140397e1b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xde, 0x140397e1e\nadd     rsp, 20h                                                       ; +0xe3, 0x140397e23\npop     rdi                                                            ; +0xe7, 0x140397e27\njmp     qword ptr [rax+28h]                                            ; +0xe8, 0x140397e28", "xrefs": ["LevelEditorLayer::postUpdate @ 0x1402e1080", "PlayLayer::destroyPlayer @ 0x1403b3ca8", "PlayLayer::destroyPlayer @ 0x1403b3ce4", "<???> @ 0x1406d647c"], "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"}