{"type": "func", "start": 6442907008, "end": 6442907197, "name": "sub_18006F580", "pseudocode": "// \n// sub_18006F580 from 0x18006f580 to 0x18006f63d (189 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801acfc0\n// > <???> @ 0x1801f9834\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_18006F580(__int64 *a1)\n{\n  __int64 v1; // r10\n  int v2; // edx\n  __int64 v3; // r9\n  __int64 v4; // r8\n  float v5; // xmm0_4\n\n  v1 = *a1;\n  v2 = 0;\n  v3 = *(_QWORD *)(*a1 + 232);\n  if ( *(int *)(v3 + 96) > 0 )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = *(float *)(*(_QWORD *)(*(_QWORD *)(v3 + 104) + v4) + 56LL);\n      if ( v2 )\n      {\n        switch ( v2 )\n        {\n          case 1:\n            *(float *)(v1 + 644) = v5 * 0.0099999998;\n            break;\n          case 2:\n            *(float *)(v1 + 648) = v5;\n            break;\n          case 3:\n            *(float *)(v1 + 652) = v5;\n            break;\n          case 4:\n            *(_DWORD *)(v1 + 656) = v5 >= 0.5;\n            break;\n        }\n      }\n      else\n      {\n        *(float *)(v1 + 640) = v5 * 0.0099999998;\n      }\n      ++v2;\n      v4 += 8;\n    }\n    while ( v2 < *(_DWORD *)(v3 + 96) );\n  }\n  return sub_18006F890(v1, 2, 0);\n}", "assembly": "; \n; sub_18006F580 from 0x18006f580 to 0x18006f63d (189 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801acfc0\n; > <???> @ 0x1801f9834\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\nsub     rsp, 28h                                                       ; +0x0, 0x18006f580\nmov     r10, [rcx]                                                     ; +0x4, 0x18006f584\nxor     edx, edx                                                       ; +0x7, 0x18006f587\nmov     r9, [r10+0E8h]                                                 ; +0x9, 0x18006f589\ncmp     [r9+60h], edx                                                  ; +0x10, 0x18006f590\njle     loc_18006F626                                                  ; +0x14, 0x18006f594\nmovss   xmm2, cs:dword_18014573C                                       ; +0x1a, 0x18006f59a\nxor     r8d, r8d                                                       ; +0x22, 0x18006f5a2\nmovss   xmm1, cs:dword_1801670CC                                       ; +0x25, 0x18006f5a5\nnop     dword ptr [rax]                                                ; +0x2d, 0x18006f5ad\nmov     rax, [r9+68h]                                                  ; +0x30, 0x18006f5b0\nmov     rcx, [rax+r8]                                                  ; +0x34, 0x18006f5b4\nmovss   xmm0, dword ptr [rcx+38h]                                      ; +0x38, 0x18006f5b8\nmov     ecx, edx                                                       ; +0x3d, 0x18006f5bd\ntest    edx, edx                                                       ; +0x3f, 0x18006f5bf\njz      short loc_18006F60D                                            ; +0x41, 0x18006f5c1\nsub     ecx, 1                                                         ; +0x43, 0x18006f5c3\njz      short loc_18006F5FE                                            ; +0x46, 0x18006f5c6\nsub     ecx, 1                                                         ; +0x48, 0x18006f5c8\njz      short loc_18006F5F3                                            ; +0x4b, 0x18006f5cb\nsub     ecx, 1                                                         ; +0x4d, 0x18006f5cd\njz      short loc_18006F5E8                                            ; +0x50, 0x18006f5d0\ncmp     ecx, 1                                                         ; +0x52, 0x18006f5d2\njnz     short loc_18006F61A                                            ; +0x55, 0x18006f5d5\nxor     eax, eax                                                       ; +0x57, 0x18006f5d7\ncomiss  xmm0, xmm2                                                     ; +0x59, 0x18006f5d9\nsetnb   al                                                             ; +0x5c, 0x18006f5dc\nmov     [r10+290h], eax                                                ; +0x5f, 0x18006f5df\njmp     short loc_18006F61A                                            ; +0x66, 0x18006f5e6\nmovss   dword ptr [r10+28Ch], xmm0                                     ; +0x68, 0x18006f5e8\njmp     short loc_18006F61A                                            ; +0x71, 0x18006f5f1\nmovss   dword ptr [r10+288h], xmm0                                     ; +0x73, 0x18006f5f3\njmp     short loc_18006F61A                                            ; +0x7c, 0x18006f5fc\nmulss   xmm0, xmm1                                                     ; +0x7e, 0x18006f5fe\nmovss   dword ptr [r10+284h], xmm0                                     ; +0x82, 0x18006f602\njmp     short loc_18006F61A                                            ; +0x8b, 0x18006f60b\nmulss   xmm0, xmm1                                                     ; +0x8d, 0x18006f60d\nmovss   dword ptr [r10+280h], xmm0                                     ; +0x91, 0x18006f611\ninc     edx                                                            ; +0x9a, 0x18006f61a\nadd     r8, 8                                                          ; +0x9c, 0x18006f61c\ncmp     edx, [r9+60h]                                                  ; +0xa0, 0x18006f620\njl      short loc_18006F5B0                                            ; +0xa4, 0x18006f624\nxor     r9d, r9d                                                       ; +0xa6, 0x18006f626\nxor     r8d, r8d                                                       ; +0xa9, 0x18006f629\nmov     rcx, r10                                                       ; +0xac, 0x18006f62c\nlea     edx, [r9+2]                                                    ; +0xaf, 0x18006f62f\ncall    sub_18006F890                                                  ; +0xb3, 0x18006f633\nadd     rsp, 28h                                                       ; +0xb8, 0x18006f638\nretn                                                                   ; +0xbc, 0x18006f63c", "xrefs": ["<???> @ 0x1801acfc0", "<???> @ 0x1801f9834"], "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"}