{"type": "func", "start": 6443458704, "end": 6443458868, "name": "sub_1800F6090", "pseudocode": "// \n// sub_1800F6090 from 0x1800f6090 to 0x1800f6134 (164 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801b0150\n// > <???> @ 0x18020098c\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_1800F6090(__int64 a1, int a2, float *a3, __int64 a4)\n{\n  __int64 v5; // r8\n  int v7; // edx\n  float v9; // xmm1_4\n  float v10; // xmm0_4\n\n  v5 = *(_QWORD *)(a1 + 8);\n  v7 = a2 - 1;\n  if ( !v7 )\n  {\n    v9 = *(float *)(v5 + 40);\n    if ( v9 <= 0.0 )\n    {\n      v10 = -80.0;\n      goto LABEL_9;\n    }\nLABEL_8:\n    v10 = log10f(v9) * 20.0;\n    goto LABEL_9;\n  }\n  if ( v7 != 1 )\n    return 31;\n  v9 = *(float *)(v5 + 44);\n  if ( v9 > 0.0 )\n    goto LABEL_8;\n  v10 = -80.0;\nLABEL_9:\n  *a3 = v10;\n  if ( a4 )\n    sub_1800B7CA0(a4, 32, \"%.1f\", v10);\n  return 0;\n}", "assembly": "; \n; sub_1800F6090 from 0x1800f6090 to 0x1800f6134 (164 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801b0150\n; > <???> @ 0x18020098c\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     [rsp+arg_0], rbx                                               ; +0x0, 0x1800f6090\npush    rdi                                                            ; +0x5, 0x1800f6095\nsub     rsp, 20h                                                       ; +0x6, 0x1800f6096\nmov     rdi, r8                                                        ; +0xa, 0x1800f609a\nmov     r8, [rcx+8]                                                    ; +0xd, 0x1800f609d\nmov     rbx, r9                                                        ; +0x11, 0x1800f60a1\nsub     edx, 1                                                         ; +0x14, 0x1800f60a4\njz      short loc_1800F60D6                                            ; +0x17, 0x1800f60a7\ncmp     edx, 1                                                         ; +0x19, 0x1800f60a9\njz      short loc_1800F60BE                                            ; +0x1c, 0x1800f60ac\nmov     eax, 1Fh                                                       ; +0x1e, 0x1800f60ae\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x23, 0x1800f60b3\nadd     rsp, 20h                                                       ; +0x28, 0x1800f60b8\npop     rdi                                                            ; +0x2c, 0x1800f60bc\nretn                                                                   ; +0x2d, 0x1800f60bd\nmovss   xmm1, dword ptr [r8+2Ch]                                       ; +0x2e, 0x1800f60be\nxorps   xmm0, xmm0                                                     ; +0x34, 0x1800f60c4\ncomiss  xmm1, xmm0                                                     ; +0x37, 0x1800f60c7\nja      short loc_1800F60EE                                            ; +0x3a, 0x1800f60ca\nmovss   xmm0, cs:dword_1801674C8                                       ; +0x3c, 0x1800f60cc\njmp     short loc_1800F60FE                                            ; +0x44, 0x1800f60d4\nmovss   xmm1, dword ptr [r8+28h]                                       ; +0x46, 0x1800f60d6\nxorps   xmm0, xmm0                                                     ; +0x4c, 0x1800f60dc\ncomiss  xmm1, xmm0                                                     ; +0x4f, 0x1800f60df\nja      short loc_1800F60EE                                            ; +0x52, 0x1800f60e2\nmovss   xmm0, cs:dword_1801674C8                                       ; +0x54, 0x1800f60e4\njmp     short loc_1800F60FE                                            ; +0x5c, 0x1800f60ec\nmovaps  xmm0, xmm1; X                                                  ; +0x5e, 0x1800f60ee\ncall    log10f                                                         ; +0x61, 0x1800f60f1\nmulss   xmm0, cs:dword_180164A24                                       ; +0x66, 0x1800f60f6\nmovss   dword ptr [rdi], xmm0                                          ; +0x6e, 0x1800f60fe\ntest    rbx, rbx                                                       ; +0x72, 0x1800f6102\njz      short loc_1800F6127                                            ; +0x75, 0x1800f6105\nxorps   xmm3, xmm3                                                     ; +0x77, 0x1800f6107\nlea     r8, a1f; \"%.1f\"                                                ; +0x7a, 0x1800f610a\ncvtss2sd xmm3, xmm0                                                    ; +0x81, 0x1800f6111\nmov     edx, 20h ; ' '                                                 ; +0x85, 0x1800f6115\nmov     rcx, rbx                                                       ; +0x8a, 0x1800f611a\nmovq    r9, xmm3                                                       ; +0x8d, 0x1800f611d\ncall    sub_1800B7CA0                                                  ; +0x92, 0x1800f6122\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x97, 0x1800f6127\nxor     eax, eax                                                       ; +0x9c, 0x1800f612c\nadd     rsp, 20h                                                       ; +0x9e, 0x1800f612e\npop     rdi                                                            ; +0xa2, 0x1800f6132\nretn                                                                   ; +0xa3, 0x1800f6133", "xrefs": ["<???> @ 0x1801b0150", "<???> @ 0x18020098c"], "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"}