{"type": "func", "start": 4296970124, "end": 4296970440, "name": "GJBaseGameLayer::bumpPlayer", "pseudocode": "// \n// GJBaseGameLayer::bumpPlayer from 0x1001e8f8c to 0x1001e90c8 (316 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x1001e82f0\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::bumpPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3)\n{\n  float32x2_t *v6; // x22\n  __n128 v7; // q0\n  __n128 v8; // q1\n  double v9; // d0\n  GJBaseGameLayer *v10; // x0\n  float BumpMod; // s8\n  int v12; // w0\n  GJBaseGameLayer *v13; // x0\n  GJGameEvent v14; // w0\n  float32x2_t v15; // [xsp+0h] [xbp-40h] BYREF\n  float32x2_t v16; // [xsp+8h] [xbp-38h] BYREF\n\n  if ( GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )\n  {\n    v6 = (float32x2_t *)((__int64 (__fastcall *)(EffectGameObject *))a3->getPosition)(a3);\n    v7.n128_u32[0] = 0;\n    v8.n128_u32[0] = -10.0;\n    sub_100022980(v7, v8, &v15);\n    sub_1000229DC(v6, &v15, &v16);\n    v9 = sub_1000229D0(&a2->m_lastPortalPos, (double *)&v16);\n    ((void (__fastcall *)(EffectGameObject *, PlayerObject *, double))a3->activatedByPlayer)(a3, a2, v9);\n    v10 = (GJBaseGameLayer *)((__int64 (__fastcall *)(EffectGameObject *))a3->getType)(a3);\n    BumpMod = GJBaseGameLayer::getBumpMod(v10, a2, (int)v10);\n    a2->m_lastActivatedPortal = a3;\n    if ( a3->m_isReverse )\n      PlayerObject::reversePlayer(a2, a3);\n    v12 = ((__int64 (__fastcall *)(EffectGameObject *))a3->getType)(a3);\n    PlayerObject::bumpPlayer(a2, BumpMod, v12, a3->m_hasNoEffects, a3);\n    v13 = (GJBaseGameLayer *)((__int64 (__fastcall *)(EffectGameObject *))a3->getType)(a3);\n    v14 = GJBaseGameLayer::objectTypeToGameEvent(v13, (int)v13);\n    GJBaseGameLayer::gameEventTriggered(a1, v14, 0, 0);\n    GJBaseGameLayer::gameEventTriggered(a1, PadActivated, 0, 0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::bumpPlayer from 0x1001e8f8c to 0x1001e90c8 (316 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x1001e82f0\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, 0x1001e8f8c\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x4, 0x1001e8f90\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001e8f94\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001e8f98\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001e8f9c\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001e8fa0\nMOV             X20, X2                                                ; +0x18, 0x1001e8fa4\nMOV             X21, X1                                                ; +0x1c, 0x1001e8fa8\nMOV             X19, X0                                                ; +0x20, 0x1001e8fac\nBL              GJBaseGameLayer__canBeActivatedByPlayer                ; +0x24, 0x1001e8fb0\nCBZ             W0, loc_1001E90B0                                      ; +0x28, 0x1001e8fb4\nLDR             X8, [X20]                                              ; +0x2c, 0x1001e8fb8\nLDR             X8, [X8,#0xC0]                                         ; +0x30, 0x1001e8fbc\nMOV             X0, X20                                                ; +0x34, 0x1001e8fc0\nBLR             X8                                                     ; +0x38, 0x1001e8fc4\nMOV             X22, X0                                                ; +0x3c, 0x1001e8fc8\nMOV             X0, SP                                                 ; +0x40, 0x1001e8fcc\nFMOV            S0, WZR                                                ; +0x44, 0x1001e8fd0\nFMOV            S1, #-10.0                                             ; +0x48, 0x1001e8fd4\nBL              sub_100022980                                          ; +0x4c, 0x1001e8fd8\nADD             X8, SP, #0x40+var_38                                   ; +0x50, 0x1001e8fdc\nMOV             X1, SP                                                 ; +0x54, 0x1001e8fe0\nMOV             X0, X22                                                ; +0x58, 0x1001e8fe4\nBL              sub_1000229DC                                          ; +0x5c, 0x1001e8fe8\nADD             X0, X21, #0x9B8                                        ; +0x60, 0x1001e8fec\nADD             X1, SP, #0x40+var_38                                   ; +0x64, 0x1001e8ff0\nBL              sub_1000229D0                                          ; +0x68, 0x1001e8ff4\nLDR             X8, [X20]                                              ; +0x6c, 0x1001e8ff8\nLDR             X8, [X8,#0x5F0]                                        ; +0x70, 0x1001e8ffc\nMOV             X0, X20                                                ; +0x74, 0x1001e9000\nMOV             X1, X21                                                ; +0x78, 0x1001e9004\nBLR             X8                                                     ; +0x7c, 0x1001e9008\nLDR             X8, [X20]                                              ; +0x80, 0x1001e900c\nLDR             X8, [X8,#0x6F8]                                        ; +0x84, 0x1001e9010\nMOV             X0, X20                                                ; +0x88, 0x1001e9014\nBLR             X8                                                     ; +0x8c, 0x1001e9018\nMOV             X1, X21                                                ; +0x90, 0x1001e901c\nMOV             X2, X0                                                 ; +0x94, 0x1001e9020\nBL              GJBaseGameLayer__getBumpMod                            ; +0x98, 0x1001e9024\nFMOV            S8, S0                                                 ; +0x9c, 0x1001e9028\nSTR             X20, [X21,#0xA20]                                      ; +0xa0, 0x1001e902c\nLDRB            W8, [X20,#0x6F4]                                       ; +0xa4, 0x1001e9030\nCMP             W8, #1                                                 ; +0xa8, 0x1001e9034\nB.NE            loc_1001E9048                                          ; +0xac, 0x1001e9038\nMOV             X0, X21                                                ; +0xb0, 0x1001e903c\nMOV             X1, X20                                                ; +0xb4, 0x1001e9040\nBL              PlayerObject__reversePlayer                            ; +0xb8, 0x1001e9044\nLDR             X8, [X20]                                              ; +0xbc, 0x1001e9048\nLDR             X8, [X8,#0x6F8]                                        ; +0xc0, 0x1001e904c\nMOV             X0, X20                                                ; +0xc4, 0x1001e9050\nBLR             X8                                                     ; +0xc8, 0x1001e9054\nMOV             X1, X0                                                 ; +0xcc, 0x1001e9058\nLDRB            W2, [X20,#0x414]                                       ; +0xd0, 0x1001e905c\nMOV             X0, X21                                                ; +0xd4, 0x1001e9060\nFMOV            S0, S8                                                 ; +0xd8, 0x1001e9064\nMOV             X3, X20                                                ; +0xdc, 0x1001e9068\nBL              PlayerObject__bumpPlayer                               ; +0xe0, 0x1001e906c\nLDR             X8, [X20]                                              ; +0xe4, 0x1001e9070\nLDR             X8, [X8,#0x6F8]                                        ; +0xe8, 0x1001e9074\nMOV             X0, X20                                                ; +0xec, 0x1001e9078\nBLR             X8                                                     ; +0xf0, 0x1001e907c\nMOV             X1, X0                                                 ; +0xf4, 0x1001e9080\nBL              GJBaseGameLayer__objectTypeToGameEvent                 ; +0xf8, 0x1001e9084\nMOV             X1, X0                                                 ; +0xfc, 0x1001e9088\nMOV             X0, X19                                                ; +0x100, 0x1001e908c\nMOV             W2, #0                                                 ; +0x104, 0x1001e9090\nMOV             W3, #0                                                 ; +0x108, 0x1001e9094\nBL              GJBaseGameLayer__gameEventTriggered                    ; +0x10c, 0x1001e9098\nMOV             X0, X19                                                ; +0x110, 0x1001e909c\nMOV             W1, #9                                                 ; +0x114, 0x1001e90a0\nMOV             W2, #0                                                 ; +0x118, 0x1001e90a4\nMOV             W3, #0                                                 ; +0x11c, 0x1001e90a8\nBL              GJBaseGameLayer__gameEventTriggered                    ; +0x120, 0x1001e90ac\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x124, 0x1001e90b0\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x128, 0x1001e90b4\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x12c, 0x1001e90b8\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x130, 0x1001e90bc\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x134, 0x1001e90c0\nRET                                                                    ; +0x138, 0x1001e90c4", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x1001e82f0"], "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"}