{"type": "func", "start": 4301037328, "end": 4301037446, "name": "GameObject::isFacingDown", "pseudocode": "// \n// GameObject::isFacingDown from 0x1005c9f10 to 0x1005c9f86 (118 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::gravBumpPlayer @ 0x10012840e\n// > PlayerObject::ringJump @ 0x100414780\n// > PlayerObject::bumpPlayer @ 0x10041ab47\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::isFacingDown(GameObject *a1)\n{\n  int v1; // r14d\n  char v2; // al\n  bool v3; // cl\n  int v4; // ecx\n\n  v1 = (int)((float (__fastcall *)(GameObject *))a1->getObjectRotation)(a1);\n  v2 = ((__int64 (__fastcall *)(GameObject *))a1->isFlipY)(a1);\n  if ( __ROR4__(-1527099483 * v1 + 47721858, 1) < 0x2D82D83u )\n  {\n    v4 = -v1;\n    if ( v1 > 0 )\n      v4 = v1;\n    v3 = v4 == 180;\n  }\n  else\n  {\n    v3 = (unsigned int)(v1 - 91) < 0xB3 || (unsigned int)(v1 + 269) < 0xB3;\n  }\n  return v3 ^ v2;\n}", "assembly": "; \n; GameObject::isFacingDown from 0x1005c9f10 to 0x1005c9f86 (118 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::gravBumpPlayer @ 0x10012840e\n; > PlayerObject::ringJump @ 0x100414780\n; > PlayerObject::bumpPlayer @ 0x10041ab47\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\npush    rbp                                                            ; +0x0, 0x1005c9f10\nmov     rbp, rsp                                                       ; +0x1, 0x1005c9f11\npush    r14                                                            ; +0x4, 0x1005c9f14\npush    rbx                                                            ; +0x6, 0x1005c9f16\nmov     rbx, rdi                                                       ; +0x7, 0x1005c9f17\nmov     rax, [rdi]                                                     ; +0xa, 0x1005c9f1a\ncall    qword ptr [rax+618h]                                           ; +0xd, 0x1005c9f1d\ncvttss2si r14d, xmm0                                                   ; +0x13, 0x1005c9f23\nmov     rax, [rbx]                                                     ; +0x18, 0x1005c9f28\nmov     rdi, rbx                                                       ; +0x1b, 0x1005c9f2b\ncall    qword ptr [rax+588h]                                           ; +0x1e, 0x1005c9f2e\nimul    ecx, r14d, 0A4FA4FA5h                                          ; +0x24, 0x1005c9f34\nadd     ecx, 2D82D82h                                                  ; +0x2b, 0x1005c9f3b\nror     ecx, 1                                                         ; +0x31, 0x1005c9f41\ncmp     ecx, 2D82D83h                                                  ; +0x33, 0x1005c9f43\njb      short loc_1005C9F6D                                            ; +0x39, 0x1005c9f49\nlea     ecx, [r14-5Bh]                                                 ; +0x3b, 0x1005c9f4b\ncmp     ecx, 0B3h                                                      ; +0x3f, 0x1005c9f4f\nsetb    dl                                                             ; +0x45, 0x1005c9f55\nadd     r14d, 10Dh                                                     ; +0x48, 0x1005c9f58\ncmp     r14d, 0B3h                                                     ; +0x4f, 0x1005c9f5f\nsetb    cl                                                             ; +0x56, 0x1005c9f66\nor      cl, dl                                                         ; +0x59, 0x1005c9f69\njmp     short loc_1005C9F7F                                            ; +0x5b, 0x1005c9f6b\nmov     ecx, r14d                                                      ; +0x5d, 0x1005c9f6d\nneg     ecx                                                            ; +0x60, 0x1005c9f70\ncmovs   ecx, r14d                                                      ; +0x62, 0x1005c9f72\ncmp     ecx, 0B4h                                                      ; +0x66, 0x1005c9f76\nsetz    cl                                                             ; +0x6c, 0x1005c9f7c\nxor     al, cl                                                         ; +0x6f, 0x1005c9f7f\npop     rbx                                                            ; +0x71, 0x1005c9f81\npop     r14                                                            ; +0x72, 0x1005c9f82\npop     rbp                                                            ; +0x74, 0x1005c9f84\nretn                                                                   ; +0x75, 0x1005c9f85", "xrefs": ["GJBaseGameLayer::gravBumpPlayer @ 0x10012840e", "PlayerObject::ringJump @ 0x100414780", "PlayerObject::bumpPlayer @ 0x10041ab47"], "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"}