{"type": "func", "start": 4296970440, "end": 4296970776, "name": "GJBaseGameLayer::gravBumpPlayer", "pseudocode": "// \n// GJBaseGameLayer::gravBumpPlayer from 0x1001e90c8 to 0x1001e9218 (336 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8728\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 __fastcall GJBaseGameLayer::gravBumpPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3)\n{\n  _BOOL4 isFacingLeft; // w0\n  _BOOL4 v7; // w22\n  float32x2_t *v8; // x23\n  __n128 v9; // q0\n  __n128 v10; // q1\n  double v11; // d0\n  float32x2_t v12; // [xsp+0h] [xbp-40h] BYREF\n  float32x2_t v13; // [xsp+8h] [xbp-38h] BYREF\n\n  if ( a2->m_isSideways )\n    isFacingLeft = GameObject::isFacingLeft(a3);\n  else\n    isFacingLeft = GameObject::isFacingDown(a3);\n  v7 = isFacingLeft;\n  if ( isFacingLeft == a2->m_isUpsideDown && GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )\n  {\n    if ( a3->m_isReverse )\n      PlayerObject::reversePlayer(a2, a3);\n    if ( !a3->m_hasNoEffects )\n      ((void (__fastcall *)(GJBaseGameLayer *, bool))a1->playGravityEffect)(a1, !v7);\n    v8 = (float32x2_t *)((__int64 (__fastcall *)(EffectGameObject *))a3->getPosition)(a3);\n    v9.n128_u32[0] = 0;\n    v10.n128_u32[0] = -10.0;\n    sub_100022980(v9, v10, &v12);\n    sub_1000229DC(v8, &v12, &v13);\n    v11 = sub_1000229D0(&a2->m_lastPortalPos, (double *)&v13);\n    ((void (__fastcall *)(EffectGameObject *, PlayerObject *, double))a3->activatedByPlayer)(a3, a2, v11);\n    a2->m_lastActivatedPortal = a3;\n    PlayerObject::propellPlayer(a2, 0.8, a3->m_hasNoEffects, 10);\n    GJBaseGameLayer::flipGravity(a1, a2, !v7, 1);\n    a2->m_padRingRelated = 1;\n    GJBaseGameLayer::gameEventTriggered(a1, GravityPad, 0, 0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::gravBumpPlayer from 0x1001e90c8 to 0x1001e9218 (336 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8728\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001e90c8\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1001e90cc\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001e90d0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001e90d4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001e90d8\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001e90dc\nMOV             X21, X2                                                ; +0x18, 0x1001e90e0\nMOV             X20, X1                                                ; +0x1c, 0x1001e90e4\nMOV             X19, X0                                                ; +0x20, 0x1001e90e8\nLDRB            W8, [X1,#0x97B]                                        ; +0x24, 0x1001e90ec\nMOV             X0, X2                                                 ; +0x28, 0x1001e90f0\nCMP             W8, #1                                                 ; +0x2c, 0x1001e90f4\nB.NE            loc_1001E9104                                          ; +0x30, 0x1001e90f8\nBL              GameObject__isFacingLeft                               ; +0x34, 0x1001e90fc\nB               loc_1001E9108                                          ; +0x38, 0x1001e9100\nBL              GameObject__isFacingDown                               ; +0x3c, 0x1001e9104\nMOV             X22, X0                                                ; +0x40, 0x1001e9108\nLDRB            W8, [X20,#0x977]                                       ; +0x44, 0x1001e910c\nCMP             W0, W8                                                 ; +0x48, 0x1001e9110\nB.NE            loc_1001E9200                                          ; +0x4c, 0x1001e9114\nMOV             X0, X19                                                ; +0x50, 0x1001e9118\nMOV             X1, X20                                                ; +0x54, 0x1001e911c\nMOV             X2, X21                                                ; +0x58, 0x1001e9120\nBL              GJBaseGameLayer__canBeActivatedByPlayer                ; +0x5c, 0x1001e9124\nCBZ             W0, loc_1001E9200                                      ; +0x60, 0x1001e9128\nLDRB            W8, [X21,#0x6F4]                                       ; +0x64, 0x1001e912c\nCMP             W8, #1                                                 ; +0x68, 0x1001e9130\nB.NE            loc_1001E9144                                          ; +0x6c, 0x1001e9134\nMOV             X0, X20                                                ; +0x70, 0x1001e9138\nMOV             X1, X21                                                ; +0x74, 0x1001e913c\nBL              PlayerObject__reversePlayer                            ; +0x78, 0x1001e9140\nLDRB            W8, [X21,#0x414]                                       ; +0x7c, 0x1001e9144\nTBNZ            W8, #0, loc_1001E9160                                  ; +0x80, 0x1001e9148\nLDR             X8, [X19]                                              ; +0x84, 0x1001e914c\nLDR             X8, [X8,#0x598]                                        ; +0x88, 0x1001e9150\nEOR             W1, W22, #1                                            ; +0x8c, 0x1001e9154\nMOV             X0, X19                                                ; +0x90, 0x1001e9158\nBLR             X8                                                     ; +0x94, 0x1001e915c\nLDR             X8, [X21]                                              ; +0x98, 0x1001e9160\nLDR             X8, [X8,#0xC0]                                         ; +0x9c, 0x1001e9164\nMOV             X0, X21                                                ; +0xa0, 0x1001e9168\nBLR             X8                                                     ; +0xa4, 0x1001e916c\nMOV             X23, X0                                                ; +0xa8, 0x1001e9170\nMOV             X0, SP                                                 ; +0xac, 0x1001e9174\nFMOV            S0, WZR                                                ; +0xb0, 0x1001e9178\nFMOV            S1, #-10.0                                             ; +0xb4, 0x1001e917c\nBL              sub_100022980                                          ; +0xb8, 0x1001e9180\nADD             X8, SP, #0x40+var_38                                   ; +0xbc, 0x1001e9184\nMOV             X1, SP                                                 ; +0xc0, 0x1001e9188\nMOV             X0, X23                                                ; +0xc4, 0x1001e918c\nBL              sub_1000229DC                                          ; +0xc8, 0x1001e9190\nADD             X0, X20, #0x9B8                                        ; +0xcc, 0x1001e9194\nADD             X1, SP, #0x40+var_38                                   ; +0xd0, 0x1001e9198\nBL              sub_1000229D0                                          ; +0xd4, 0x1001e919c\nLDR             X8, [X21]                                              ; +0xd8, 0x1001e91a0\nLDR             X8, [X8,#0x5F0]                                        ; +0xdc, 0x1001e91a4\nMOV             X0, X21                                                ; +0xe0, 0x1001e91a8\nMOV             X1, X20                                                ; +0xe4, 0x1001e91ac\nBLR             X8                                                     ; +0xe8, 0x1001e91b0\nSTR             X21, [X20,#0xA20]                                      ; +0xec, 0x1001e91b4\nLDRB            W1, [X21,#0x414]                                       ; +0xf0, 0x1001e91b8\nADRP            X8, #dword_100635340@PAGE                              ; +0xf4, 0x1001e91bc\nLDR             S0, [X8,#dword_100635340@PAGEOFF]                      ; +0xf8, 0x1001e91c0\nMOV             X0, X20                                                ; +0xfc, 0x1001e91c4\nMOV             W2, #0xA                                               ; +0x100, 0x1001e91c8\nBL              PlayerObject__propellPlayer                            ; +0x104, 0x1001e91cc\nMOV             W21, #1                                                ; +0x108, 0x1001e91d0\nEOR             W2, W22, #1                                            ; +0x10c, 0x1001e91d4\nMOV             X0, X19                                                ; +0x110, 0x1001e91d8\nMOV             X1, X20                                                ; +0x114, 0x1001e91dc\nMOV             W3, #1                                                 ; +0x118, 0x1001e91e0\nBL              GJBaseGameLayer__flipGravity                           ; +0x11c, 0x1001e91e4\nSTRB            W21, [X20,#0x7B0]                                      ; +0x120, 0x1001e91e8\nMOV             X0, X19                                                ; +0x124, 0x1001e91ec\nMOV             W1, #0x30 ; '0'                                        ; +0x128, 0x1001e91f0\nMOV             W2, #0                                                 ; +0x12c, 0x1001e91f4\nMOV             W3, #0                                                 ; +0x130, 0x1001e91f8\nBL              GJBaseGameLayer__gameEventTriggered                    ; +0x134, 0x1001e91fc\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x138, 0x1001e9200\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x13c, 0x1001e9204\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x140, 0x1001e9208\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x144, 0x1001e920c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x148, 0x1001e9210\nRET                                                                    ; +0x14c, 0x1001e9214", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x1001e8728"], "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"}