{"type": "func", "start": 4297607440, "end": 4297607776, "name": "GJBaseGameLayer::gravBumpPlayer", "pseudocode": "// \n// GJBaseGameLayer::gravBumpPlayer from 0x100284910 to 0x100284a60 (336 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x1002840d4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:57 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::gravBumpPlayer(__int64 a1, __int64 a2, _BYTE *a3)\n{\n  int isFacingLeft; // w0\n  int v7; // w22\n  float32x2_t *v8; // x23\n  double v9; // d0\n  float32x2_t v10; // [xsp+0h] [xbp-40h] BYREF\n  float32x2_t v11; // [xsp+8h] [xbp-38h] BYREF\n\n  if ( *(_BYTE *)(a2 + 2427) == 1 )\n    isFacingLeft = GameObject::isFacingLeft(a3);\n  else\n    isFacingLeft = GameObject::isFacingDown(a3);\n  v7 = isFacingLeft;\n  if ( isFacingLeft == *(unsigned __int8 *)(a2 + 2423)\n    && (unsigned int)GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) )\n  {\n    if ( a3[1780] == 1 )\n      PlayerObject::reversePlayer(a2, a3);\n    if ( (a3[1044] & 1) == 0 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1480LL))(a1, v7 ^ 1u);\n    v8 = (float32x2_t *)(*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a3 + 192LL))(a3);\n    sub_1000262BC((float *)&v10, 0.0, -10.0);\n    sub_100026318(v8, &v10, &v11);\n    v9 = sub_10002630C((_QWORD *)(a2 + 2488), (double *)&v11);\n    (*(void (__fastcall **)(_BYTE *, __int64, double))(*(_QWORD *)a3 + 1536LL))(a3, a2, v9);\n    *(_QWORD *)(a2 + 2592) = a3;\n    PlayerObject::propellPlayer(a2, (unsigned __int8)a3[1044], 10, 0.8);\n    GJBaseGameLayer::flipGravity(a1, a2, v7 ^ 1u, 1);\n    *(_BYTE *)(a2 + 1968) = 1;\n    GJBaseGameLayer::gameEventTriggered(a1, 48, 0, 0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::gravBumpPlayer from 0x100284910 to 0x100284a60 (336 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x1002840d4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:57 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x100284910\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x100284914\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x100284918\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x10028491c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x100284920\nADD             X29, SP, #0x40                                         ; +0x14, 0x100284924\nMOV             X21, X2                                                ; +0x18, 0x100284928\nMOV             X20, X1                                                ; +0x1c, 0x10028492c\nMOV             X19, X0                                                ; +0x20, 0x100284930\nLDRB            W8, [X1,#0x97B]                                        ; +0x24, 0x100284934\nMOV             X0, X2                                                 ; +0x28, 0x100284938\nCMP             W8, #1                                                 ; +0x2c, 0x10028493c\nB.NE            loc_10028494C                                          ; +0x30, 0x100284940\nBL              GameObject__isFacingLeft                               ; +0x34, 0x100284944\nB               loc_100284950                                          ; +0x38, 0x100284948\nBL              GameObject__isFacingDown                               ; +0x3c, 0x10028494c\nMOV             X22, X0                                                ; +0x40, 0x100284950\nLDRB            W8, [X20,#0x977]                                       ; +0x44, 0x100284954\nCMP             W0, W8                                                 ; +0x48, 0x100284958\nB.NE            loc_100284A48                                          ; +0x4c, 0x10028495c\nMOV             X0, X19                                                ; +0x50, 0x100284960\nMOV             X1, X20                                                ; +0x54, 0x100284964\nMOV             X2, X21                                                ; +0x58, 0x100284968\nBL              GJBaseGameLayer__canBeActivatedByPlayer                ; +0x5c, 0x10028496c\nCBZ             W0, loc_100284A48                                      ; +0x60, 0x100284970\nLDRB            W8, [X21,#0x6F4]                                       ; +0x64, 0x100284974\nCMP             W8, #1                                                 ; +0x68, 0x100284978\nB.NE            loc_10028498C                                          ; +0x6c, 0x10028497c\nMOV             X0, X20                                                ; +0x70, 0x100284980\nMOV             X1, X21                                                ; +0x74, 0x100284984\nBL              PlayerObject__reversePlayer                            ; +0x78, 0x100284988\nLDRB            W8, [X21,#0x414]                                       ; +0x7c, 0x10028498c\nTBNZ            W8, #0, loc_1002849A8                                  ; +0x80, 0x100284990\nLDR             X8, [X19]                                              ; +0x84, 0x100284994\nLDR             X8, [X8,#0x5C8]                                        ; +0x88, 0x100284998\nEOR             W1, W22, #1                                            ; +0x8c, 0x10028499c\nMOV             X0, X19                                                ; +0x90, 0x1002849a0\nBLR             X8                                                     ; +0x94, 0x1002849a4\nLDR             X8, [X21]                                              ; +0x98, 0x1002849a8\nLDR             X8, [X8,#0xC0]                                         ; +0x9c, 0x1002849ac\nMOV             X0, X21                                                ; +0xa0, 0x1002849b0\nBLR             X8                                                     ; +0xa4, 0x1002849b4\nMOV             X23, X0                                                ; +0xa8, 0x1002849b8\nMOV             X0, SP                                                 ; +0xac, 0x1002849bc\nFMOV            S0, WZR                                                ; +0xb0, 0x1002849c0\nFMOV            S1, #-10.0                                             ; +0xb4, 0x1002849c4\nBL              sub_1000262BC                                          ; +0xb8, 0x1002849c8\nADD             X8, SP, #0x40+var_38                                   ; +0xbc, 0x1002849cc\nMOV             X1, SP                                                 ; +0xc0, 0x1002849d0\nMOV             X0, X23                                                ; +0xc4, 0x1002849d4\nBL              sub_100026318                                          ; +0xc8, 0x1002849d8\nADD             X0, X20, #0x9B8                                        ; +0xcc, 0x1002849dc\nADD             X1, SP, #0x40+var_38                                   ; +0xd0, 0x1002849e0\nBL              sub_10002630C                                          ; +0xd4, 0x1002849e4\nLDR             X8, [X21]                                              ; +0xd8, 0x1002849e8\nLDR             X8, [X8,#0x600]                                        ; +0xdc, 0x1002849ec\nMOV             X0, X21                                                ; +0xe0, 0x1002849f0\nMOV             X1, X20                                                ; +0xe4, 0x1002849f4\nBLR             X8                                                     ; +0xe8, 0x1002849f8\nSTR             X21, [X20,#0xA20]                                      ; +0xec, 0x1002849fc\nLDRB            W1, [X21,#0x414]                                       ; +0xf0, 0x100284a00\nADRP            X8, #dword_10075BCE0@PAGE                              ; +0xf4, 0x100284a04\nLDR             S0, [X8,#dword_10075BCE0@PAGEOFF]                      ; +0xf8, 0x100284a08\nMOV             X0, X20                                                ; +0xfc, 0x100284a0c\nMOV             W2, #0xA                                               ; +0x100, 0x100284a10\nBL              PlayerObject__propellPlayer                            ; +0x104, 0x100284a14\nMOV             W21, #1                                                ; +0x108, 0x100284a18\nEOR             W2, W22, #1                                            ; +0x10c, 0x100284a1c\nMOV             X0, X19                                                ; +0x110, 0x100284a20\nMOV             X1, X20                                                ; +0x114, 0x100284a24\nMOV             W3, #1                                                 ; +0x118, 0x100284a28\nBL              GJBaseGameLayer__flipGravity                           ; +0x11c, 0x100284a2c\nSTRB            W21, [X20,#0x7B0]                                      ; +0x120, 0x100284a30\nMOV             X0, X19                                                ; +0x124, 0x100284a34\nMOV             W1, #0x30 ; '0'                                        ; +0x128, 0x100284a38\nMOV             W2, #0                                                 ; +0x12c, 0x100284a3c\nMOV             W3, #0                                                 ; +0x130, 0x100284a40\nBL              GJBaseGameLayer__gameEventTriggered                    ; +0x134, 0x100284a44\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x138, 0x100284a48\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x13c, 0x100284a4c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x140, 0x100284a50\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x144, 0x100284a54\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x148, 0x100284a58\nRET                                                                    ; +0x14c, 0x100284a5c", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x1002840d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}