{"type": "func", "start": 5371455712, "end": 5371455898, "name": "GameObject::isFacingLeft", "pseudocode": "// \n// GameObject::isFacingLeft from 0x14029e8e0 to 0x14029e99a (186 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cc94\n// > PlayerObject::ringJump @ 0x1404f7226\n// > PlayerObject::bumpPlayer @ 0x1404fdb2c\n// > <???> @ 0x14091d90c\n// \n// This function is hookable on this platform (idp: pc, 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:29:14 +0000\n// \n\nchar __fastcall GameObject::isFacingLeft(__int64 a1)\n{\n  int v2; // edi\n  char v3; // r8\n  char v4; // r9\n  char result; // al\n  int v6; // eax\n\n  v2 = (int)(*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 1424LL))(a1);\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1280LL))(a1);\n  v4 = 0;\n  if ( v2 == 90 * (v2 / 90) )\n  {\n    v6 = v2 + 360;\n    if ( v2 >= 0 )\n      v6 = v2;\n    return v6 == 270 && !v3 || v6 == 90 && v3;\n  }\n  else\n  {\n    if ( (unsigned int)(v2 - 91) <= 0xB2 || (unsigned int)(v2 + 269) <= 0xB2 )\n      v4 = 1;\n    result = v4 ^ 1;\n    if ( !v3 )\n      return v4;\n  }\n  return result;\n}", "assembly": "; \n; GameObject::isFacingLeft from 0x14029e8e0 to 0x14029e99a (186 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031cc94\n; > PlayerObject::ringJump @ 0x1404f7226\n; > PlayerObject::bumpPlayer @ 0x1404fdb2c\n; > <???> @ 0x14091d90c\n; \n; This function is hookable on this platform (idp: pc, 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:29:14 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14029e8e0\npush    rdi                                                            ; +0x5, 0x14029e8e5\nsub     rsp, 20h                                                       ; +0x6, 0x14029e8e6\nmov     rax, [rcx]                                                     ; +0xa, 0x14029e8ea\nmov     rbx, rcx                                                       ; +0xd, 0x14029e8ed\ncall    qword ptr [rax+590h]                                           ; +0x10, 0x14029e8f0\nmov     rax, [rbx]                                                     ; +0x16, 0x14029e8f6\nmov     rcx, rbx                                                       ; +0x19, 0x14029e8f9\ncvttss2si edi, xmm0                                                    ; +0x1c, 0x14029e8fc\ncall    qword ptr [rax+500h]                                           ; +0x20, 0x14029e900\nmovzx   r8d, al                                                        ; +0x26, 0x14029e906\nxor     r9b, r9b                                                       ; +0x2a, 0x14029e90a\nmov     eax, 0B60B60B7h                                                ; +0x2d, 0x14029e90d\nimul    edi                                                            ; +0x32, 0x14029e912\nadd     edx, edi                                                       ; +0x34, 0x14029e914\nsar     edx, 6                                                         ; +0x36, 0x14029e916\nmov     ecx, edx                                                       ; +0x39, 0x14029e919\nshr     ecx, 1Fh                                                       ; +0x3b, 0x14029e91b\nadd     edx, ecx                                                       ; +0x3e, 0x14029e91e\nimul    ecx, edx, 5Ah ; 'Z'                                            ; +0x40, 0x14029e920\ncmp     edi, ecx                                                       ; +0x43, 0x14029e923\njz      short loc_14029E95F                                            ; +0x45, 0x14029e925\nlea     eax, [rdi-5Bh]                                                 ; +0x47, 0x14029e927\ncmp     eax, 0B2h                                                      ; +0x4a, 0x14029e92a\njbe     short loc_14029E93E                                            ; +0x4f, 0x14029e92f\nlea     eax, [rdi+10Dh]                                                ; +0x51, 0x14029e931\ncmp     eax, 0B2h                                                      ; +0x57, 0x14029e937\nja      short loc_14029E941                                            ; +0x5c, 0x14029e93c\nmov     r9b, 1                                                         ; +0x5e, 0x14029e93e\nmovzx   eax, r9b                                                       ; +0x61, 0x14029e941\nmovzx   ecx, r9b                                                       ; +0x65, 0x14029e945\nxor     al, 1                                                          ; +0x69, 0x14029e949\ntest    r8b, r8b                                                       ; +0x6b, 0x14029e94b\nmovzx   eax, al                                                        ; +0x6e, 0x14029e94e\ncmovz   eax, ecx                                                       ; +0x71, 0x14029e951\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x74, 0x14029e954\nadd     rsp, 20h                                                       ; +0x79, 0x14029e959\npop     rdi                                                            ; +0x7d, 0x14029e95d\nretn                                                                   ; +0x7e, 0x14029e95e\ntest    edi, edi                                                       ; +0x7f, 0x14029e95f\nlea     eax, [rdi+168h]                                                ; +0x81, 0x14029e961\ncmovns  eax, edi                                                       ; +0x87, 0x14029e967\ncmp     eax, 10Eh                                                      ; +0x8a, 0x14029e96a\njnz     short loc_14029E976                                            ; +0x8f, 0x14029e96f\ntest    r8b, r8b                                                       ; +0x91, 0x14029e971\njz      short loc_14029E980                                            ; +0x94, 0x14029e974\ncmp     eax, 5Ah ; 'Z'                                                 ; +0x96, 0x14029e976\njnz     short loc_14029E98D                                            ; +0x99, 0x14029e979\ntest    r8b, r8b                                                       ; +0x9b, 0x14029e97b\njz      short loc_14029E98D                                            ; +0x9e, 0x14029e97e\nmov     al, 1                                                          ; +0xa0, 0x14029e980\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa2, 0x14029e982\nadd     rsp, 20h                                                       ; +0xa7, 0x14029e987\npop     rdi                                                            ; +0xab, 0x14029e98b\nretn                                                                   ; +0xac, 0x14029e98c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xad, 0x14029e98d\nxor     al, al                                                         ; +0xb2, 0x14029e992\nadd     rsp, 20h                                                       ; +0xb4, 0x14029e994\npop     rdi                                                            ; +0xb8, 0x14029e998\nretn                                                                   ; +0xb9, 0x14029e999", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x14031cc94", "PlayerObject::ringJump @ 0x1404f7226", "PlayerObject::bumpPlayer @ 0x1404fdb2c", "<???> @ 0x14091d90c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}