{"type": "func", "start": 5372507808, "end": 5372508240, "name": "PlayerObject::bumpPlayer", "pseudocode": "// \n// PlayerObject::bumpPlayer from 0x14039f6a0 to 0x14039f850 (432 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::bumpPlayer @ 0x140217b66\n// > <???> @ 0x1406d686c\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::bumpPlayer(PlayerObject *a1, float a2, int a3, bool a4, GameObject *a5)\n{\n  bool m_isUpsideDown; // di\n  GameObject *v8; // r8\n  GJBaseGameLayer *m_gameLayer; // rcx\n  float v10; // xmm1_4\n\n  if ( a1->m_isPlatformer || !a1->m_fixRobotJump )\n    a1->m_touchedPad = 1;\n  if ( a3 == 44 )\n  {\n    if ( a5 )\n    {\n      if ( a1->m_isSideways && (m_isUpsideDown = a1->m_isUpsideDown, GameObject::isFacingLeft(a5) != m_isUpsideDown)\n        || !a1->m_isSideways && (m_isUpsideDown = a1->m_isUpsideDown, GameObject::isFacingDown(a5) != m_isUpsideDown) )\n      {\n        PlayerObject::flipGravity(a1, !m_isUpsideDown, 1);\n      }\n    }\n    PlayerObject::spiderTestJumpInternal(a1, 0);\n    m_gameLayer = a1->m_gameLayer;\n    if ( m_gameLayer )\n      GJBaseGameLayer::gameEventTriggered(m_gameLayer, SpiderTeleport, 0, a1->m_uniqueID);\n    if ( !a1->m_isShip && !a1->m_isBird && !a1->m_isDart && !a1->m_isSwing && !a1->m_isBall && !a1->m_isSpider )\n      ((void (__fastcall *)(PlayerObject *))a1->setRotation)(a1);\n    PlayerObject::playBumpEffect(a1, 44, v8);\n  }\n  else\n  {\n    PlayerObject::propellPlayer(a1, a2, a4, a3);\n    if ( a1->m_isPlatformer && !a1->m_isRotating )\n    {\n      if ( a3 == 34 )\n        v10 = 1.2;\n      else\n        v10 = 1.0;\n      PlayerObject::animatePlatformerJump(a1, v10);\n    }\n    a1->m_isAccelerating = 0;\n    if ( a3 == 34 )\n    {\n      a1->m_isAccelerating = 1;\n      cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, &stru_1406C2450);\n    }\n  }\n}", "assembly": "; \n; PlayerObject::bumpPlayer from 0x14039f6a0 to 0x14039f850 (432 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::bumpPlayer @ 0x140217b66\n; > <???> @ 0x1406d686c\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, 0x14039f6a0\npush    rdi                                                            ; +0x5, 0x14039f6a5\nsub     rsp, 20h                                                       ; +0x6, 0x14039f6a6\ncmp     byte ptr [rcx+0B70h], 0                                        ; +0xa, 0x14039f6aa\nmovzx   eax, r9b                                                       ; +0x11, 0x14039f6b1\nmov     edi, r8d                                                       ; +0x15, 0x14039f6b5\nmov     rbx, rcx                                                       ; +0x18, 0x14039f6b8\njnz     short loc_14039F6C6                                            ; +0x1b, 0x14039f6bb\ncmp     byte ptr [rcx+0BB0h], 0                                        ; +0x1d, 0x14039f6bd\njnz     short loc_14039F6CD                                            ; +0x24, 0x14039f6c4\nmov     byte ptr [rcx+99Ch], 1                                         ; +0x26, 0x14039f6c6\ncmp     edi, 2Ch ; ','                                                 ; +0x2d, 0x14039f6cd\njnz     loc_14039F7E1                                                  ; +0x30, 0x14039f6d0\ncmp     [rsp+28h+arg_20], 0                                            ; +0x36, 0x14039f6d6\njz      short loc_14039F72D                                            ; +0x3c, 0x14039f6dc\ncmp     byte ptr [rcx+9C3h], 0                                         ; +0x3e, 0x14039f6de\njz      short loc_14039F6FD                                            ; +0x45, 0x14039f6e5\nmovzx   edi, byte ptr [rcx+9BFh]                                       ; +0x47, 0x14039f6e7\nmov     rcx, [rsp+28h+arg_20]                                          ; +0x4e, 0x14039f6ee\ncall    GameObject__isFacingLeft                                       ; +0x53, 0x14039f6f3\ncmp     al, dil                                                        ; +0x58, 0x14039f6f8\njnz     short loc_14039F71C                                            ; +0x5b, 0x14039f6fb\ncmp     byte ptr [rbx+9C3h], 0                                         ; +0x5d, 0x14039f6fd\njnz     short loc_14039F72D                                            ; +0x64, 0x14039f704\nmov     rcx, [rsp+28h+arg_20]                                          ; +0x66, 0x14039f706\nmovzx   edi, byte ptr [rbx+9BFh]                                       ; +0x6b, 0x14039f70b\ncall    GameObject__isFacingDown                                       ; +0x72, 0x14039f712\ncmp     al, dil                                                        ; +0x77, 0x14039f717\njz      short loc_14039F72D                                            ; +0x7a, 0x14039f71a\ntest    dil, dil                                                       ; +0x7c, 0x14039f71c\nmov     r8b, 1                                                         ; +0x7f, 0x14039f71f\nmov     rcx, rbx                                                       ; +0x82, 0x14039f722\nsetz    dl                                                             ; +0x85, 0x14039f725\ncall    PlayerObject__flipGravity                                      ; +0x88, 0x14039f728\nxor     edx, edx                                                       ; +0x8d, 0x14039f72d\nmov     rcx, rbx                                                       ; +0x8f, 0x14039f72f\ncall    PlayerObject__spiderTestJumpInternal                           ; +0x92, 0x14039f732\nmov     rcx, [rbx+0C20h]                                               ; +0x97, 0x14039f737\ntest    rcx, rcx                                                       ; +0x9e, 0x14039f73e\njz      short loc_14039F756                                            ; +0xa1, 0x14039f741\nmov     r9d, [rbx+39Ch]                                                ; +0xa3, 0x14039f743\nxor     r8d, r8d                                                       ; +0xaa, 0x14039f74a\nlea     edx, [r8+12h]                                                  ; +0xad, 0x14039f74d\ncall    GJBaseGameLayer__gameEventTriggered                            ; +0xb1, 0x14039f751\ncmp     byte ptr [rbx+9B9h], 0                                         ; +0xb6, 0x14039f756\njnz     short loc_14039F7CA                                            ; +0xbd, 0x14039f75d\ncmp     byte ptr [rbx+9BAh], 0                                         ; +0xbf, 0x14039f75f\njnz     short loc_14039F7CA                                            ; +0xc6, 0x14039f766\ncmp     byte ptr [rbx+9BCh], 0                                         ; +0xc8, 0x14039f768\njnz     short loc_14039F7CA                                            ; +0xcf, 0x14039f76f\ncmp     byte ptr [rbx+9C4h], 0                                         ; +0xd1, 0x14039f771\njnz     short loc_14039F7CA                                            ; +0xd8, 0x14039f778\ncmp     byte ptr [rbx+9BBh], 0                                         ; +0xda, 0x14039f77a\njnz     short loc_14039F7CA                                            ; +0xe1, 0x14039f781\ncmp     byte ptr [rbx+9BEh], 0                                         ; +0xe3, 0x14039f783\njnz     short loc_14039F7CA                                            ; +0xea, 0x14039f78a\ncmp     byte ptr [rbx+9C3h], 0                                         ; +0xec, 0x14039f78c\nmovzx   eax, byte ptr [rbx+9BFh]                                       ; +0xf3, 0x14039f793\njz      short loc_14039F7AD                                            ; +0xfa, 0x14039f79a\ntest    al, al                                                         ; +0xfc, 0x14039f79c\nmov     ecx, 10Eh                                                      ; +0xfe, 0x14039f79e\nmov     edx, 5Ah ; 'Z'                                                 ; +0x103, 0x14039f7a3\ncmovnz  ecx, edx                                                       ; +0x108, 0x14039f7a8\njmp     short loc_14039F7B7                                            ; +0x10b, 0x14039f7ab\nneg     al                                                             ; +0x10d, 0x14039f7ad\nsbb     ecx, ecx                                                       ; +0x10f, 0x14039f7af\nand     ecx, 0B4h                                                      ; +0x111, 0x14039f7b1\nmov     rax, [rbx]                                                     ; +0x117, 0x14039f7b7\nmovd    xmm1, ecx                                                      ; +0x11a, 0x14039f7ba\nmov     rcx, rbx                                                       ; +0x11e, 0x14039f7be\ncvtdq2ps xmm1, xmm1                                                    ; +0x121, 0x14039f7c1\ncall    qword ptr [rax+150h]                                           ; +0x124, 0x14039f7c4\nmov     edx, 2Ch ; ','                                                 ; +0x12a, 0x14039f7ca\nmov     rcx, rbx                                                       ; +0x12f, 0x14039f7cf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x132, 0x14039f7d2\nadd     rsp, 20h                                                       ; +0x137, 0x14039f7d7\npop     rdi                                                            ; +0x13b, 0x14039f7db\njmp     PlayerObject__playBumpEffect                                   ; +0x13c, 0x14039f7dc\nmov     r9d, edi                                                       ; +0x141, 0x14039f7e1\nmovzx   r8d, al                                                        ; +0x144, 0x14039f7e4\ncall    PlayerObject__propellPlayer                                    ; +0x148, 0x14039f7e8\ncmp     byte ptr [rbx+0B70h], 0                                        ; +0x14d, 0x14039f7ed\njz      short loc_14039F81E                                            ; +0x154, 0x14039f7f4\ncmp     byte ptr [rbx+728h], 0                                         ; +0x156, 0x14039f7f6\njnz     short loc_14039F81E                                            ; +0x15d, 0x14039f7fd\ncmp     edi, 22h ; '\"'                                                 ; +0x15f, 0x14039f7ff\njnz     short loc_14039F80E                                            ; +0x162, 0x14039f802\nmovss   xmm1, cs:dword_140622C84                                       ; +0x164, 0x14039f804\njmp     short loc_14039F816                                            ; +0x16c, 0x14039f80c\nmovss   xmm1, cs:flt_140622C24                                         ; +0x16e, 0x14039f80e\nmov     rcx, rbx                                                       ; +0x176, 0x14039f816\ncall    PlayerObject__animatePlatformerJump                            ; +0x179, 0x14039f819\nmov     byte ptr [rbx+952h], 0                                         ; +0x17e, 0x14039f81e\ncmp     edi, 22h ; '\"'                                                 ; +0x185, 0x14039f825\njnz     short loc_14039F845                                            ; +0x188, 0x14039f828\nlea     rcx, [rbx+0A2Ch]                                               ; +0x18a, 0x14039f82a\nmov     byte ptr [rbx+952h], 1                                         ; +0x191, 0x14039f831\nlea     rdx, stru_1406C2450                                            ; +0x198, 0x14039f838\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x19f, 0x14039f83f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1a5, 0x14039f845\nadd     rsp, 20h                                                       ; +0x1aa, 0x14039f84a\npop     rdi                                                            ; +0x1ae, 0x14039f84e\nretn                                                                   ; +0x1af, 0x14039f84f", "xrefs": ["GJBaseGameLayer::bumpPlayer @ 0x140217b66", "<???> @ 0x1406d686c"], "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"}