{"type": "func", "start": 4297464796, "end": 4297464940, "name": "GameObject::isFacingDown", "pseudocode": "// \n// GameObject::isFacingDown from 0x100261bdc to 0x100261c6c (144 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::gravBumpPlayer @ 0x1001e9104\n// > PlayerObject::ringJump @ 0x1002283f4\n// > PlayerObject::bumpPlayer @ 0x10022cb1c\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\nbool __fastcall GameObject::isFacingDown(GameObject *a1)\n{\n  int v2; // w20\n  char v3; // w0\n  unsigned int v4; // w8\n  unsigned __int64 v5; // t2\n  int v6; // w10\n  bool v7; // w10\n  bool v9; // w11\n  bool v10; // w8\n\n  v2 = (int)((float (__fastcall *)(GameObject *))a1->getObjectRotation)(a1);\n  v3 = ((__int64 (__fastcall *)(GameObject *))a1->isFlipY)(a1);\n  HIDWORD(v5) = -1527099483 * v2 + 47721858;\n  LODWORD(v5) = HIDWORD(v5);\n  v4 = v5 >> 1;\n  if ( v2 >= 0 )\n    v6 = v2;\n  else\n    v6 = -v2;\n  v7 = v6 == 180;\n  v9 = (unsigned int)(v2 - 91) < 0xB3 || (unsigned int)(v2 + 269) < 0xB3;\n  if ( v4 >= 0x2D82D83 )\n    v10 = v9;\n  else\n    v10 = v7;\n  return v3 ^ v10;\n}", "assembly": "; \n; GameObject::isFacingDown from 0x100261bdc to 0x100261c6c (144 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::gravBumpPlayer @ 0x1001e9104\n; > PlayerObject::ringJump @ 0x1002283f4\n; > PlayerObject::bumpPlayer @ 0x10022cb1c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100261bdc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100261be0\nADD             X29, SP, #0x10                                         ; +0x8, 0x100261be4\nMOV             X19, X0                                                ; +0xc, 0x100261be8\nLDR             X8, [X0]                                               ; +0x10, 0x100261bec\nLDR             X8, [X8,#0x618]                                        ; +0x14, 0x100261bf0\nBLR             X8                                                     ; +0x18, 0x100261bf4\nFCVTZS          W20, S0                                                ; +0x1c, 0x100261bf8\nLDR             X8, [X19]                                              ; +0x20, 0x100261bfc\nLDR             X8, [X8,#0x588]                                        ; +0x24, 0x100261c00\nMOV             X0, X19                                                ; +0x28, 0x100261c04\nBLR             X8                                                     ; +0x2c, 0x100261c08\nMOV             W8, #0xA4FA4FA5                                        ; +0x30, 0x100261c0c\nMOV             W9, #0x2D82D82                                         ; +0x38, 0x100261c14\nMADD            W8, W20, W8, W9                                        ; +0x40, 0x100261c1c\nEXTR            W8, W8, W8, #1                                         ; +0x44, 0x100261c20\nMOV             W9, #0x2D82D83                                         ; +0x48, 0x100261c24\nCMP             W20, #0                                                ; +0x50, 0x100261c2c\nCNEG            W10, W20, MI                                           ; +0x54, 0x100261c30\nCMP             W10, #0xB4                                             ; +0x58, 0x100261c34\nCSET            W10, EQ                                                ; +0x5c, 0x100261c38\nSUB             W11, W20, #0x5B ; '['                                  ; +0x60, 0x100261c3c\nCMP             W11, #0xB3                                             ; +0x64, 0x100261c40\nADD             W11, W20, #0x10D                                       ; +0x68, 0x100261c44\nMOV             W12, #0xB3                                             ; +0x6c, 0x100261c48\nCCMP            W11, W12, #0, CS                                       ; +0x70, 0x100261c4c\nCSET            W11, CC                                                ; +0x74, 0x100261c50\nCMP             W8, W9                                                 ; +0x78, 0x100261c54\nCSEL            W8, W10, W11, CC                                       ; +0x7c, 0x100261c58\nEOR             W0, W0, W8                                             ; +0x80, 0x100261c5c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x84, 0x100261c60\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x88, 0x100261c64\nRET                                                                    ; +0x8c, 0x100261c68", "xrefs": ["GJBaseGameLayer::gravBumpPlayer @ 0x1001e9104", "PlayerObject::ringJump @ 0x1002283f4", "PlayerObject::bumpPlayer @ 0x10022cb1c"], "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"}