{"type": "func", "start": 5370902992, "end": 5370903477, "name": "GJBaseGameLayer::bumpPlayer", "pseudocode": "// \n// GJBaseGameLayer::bumpPlayer from 0x1402179d0 to 0x140217bb5 (485 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x1402158ef\n// > <???> @ 0x14067f548\n// > <???> @ 0x14067f55c\n// > <???> @ 0x14067f56c\n// > <???> @ 0x1406cd1b8\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 GJBaseGameLayer::bumpPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3)\n{\n  float v3; // xmm0_4\n  const cocos2d::CCPoint *v7; // rax\n  GameObjectType v8; // eax\n  float v9; // xmm6_4\n  GameObjectType v10; // eax\n  GameObjectType v11; // eax\n  GJBaseGameLayer *v12; // rcx\n  GJGameEvent v13; // eax\n  char v14; // [rsp+78h] [rbp+20h] BYREF\n\n  if ( GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )\n  {\n    cocos2d::CCPoint::CCPoint(v3, 0.0);\n    v7 = a3->getPosition_0(a3);\n    cocos2d::CCPoint::operator+(v7, &v14);\n    cocos2d::CCPoint::operator=(&a2->m_lastPortalPos, &v14);\n    a3->activatedByPlayer(a3, a2);\n    v8 = a3->getType(a3);\n    v9 = 1.0;\n    if ( v8 == PinkJumpPad )\n    {\n      if ( a2->m_isShip )\n      {\n        v9 = 0.34999999;\n      }\n      else if ( a2->m_isBird )\n      {\n        v9 = 0.40000001;\n      }\n      else if ( a2->m_isBall )\n      {\n        v9 = 0.69999999;\n      }\n      else if ( a2->m_isSpider )\n      {\n        v9 = 0.69999999;\n      }\n      else\n      {\n        v9 = 0.64999998;\n      }\n    }\n    else if ( v8 == RedJumpPad )\n    {\n      if ( a2->m_isShip )\n      {\n        if ( a2->m_vehicleSize >= 1.0 )\n          v9 = 0.63;\n        else\n          v9 = 0.94999999;\n      }\n      else if ( a2->m_isBird )\n      {\n        if ( a2->m_vehicleSize >= 1.0 )\n          v9 = 0.60000002;\n        else\n          v9 = 0.98000002;\n      }\n      else\n      {\n        v9 = 1.25;\n      }\n    }\n    a2->m_lastActivatedPortal = a3;\n    if ( a3->m_isReverse )\n      PlayerObject::reversePlayer(a2, a3);\n    v10 = a3->getType(a3);\n    PlayerObject::bumpPlayer(a2, v9, v10, a3->m_hasNoEffects, a3);\n    v11 = a3->getType(a3);\n    v13 = GJBaseGameLayer::objectTypeToGameEvent(v12, v11);\n    GJBaseGameLayer::gameEventTriggered(a1, v13, 0, 0);\n    GJBaseGameLayer::gameEventTriggered(a1, PadActivated, 0, 0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::bumpPlayer from 0x1402179d0 to 0x140217bb5 (485 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x1402158ef\n; > <???> @ 0x14067f548\n; > <???> @ 0x14067f55c\n; > <???> @ 0x14067f56c\n; > <???> @ 0x1406cd1b8\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_8], rbp                                               ; +0x0, 0x1402179d0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1402179d5\npush    rdi                                                            ; +0xa, 0x1402179da\nsub     rsp, 50h                                                       ; +0xb, 0x1402179db\nmov     rsi, r8                                                        ; +0xf, 0x1402179df\nmov     rdi, rdx                                                       ; +0x12, 0x1402179e2\nmov     rbp, rcx                                                       ; +0x15, 0x1402179e5\ncall    GJBaseGameLayer__canBeActivatedByPlayer                        ; +0x18, 0x1402179e8\ntest    al, al                                                         ; +0x1d, 0x1402179ed\njz      loc_140217BA5                                                  ; +0x1f, 0x1402179ef\nmovss   xmm2, cs:dword_14062381C                                       ; +0x25, 0x1402179f5\nlea     rcx, [rsp+58h+var_28]                                          ; +0x2d, 0x1402179fd\nmov     [rsp+58h+arg_0], rbx                                           ; +0x32, 0x140217a02\nxorps   xmm1, xmm1                                                     ; +0x37, 0x140217a07\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x3a, 0x140217a0a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x3f, 0x140217a0f\nmov     rdx, [rsi]                                                     ; +0x45, 0x140217a15\nmov     rcx, rsi                                                       ; +0x48, 0x140217a18\nmov     rbx, rax                                                       ; +0x4b, 0x140217a1b\ncall    qword ptr [rdx+0C8h]                                           ; +0x4e, 0x140217a1e\nmov     r8, rbx                                                        ; +0x54, 0x140217a24\nlea     rdx, [rsp+58h+arg_18]                                          ; +0x57, 0x140217a27\nmov     rcx, rax                                                       ; +0x5c, 0x140217a2c\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x5f, 0x140217a2f\nlea     rcx, [rdi+0A00h]                                               ; +0x65, 0x140217a35\nlea     rdx, [rsp+58h+arg_18]                                          ; +0x6c, 0x140217a3c\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x71, 0x140217a41\nmov     rax, [rsi]                                                     ; +0x77, 0x140217a47\nmov     rdx, rdi                                                       ; +0x7a, 0x140217a4a\nmov     rcx, rsi                                                       ; +0x7d, 0x140217a4d\ncall    qword ptr [rax+558h]                                           ; +0x80, 0x140217a50\nmov     rax, [rsi]                                                     ; +0x86, 0x140217a56\nmov     rcx, rsi                                                       ; +0x89, 0x140217a59\ncall    qword ptr [rax+660h]                                           ; +0x8c, 0x140217a5c\nmovss   xmm6, cs:flt_140622C24                                         ; +0x92, 0x140217a62\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x9a, 0x140217a6a\ncmp     eax, 9                                                         ; +0x9f, 0x140217a6f\njnz     short loc_140217AD0                                            ; +0xa2, 0x140217a72\ncmp     byte ptr [rdi+9B9h], 0                                         ; +0xa4, 0x140217a74\njz      short loc_140217A8A                                            ; +0xab, 0x140217a7b\nmovss   xmm6, cs:dword_140622ABC                                       ; +0xad, 0x140217a7d\njmp     loc_140217B29                                                  ; +0xb5, 0x140217a85\ncmp     byte ptr [rdi+9BAh], 0                                         ; +0xba, 0x140217a8a\njz      short loc_140217AA0                                            ; +0xc1, 0x140217a91\nmovss   xmm6, cs:dword_140622AD0                                       ; +0xc3, 0x140217a93\njmp     loc_140217B29                                                  ; +0xcb, 0x140217a9b\ncmp     byte ptr [rdi+9BBh], 0                                         ; +0xd0, 0x140217aa0\njz      short loc_140217AB3                                            ; +0xd7, 0x140217aa7\nmovss   xmm6, cs:dword_140622B74                                       ; +0xd9, 0x140217aa9\njmp     short loc_140217B29                                            ; +0xe1, 0x140217ab1\ncmp     byte ptr [rdi+9BEh], 0                                         ; +0xe3, 0x140217ab3\njz      short loc_140217AC6                                            ; +0xea, 0x140217aba\nmovss   xmm6, cs:dword_140622B74                                       ; +0xec, 0x140217abc\njmp     short loc_140217B29                                            ; +0xf4, 0x140217ac4\nmovss   xmm6, cs:dword_140622B5C                                       ; +0xf6, 0x140217ac6\njmp     short loc_140217B29                                            ; +0xfe, 0x140217ace\ncmp     eax, 22h ; '\"'                                                 ; +0x100, 0x140217ad0\njnz     short loc_140217B29                                            ; +0x103, 0x140217ad3\ncmp     byte ptr [rdi+9B9h], 0                                         ; +0x105, 0x140217ad5\njz      short loc_140217AFB                                            ; +0x10c, 0x140217adc\ncomiss  xmm6, dword ptr [rdi+9F0h]                                     ; +0x10e, 0x140217ade\njbe     short loc_140217AF1                                            ; +0x115, 0x140217ae5\nmovss   xmm6, cs:dword_140622BF4                                       ; +0x117, 0x140217ae7\njmp     short loc_140217B29                                            ; +0x11f, 0x140217aef\nmovss   xmm6, cs:dword_140622B54                                       ; +0x121, 0x140217af1\njmp     short loc_140217B29                                            ; +0x129, 0x140217af9\ncmp     byte ptr [rdi+9BAh], 0                                         ; +0x12b, 0x140217afb\njz      short loc_140217B21                                            ; +0x132, 0x140217b02\ncomiss  xmm6, dword ptr [rdi+9F0h]                                     ; +0x134, 0x140217b04\njbe     short loc_140217B17                                            ; +0x13b, 0x140217b0b\nmovss   xmm6, cs:dword_140622C0C                                       ; +0x13d, 0x140217b0d\njmp     short loc_140217B29                                            ; +0x145, 0x140217b15\nmovss   xmm6, cs:dword_140622B38                                       ; +0x147, 0x140217b17\njmp     short loc_140217B29                                            ; +0x14f, 0x140217b1f\nmovss   xmm6, cs:dword_140622C8C                                       ; +0x151, 0x140217b21\nmov     [rdi+0A80h], rsi                                               ; +0x159, 0x140217b29\ncmp     byte ptr [rsi+704h], 0                                         ; +0x160, 0x140217b30\njz      short loc_140217B44                                            ; +0x167, 0x140217b37\nmov     rdx, rsi                                                       ; +0x169, 0x140217b39\nmov     rcx, rdi                                                       ; +0x16c, 0x140217b3c\ncall    PlayerObject__reversePlayer                                    ; +0x16f, 0x140217b3f\nmov     rax, [rsi]                                                     ; +0x174, 0x140217b44\nmov     rcx, rsi                                                       ; +0x177, 0x140217b47\ncall    qword ptr [rax+660h]                                           ; +0x17a, 0x140217b4a\nmovzx   r9d, byte ptr [rsi+41Ch]                                       ; +0x180, 0x140217b50\nmovaps  xmm1, xmm6                                                     ; +0x188, 0x140217b58\nmov     r8d, eax                                                       ; +0x18b, 0x140217b5b\nmov     [rsp+58h+var_38], rsi                                          ; +0x18e, 0x140217b5e\nmov     rcx, rdi                                                       ; +0x193, 0x140217b63\ncall    PlayerObject__bumpPlayer                                       ; +0x196, 0x140217b66\nmov     rax, [rsi]                                                     ; +0x19b, 0x140217b6b\nmov     rcx, rsi                                                       ; +0x19e, 0x140217b6e\ncall    qword ptr [rax+660h]                                           ; +0x1a1, 0x140217b71\nmov     edx, eax                                                       ; +0x1a7, 0x140217b77\ncall    GJBaseGameLayer__objectTypeToGameEvent                         ; +0x1a9, 0x140217b79\nmov     edx, eax                                                       ; +0x1ae, 0x140217b7e\nmov     rcx, rbp                                                       ; +0x1b0, 0x140217b80\nxor     r9d, r9d                                                       ; +0x1b3, 0x140217b83\nxor     r8d, r8d                                                       ; +0x1b6, 0x140217b86\ncall    GJBaseGameLayer__gameEventTriggered                            ; +0x1b9, 0x140217b89\nxor     r9d, r9d                                                       ; +0x1be, 0x140217b8e\nxor     r8d, r8d                                                       ; +0x1c1, 0x140217b91\nmov     rcx, rbp                                                       ; +0x1c4, 0x140217b94\nlea     edx, [r9+9]                                                    ; +0x1c7, 0x140217b97\ncall    GJBaseGameLayer__gameEventTriggered                            ; +0x1cb, 0x140217b9b\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x1d0, 0x140217ba0\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x1d5, 0x140217ba5\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x1da, 0x140217baa\nadd     rsp, 50h                                                       ; +0x1df, 0x140217baf\npop     rdi                                                            ; +0x1e3, 0x140217bb3\nretn                                                                   ; +0x1e4, 0x140217bb4", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x1402158ef", "<???> @ 0x14067f548", "<???> @ 0x14067f55c", "<???> @ 0x14067f56c", "<???> @ 0x1406cd1b8"], "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"}