{"type": "func", "start": 6442935472, "end": 6442935565, "name": "sub_1800764B0", "pseudocode": "// \n// sub_1800764B0 from 0x1800764b0 to 0x18007650d (93 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801ad6f0\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 10:53:32 +0000\n// \n\n__int64 __fastcall sub_1800764B0(float **a1, int a2, float a3)\n{\n  float *v3; // r8\n  int v4; // ecx\n  int v5; // edx\n  __int64 result; // rax\n\n  v3 = *a1;\n  v4 = *(_DWORD *)(*((_QWORD *)*a1 + 21) + 1744LL);\n  if ( a2 )\n  {\n    v5 = a2 - 1;\n    if ( v5 )\n    {\n      result = 0;\n      if ( v5 == 1 )\n        v3[276] = a3;\n    }\n    else\n    {\n      v3[275] = a3;\n      return 0;\n    }\n  }\n  else\n  {\n    v3[274] = fminf((float)((float)v4 * 0.5) - 100.0, a3);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800764B0 from 0x1800764b0 to 0x18007650d (93 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801ad6f0\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 10:53:32 +0000\n; \nmov     r8, [rcx]                                                      ; +0x0, 0x1800764b0\nmov     rax, [r8+0A8h]                                                 ; +0x3, 0x1800764b3\nmov     ecx, [rax+6D0h]                                                ; +0xa, 0x1800764ba\ntest    edx, edx                                                       ; +0x10, 0x1800764c0\njz      short loc_1800764E6                                            ; +0x12, 0x1800764c2\nsub     edx, 1                                                         ; +0x14, 0x1800764c4\njz      short loc_1800764DA                                            ; +0x17, 0x1800764c7\nxor     eax, eax                                                       ; +0x19, 0x1800764c9\ncmp     edx, 1                                                         ; +0x1b, 0x1800764cb\njnz     short locret_18007650C                                         ; +0x1e, 0x1800764ce\nmovss   dword ptr [r8+450h], xmm2                                      ; +0x20, 0x1800764d0\nretn                                                                   ; +0x29, 0x1800764d9\nmovss   dword ptr [r8+44Ch], xmm2                                      ; +0x2a, 0x1800764da\nxor     eax, eax                                                       ; +0x33, 0x1800764e3\nretn                                                                   ; +0x35, 0x1800764e5\nmovd    xmm0, ecx                                                      ; +0x36, 0x1800764e6\nxor     eax, eax                                                       ; +0x3a, 0x1800764ea\ncvtdq2ps xmm0, xmm0                                                    ; +0x3c, 0x1800764ec\nmulss   xmm0, cs:dword_18014573C                                       ; +0x3f, 0x1800764ef\nsubss   xmm0, cs:dword_180164634                                       ; +0x47, 0x1800764f7\nminss   xmm0, xmm2                                                     ; +0x4f, 0x1800764ff\nmovss   dword ptr [r8+448h], xmm0                                      ; +0x53, 0x180076503\nretn                                                                   ; +0x5c, 0x18007650c", "xrefs": ["<???> @ 0x1801ad6f0"], "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"}