{"type": "func", "start": 4298108712, "end": 4298108888, "name": "GameObject::isFacingLeft", "pseudocode": "// \n// GameObject::isFacingLeft from 0x1002fef28 to 0x1002fefd8 (176 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::gravBumpPlayer @ 0x100284944\n// > PlayerObject::ringJump @ 0x1002c5058\n// > PlayerObject::bumpPlayer @ 0x1002c9824\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::isFacingLeft(__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  char v7; // w11\n  unsigned int v8; // w10\n  _BOOL4 v10; // w11\n  unsigned int v11; // w11\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  v6 = v2 + 360;\n  if ( v2 >= 0 )\n    v6 = v2;\n  v7 = (v6 != 270) | v3;\n  v8 = (v6 == 90) & (unsigned __int8)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 0x1002fef28 to 0x1002fefd8 (176 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::gravBumpPlayer @ 0x100284944\n; > PlayerObject::ringJump @ 0x1002c5058\n; > PlayerObject::bumpPlayer @ 0x1002c9824\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, 0x1002fef28\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002fef2c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002fef30\nMOV             X19, X0                                                ; +0xc, 0x1002fef34\nLDR             X8, [X0]                                               ; +0x10, 0x1002fef38\nLDR             X8, [X8,#0x628]                                        ; +0x14, 0x1002fef3c\nBLR             X8                                                     ; +0x18, 0x1002fef40\nFCVTZS          W20, S0                                                ; +0x1c, 0x1002fef44\nLDR             X8, [X19]                                              ; +0x20, 0x1002fef48\nLDR             X8, [X8,#0x598]                                        ; +0x24, 0x1002fef4c\nMOV             X0, X19                                                ; +0x28, 0x1002fef50\nBLR             X8                                                     ; +0x2c, 0x1002fef54\nMOV             W8, #0xA4FA4FA5                                        ; +0x30, 0x1002fef58\nMOV             W9, #0x2D82D82                                         ; +0x38, 0x1002fef60\nMADD            W8, W20, W8, W9                                        ; +0x40, 0x1002fef68\nEXTR            W8, W8, W8, #1                                         ; +0x44, 0x1002fef6c\nMOV             W9, #0x2D82D83                                         ; +0x48, 0x1002fef70\nADD             W10, W20, #0x168                                       ; +0x50, 0x1002fef78\nCMP             W20, #0                                                ; +0x54, 0x1002fef7c\nCSEL            W10, W10, W20, LT                                      ; +0x58, 0x1002fef80\nCMP             W10, #0x10E                                            ; +0x5c, 0x1002fef84\nCSET            W11, NE                                                ; +0x60, 0x1002fef88\nORR             W11, W11, W0                                           ; +0x64, 0x1002fef8c\nMOV             W12, #1                                                ; +0x68, 0x1002fef90\nCMP             W10, #0x5A ; 'Z'                                       ; +0x6c, 0x1002fef94\nCSET            W10, EQ                                                ; +0x70, 0x1002fef98\nAND             W10, W10, W0                                           ; +0x74, 0x1002fef9c\nTST             W11, #1                                                ; +0x78, 0x1002fefa0\nCSEL            W10, W12, W10, EQ                                      ; +0x7c, 0x1002fefa4\nSUB             W11, W20, #0x5B ; '['                                  ; +0x80, 0x1002fefa8\nCMP             W11, #0xB3                                             ; +0x84, 0x1002fefac\nADD             W11, W20, #0x10D                                       ; +0x88, 0x1002fefb0\nMOV             W12, #0xB3                                             ; +0x8c, 0x1002fefb4\nCCMP            W11, W12, #0, CS                                       ; +0x90, 0x1002fefb8\nCSET            W11, CC                                                ; +0x94, 0x1002fefbc\nEOR             W11, W0, W11                                           ; +0x98, 0x1002fefc0\nCMP             W8, W9                                                 ; +0x9c, 0x1002fefc4\nCSEL            W0, W10, W11, CC                                       ; +0xa0, 0x1002fefc8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xa4, 0x1002fefcc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa8, 0x1002fefd0\nRET                                                                    ; +0xac, 0x1002fefd4", "xrefs": ["GJBaseGameLayer::gravBumpPlayer @ 0x100284944", "PlayerObject::ringJump @ 0x1002c5058", "PlayerObject::bumpPlayer @ 0x1002c9824"], "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"}