{"type": "func", "start": 5371455520, "end": 5371455703, "name": "GameObject::isFacingDown", "pseudocode": "// \n// GameObject::isFacingDown from 0x14029e820 to 0x14029e8d7 (183 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::collisionCheckObjects @ 0x14031cc9b\n// > PlayerObject::ringJump @ 0x1404f7242\n// > PlayerObject::bumpPlayer @ 0x1404fdb48\n// > <???> @ 0x14091d900\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::isFacingDown(__int64 a1)\n{\n  int v2; // edi\n  char v3; // r9\n  char v4; // r8\n  char result; // al\n  int v6; // ecx\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;\n    if ( v2 > 0 )\n      v6 = v2;\n    if ( v3 )\n    {\n      if ( v6 == 180 )\n        return 0;\n    }\n    else if ( v6 != 180 )\n    {\n      return 0;\n    }\n    return 1;\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  return result;\n}", "assembly": "; \n; GameObject::isFacingDown from 0x14029e820 to 0x14029e8d7 (183 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::collisionCheckObjects @ 0x14031cc9b\n; > PlayerObject::ringJump @ 0x1404f7242\n; > PlayerObject::bumpPlayer @ 0x1404fdb48\n; > <???> @ 0x14091d900\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, 0x14029e820\npush    rdi                                                            ; +0x5, 0x14029e825\nsub     rsp, 20h                                                       ; +0x6, 0x14029e826\nmov     rax, [rcx]                                                     ; +0xa, 0x14029e82a\nmov     rbx, rcx                                                       ; +0xd, 0x14029e82d\ncall    qword ptr [rax+590h]                                           ; +0x10, 0x14029e830\nmov     rax, [rbx]                                                     ; +0x16, 0x14029e836\nmov     rcx, rbx                                                       ; +0x19, 0x14029e839\ncvttss2si edi, xmm0                                                    ; +0x1c, 0x14029e83c\ncall    qword ptr [rax+500h]                                           ; +0x20, 0x14029e840\nmovzx   r9d, al                                                        ; +0x26, 0x14029e846\nxor     r8b, r8b                                                       ; +0x2a, 0x14029e84a\nmov     eax, 0B60B60B7h                                                ; +0x2d, 0x14029e84d\nimul    edi                                                            ; +0x32, 0x14029e852\nadd     edx, edi                                                       ; +0x34, 0x14029e854\nsar     edx, 6                                                         ; +0x36, 0x14029e856\nmov     ecx, edx                                                       ; +0x39, 0x14029e859\nshr     ecx, 1Fh                                                       ; +0x3b, 0x14029e85b\nadd     edx, ecx                                                       ; +0x3e, 0x14029e85e\nimul    ecx, edx, 5Ah ; 'Z'                                            ; +0x40, 0x14029e860\ncmp     edi, ecx                                                       ; +0x43, 0x14029e863\njz      short loc_14029E89F                                            ; +0x45, 0x14029e865\nlea     eax, [rdi-5Bh]                                                 ; +0x47, 0x14029e867\ncmp     eax, 0B2h                                                      ; +0x4a, 0x14029e86a\njbe     short loc_14029E87E                                            ; +0x4f, 0x14029e86f\nlea     eax, [rdi+10Dh]                                                ; +0x51, 0x14029e871\ncmp     eax, 0B2h                                                      ; +0x57, 0x14029e877\nja      short loc_14029E881                                            ; +0x5c, 0x14029e87c\nmov     r8b, 1                                                         ; +0x5e, 0x14029e87e\nmovzx   eax, r8b                                                       ; +0x61, 0x14029e881\nmovzx   ecx, r8b                                                       ; +0x65, 0x14029e885\nxor     al, 1                                                          ; +0x69, 0x14029e889\ntest    r9b, r9b                                                       ; +0x6b, 0x14029e88b\nmovzx   eax, al                                                        ; +0x6e, 0x14029e88e\ncmovz   eax, ecx                                                       ; +0x71, 0x14029e891\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x74, 0x14029e894\nadd     rsp, 20h                                                       ; +0x79, 0x14029e899\npop     rdi                                                            ; +0x7d, 0x14029e89d\nretn                                                                   ; +0x7e, 0x14029e89e\nmov     ecx, edi                                                       ; +0x7f, 0x14029e89f\nneg     ecx                                                            ; +0x81, 0x14029e8a1\ncmovs   ecx, edi                                                       ; +0x83, 0x14029e8a3\ntest    r9b, r9b                                                       ; +0x86, 0x14029e8a6\njz      short loc_14029E8C2                                            ; +0x89, 0x14029e8a9\ncmp     ecx, 0B4h                                                      ; +0x8b, 0x14029e8ab\njnz     short loc_14029E8CA                                            ; +0x91, 0x14029e8b1\nmovzx   eax, r8b                                                       ; +0x93, 0x14029e8b3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x97, 0x14029e8b7\nadd     rsp, 20h                                                       ; +0x9c, 0x14029e8bc\npop     rdi                                                            ; +0xa0, 0x14029e8c0\nretn                                                                   ; +0xa1, 0x14029e8c1\ncmp     ecx, 0B4h                                                      ; +0xa2, 0x14029e8c2\njnz     short loc_14029E8B3                                            ; +0xa8, 0x14029e8c8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xaa, 0x14029e8ca\nmov     al, 1                                                          ; +0xaf, 0x14029e8cf\nadd     rsp, 20h                                                       ; +0xb1, 0x14029e8d1\npop     rdi                                                            ; +0xb5, 0x14029e8d5\nretn                                                                   ; +0xb6, 0x14029e8d6", "xrefs": ["GJBaseGameLayer::collisionCheckObjects @ 0x14031cc9b", "PlayerObject::ringJump @ 0x1404f7242", "PlayerObject::bumpPlayer @ 0x1404fdb48", "<???> @ 0x14091d900"], "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"}