{"type": "func", "start": 4297464940, "end": 4297465116, "name": "GameObject::isFacingLeft", "pseudocode": "// \n// GameObject::isFacingLeft from 0x100261c6c to 0x100261d1c (176 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::gravBumpPlayer @ 0x1001e90fc\n// > PlayerObject::ringJump @ 0x1002283d8\n// > PlayerObject::bumpPlayer @ 0x10022cb00\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::isFacingLeft(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  char v7; // w11\n  bool v8; // w10\n  bool v10; // w11\n  char v11; // w11\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  v6 = v2 + 360;\n  if ( v2 >= 0 )\n    v6 = v2;\n  v7 = (v6 != 270) | v3;\n  v8 = (v6 == 90) & v3;\n  if ( (v7 & 1) == 0 )\n    v8 = 1;\n  v10 = (unsigned int)(v2 - 91) < 0xB3 || (unsigned int)(v2 + 269) < 0xB3;\n  v11 = v3 ^ v10;\n  if ( v4 >= 0x2D82D83 )\n    return v11;\n  else\n    return v8;\n}", "assembly": "; \n; GameObject::isFacingLeft from 0x100261c6c to 0x100261d1c (176 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::gravBumpPlayer @ 0x1001e90fc\n; > PlayerObject::ringJump @ 0x1002283d8\n; > PlayerObject::bumpPlayer @ 0x10022cb00\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, 0x100261c6c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100261c70\nADD             X29, SP, #0x10                                         ; +0x8, 0x100261c74\nMOV             X19, X0                                                ; +0xc, 0x100261c78\nLDR             X8, [X0]                                               ; +0x10, 0x100261c7c\nLDR             X8, [X8,#0x618]                                        ; +0x14, 0x100261c80\nBLR             X8                                                     ; +0x18, 0x100261c84\nFCVTZS          W20, S0                                                ; +0x1c, 0x100261c88\nLDR             X8, [X19]                                              ; +0x20, 0x100261c8c\nLDR             X8, [X8,#0x588]                                        ; +0x24, 0x100261c90\nMOV             X0, X19                                                ; +0x28, 0x100261c94\nBLR             X8                                                     ; +0x2c, 0x100261c98\nMOV             W8, #0xA4FA4FA5                                        ; +0x30, 0x100261c9c\nMOV             W9, #0x2D82D82                                         ; +0x38, 0x100261ca4\nMADD            W8, W20, W8, W9                                        ; +0x40, 0x100261cac\nEXTR            W8, W8, W8, #1                                         ; +0x44, 0x100261cb0\nMOV             W9, #0x2D82D83                                         ; +0x48, 0x100261cb4\nADD             W10, W20, #0x168                                       ; +0x50, 0x100261cbc\nCMP             W20, #0                                                ; +0x54, 0x100261cc0\nCSEL            W10, W10, W20, LT                                      ; +0x58, 0x100261cc4\nCMP             W10, #0x10E                                            ; +0x5c, 0x100261cc8\nCSET            W11, NE                                                ; +0x60, 0x100261ccc\nORR             W11, W11, W0                                           ; +0x64, 0x100261cd0\nMOV             W12, #1                                                ; +0x68, 0x100261cd4\nCMP             W10, #0x5A ; 'Z'                                       ; +0x6c, 0x100261cd8\nCSET            W10, EQ                                                ; +0x70, 0x100261cdc\nAND             W10, W10, W0                                           ; +0x74, 0x100261ce0\nTST             W11, #1                                                ; +0x78, 0x100261ce4\nCSEL            W10, W12, W10, EQ                                      ; +0x7c, 0x100261ce8\nSUB             W11, W20, #0x5B ; '['                                  ; +0x80, 0x100261cec\nCMP             W11, #0xB3                                             ; +0x84, 0x100261cf0\nADD             W11, W20, #0x10D                                       ; +0x88, 0x100261cf4\nMOV             W12, #0xB3                                             ; +0x8c, 0x100261cf8\nCCMP            W11, W12, #0, CS                                       ; +0x90, 0x100261cfc\nCSET            W11, CC                                                ; +0x94, 0x100261d00\nEOR             W11, W0, W11                                           ; +0x98, 0x100261d04\nCMP             W8, W9                                                 ; +0x9c, 0x100261d08\nCSEL            W0, W10, W11, CC                                       ; +0xa0, 0x100261d0c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xa4, 0x100261d10\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa8, 0x100261d14\nRET                                                                    ; +0xac, 0x100261d18", "xrefs": ["GJBaseGameLayer::gravBumpPlayer @ 0x1001e90fc", "PlayerObject::ringJump @ 0x1002283d8", "PlayerObject::bumpPlayer @ 0x10022cb00"], "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"}