{"type": "func", "start": 6442872608, "end": 6442872700, "name": "sub_180066F20", "pseudocode": "// \n// sub_180066F20 from 0x180066f20 to 0x180066f7c (92 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801ac930\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\n__int64 __fastcall sub_180066F20(__int64 *a1, int a2, unsigned int a3)\n{\n  __int64 v3; // r9\n  float v4; // xmm1_4\n  __int64 result; // rax\n  unsigned int v6; // edx\n  int v7; // ecx\n\n  v3 = *a1;\n  v4 = *(float *)(*a1 + 636);\n  if ( v4 < 0.0 )\n    return 0;\n  if ( a2 )\n  {\n    v6 = *(_DWORD *)(v3 + 632);\n    if ( !v6 )\n      return 11;\n  }\n  else\n  {\n    v6 = (int)(float)((float)*(int *)(*(_QWORD *)(v3 + 168) + 1744LL) * v4);\n  }\n  result = 0;\n  v7 = v6 - a3;\n  if ( v6 <= a3 )\n    v7 = 0;\n  *(_DWORD *)(v3 + 632) = v7;\n  return result;\n}", "assembly": "; \n; sub_180066F20 from 0x180066f20 to 0x180066f7c (92 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801ac930\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\nmov     r9, [rcx]                                                      ; +0x0, 0x180066f20\nxorps   xmm0, xmm0                                                     ; +0x3, 0x180066f23\nmovss   xmm1, dword ptr [r9+27Ch]                                      ; +0x6, 0x180066f26\ncomiss  xmm1, xmm0                                                     ; +0xf, 0x180066f2f\njnb     short loc_180066F37                                            ; +0x12, 0x180066f32\nxor     eax, eax                                                       ; +0x14, 0x180066f34\nretn                                                                   ; +0x16, 0x180066f36\ntest    edx, edx                                                       ; +0x17, 0x180066f37\njnz     short loc_180066F6B                                            ; +0x19, 0x180066f39\nmov     rax, [r9+0A8h]                                                 ; +0x1b, 0x180066f3b\nmovd    xmm0, dword ptr [rax+6D0h]                                     ; +0x22, 0x180066f42\ncvtdq2ps xmm0, xmm0                                                    ; +0x2a, 0x180066f4a\nmulss   xmm0, xmm1                                                     ; +0x2d, 0x180066f4d\ncvttss2si rdx, xmm0                                                    ; +0x31, 0x180066f51\nxor     eax, eax                                                       ; +0x36, 0x180066f56\nmov     ecx, edx                                                       ; +0x38, 0x180066f58\nsub     ecx, r8d                                                       ; +0x3a, 0x180066f5a\ncmp     edx, r8d                                                       ; +0x3d, 0x180066f5d\ncmovbe  ecx, eax                                                       ; +0x40, 0x180066f60\nmov     [r9+278h], ecx                                                 ; +0x43, 0x180066f63\nretn                                                                   ; +0x4a, 0x180066f6a\nmov     eax, [r9+278h]                                                 ; +0x4b, 0x180066f6b\nmov     edx, eax                                                       ; +0x52, 0x180066f72\ntest    eax, eax                                                       ; +0x54, 0x180066f74\njnz     short loc_180066F56                                            ; +0x56, 0x180066f76\nlea     eax, [rdx+0Bh]                                                 ; +0x58, 0x180066f78\nretn                                                                   ; +0x5b, 0x180066f7b", "xrefs": ["<???> @ 0x1801ac930"], "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"}