{"type": "func", "start": 4298108568, "end": 4298108712, "name": "GameObject::isFacingDown", "pseudocode": "// \n// GameObject::isFacingDown from 0x1002fee98 to 0x1002fef28 (144 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::gravBumpPlayer @ 0x10028494c\n// > PlayerObject::ringJump @ 0x1002c5074\n// > PlayerObject::bumpPlayer @ 0x1002c9840\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:03:04 +0000\n// \n\n__int64 __fastcall GameObject::isFacingDown(__int64 a1)\n{\n  int v2; // w20\n  int v3; // w0\n  unsigned int v4; // w8\n  unsigned __int64 v5; // t2\n  int v6; // w10\n  _BOOL4 v7; // w10\n  _BOOL4 v9; // w11\n  _BOOL4 v10; // w8\n\n  v2 = (int)(*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 1576LL))(a1);\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1432LL))(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 ^ (unsigned int)v10;\n}", "assembly": "; \n; GameObject::isFacingDown from 0x1002fee98 to 0x1002fef28 (144 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::gravBumpPlayer @ 0x10028494c\n; > PlayerObject::ringJump @ 0x1002c5074\n; > PlayerObject::bumpPlayer @ 0x1002c9840\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:03:04 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002fee98\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002fee9c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002feea0\nMOV             X19, X0                                                ; +0xc, 0x1002feea4\nLDR             X8, [X0]                                               ; +0x10, 0x1002feea8\nLDR             X8, [X8,#0x628]                                        ; +0x14, 0x1002feeac\nBLR             X8                                                     ; +0x18, 0x1002feeb0\nFCVTZS          W20, S0                                                ; +0x1c, 0x1002feeb4\nLDR             X8, [X19]                                              ; +0x20, 0x1002feeb8\nLDR             X8, [X8,#0x598]                                        ; +0x24, 0x1002feebc\nMOV             X0, X19                                                ; +0x28, 0x1002feec0\nBLR             X8                                                     ; +0x2c, 0x1002feec4\nMOV             W8, #0xA4FA4FA5                                        ; +0x30, 0x1002feec8\nMOV             W9, #0x2D82D82                                         ; +0x38, 0x1002feed0\nMADD            W8, W20, W8, W9                                        ; +0x40, 0x1002feed8\nEXTR            W8, W8, W8, #1                                         ; +0x44, 0x1002feedc\nMOV             W9, #0x2D82D83                                         ; +0x48, 0x1002feee0\nCMP             W20, #0                                                ; +0x50, 0x1002feee8\nCNEG            W10, W20, MI                                           ; +0x54, 0x1002feeec\nCMP             W10, #0xB4                                             ; +0x58, 0x1002feef0\nCSET            W10, EQ                                                ; +0x5c, 0x1002feef4\nSUB             W11, W20, #0x5B ; '['                                  ; +0x60, 0x1002feef8\nCMP             W11, #0xB3                                             ; +0x64, 0x1002feefc\nADD             W11, W20, #0x10D                                       ; +0x68, 0x1002fef00\nMOV             W12, #0xB3                                             ; +0x6c, 0x1002fef04\nCCMP            W11, W12, #0, CS                                       ; +0x70, 0x1002fef08\nCSET            W11, CC                                                ; +0x74, 0x1002fef0c\nCMP             W8, W9                                                 ; +0x78, 0x1002fef10\nCSEL            W8, W10, W11, CC                                       ; +0x7c, 0x1002fef14\nEOR             W0, W0, W8                                             ; +0x80, 0x1002fef18\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x84, 0x1002fef1c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x88, 0x1002fef20\nRET                                                                    ; +0x8c, 0x1002fef24", "xrefs": ["GJBaseGameLayer::gravBumpPlayer @ 0x10028494c", "PlayerObject::ringJump @ 0x1002c5074", "PlayerObject::bumpPlayer @ 0x1002c9840"], "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"}