{"type": "func", "start": 6443422048, "end": 6443422691, "name": "sub_1800ED160", "pseudocode": "// \n// sub_1800ED160 from 0x1800ed160 to 0x1800ed3e3 (643 bytes)\n// \n// 4 xrefs:\n// > sub_1800ED830 @ 0x1800edceb\n// > <???> @ 0x18018e05c\n// > <???> @ 0x18018e0b4\n// > <???> @ 0x18020029c\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:54:20 +0000\n// \n\nvoid __fastcall sub_1800ED160(__int64 a1, float a2, float a3, char a4, int a5, float *a6)\n{\n  float v9; // xmm9_4\n  float v10; // xmm6_4\n  float *v11; // rbx\n  unsigned __int64 v12; // rdx\n  float *v13; // r8\n  __int64 v14; // rbp\n  int v15; // r15d\n  float v16; // xmm1_4\n  float v17; // xmm2_4\n\n  v9 = (float)(a3 - a2) / (float)a5;\n  if ( a2 > -80.691002 )\n    v10 = powf(10.0, (float)(a2 * 0.1) + 0.0691);\n  else\n    v10 = 0.0;\n  if ( a5 && a6 && v9 > 0.0 )\n  {\n    memset(a6, 0, 4LL * a5);\n    v11 = *(float **)a1;\n    v12 = *(_QWORD *)a1;\n    v13 = *(float **)a1;\n    if ( a4 )\n    {\n      while ( 1 )\n      {\n        v13 = *(float **)a1;\n        if ( *(_QWORD *)a1 > v12 || v12 >= (unsigned __int64)&v13[*(int *)(a1 + 8)] || v10 <= *v11 )\n          break;\n        v11 = (float *)(v12 + 4);\n        v12 += 4LL;\n        *a6 = *a6 + 1.0;\n      }\n    }\n    v14 = 0;\n    v15 = 1;\n    while ( (unsigned __int64)v13 <= v12 && v12 < (unsigned __int64)&v13[*(int *)(a1 + 8)] && v14 < a5 )\n    {\n      v16 = (float)v15 * v9;\n      if ( (float)(v16 + a2) > -80.691002 )\n        v17 = powf(10.0, (float)((float)(v16 + a2) * 0.1) + 0.0691);\n      else\n        v17 = 0.0;\n      while ( 1 )\n      {\n        v13 = *(float **)a1;\n        if ( *(_QWORD *)a1 > (unsigned __int64)v11 || v11 >= &v13[*(int *)(a1 + 8)] || v17 <= *v11 )\n          break;\n        ++v11;\n        a6[v14] = a6[v14] + 1.0;\n      }\n      ++v15;\n      ++v14;\n      v12 = (unsigned __int64)++v11;\n    }\n    if ( a4 )\n    {\n      while ( *(_QWORD *)a1 <= v12 && v12 < *(_QWORD *)a1 + 4LL * *(int *)(a1 + 8) )\n      {\n        v12 += 4LL;\n        a6[a5 - 1] = a6[a5 - 1] + 1.0;\n      }\n    }\n  }\n}", "assembly": "; \n; sub_1800ED160 from 0x1800ed160 to 0x1800ed3e3 (643 bytes)\n; \n; 4 xrefs:\n; > sub_1800ED830 @ 0x1800edceb\n; > <???> @ 0x18018e05c\n; > <???> @ 0x18018e0b4\n; > <???> @ 0x18020029c\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:54:20 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x1800ed160\npush    rbx                                                            ; +0x3, 0x1800ed163\npush    rdi                                                            ; +0x4, 0x1800ed164\npush    r12                                                            ; +0x5, 0x1800ed165\nsub     rsp, 0B0h                                                      ; +0x7, 0x1800ed167\nmovsxd  rbx, [rsp+0C8h+arg_20]                                         ; +0xe, 0x1800ed16e\nmovzx   r12d, r9b                                                      ; +0x16, 0x1800ed176\nmovaps  xmmword ptr [rax-28h], xmm6                                    ; +0x1a, 0x1800ed17a\nmov     rdi, rcx                                                       ; +0x1e, 0x1800ed17e\nmovaps  xmmword ptr [rax-48h], xmm8                                    ; +0x21, 0x1800ed181\nmovaps  xmm8, xmm1                                                     ; +0x26, 0x1800ed186\nmovaps  xmmword ptr [rax-58h], xmm9                                    ; +0x2a, 0x1800ed18a\nmovaps  xmm9, xmm2                                                     ; +0x2f, 0x1800ed18f\nmovaps  xmmword ptr [rax-68h], xmm10                                   ; +0x33, 0x1800ed193\nsubss   xmm9, xmm8                                                     ; +0x38, 0x1800ed198\nmovaps  xmmword ptr [rax-78h], xmm11                                   ; +0x3d, 0x1800ed19d\nxorps   xmm10, xmm10                                                   ; +0x42, 0x1800ed1a2\nmovss   xmm11, cs:dword_18016DD6C                                      ; +0x46, 0x1800ed1a6\ncomiss  xmm8, xmm11                                                    ; +0x4f, 0x1800ed1af\nmovaps  [rsp+0C8h+var_88], xmm12                                       ; +0x53, 0x1800ed1b3\nmovss   xmm12, cs:dword_1801674AC                                      ; +0x59, 0x1800ed1b9\nmovaps  [rsp+0C8h+var_98], xmm13                                       ; +0x62, 0x1800ed1c2\nmovss   xmm13, cs:dword_18016DD30                                      ; +0x68, 0x1800ed1c8\nmovd    xmm0, ebx                                                      ; +0x71, 0x1800ed1d1\ncvtdq2ps xmm0, xmm0                                                    ; +0x75, 0x1800ed1d5\nmovaps  [rsp+0C8h+var_A8], xmm14                                       ; +0x78, 0x1800ed1d8\nmovss   xmm14, cs:flt_180145764                                        ; +0x7e, 0x1800ed1de\ndivss   xmm9, xmm0                                                     ; +0x87, 0x1800ed1e7\nja      short loc_1800ED1F3                                            ; +0x8c, 0x1800ed1ec\nxorps   xmm6, xmm6                                                     ; +0x8e, 0x1800ed1ee\njmp     short loc_1800ED209                                            ; +0x91, 0x1800ed1f1\nmulss   xmm1, xmm12                                                    ; +0x93, 0x1800ed1f3\nmovaps  xmm0, xmm14; X                                                 ; +0x98, 0x1800ed1f8\naddss   xmm1, xmm13; Y                                                 ; +0x9c, 0x1800ed1fc\ncall    powf                                                           ; +0xa1, 0x1800ed201\nmovaps  xmm6, xmm0                                                     ; +0xa6, 0x1800ed206\ntest    ebx, ebx                                                       ; +0xa9, 0x1800ed209\njz      loc_1800ED3AA                                                  ; +0xab, 0x1800ed20b\nmov     [rsp+0C8h+arg_8], rsi                                          ; +0xb1, 0x1800ed211\nmov     rsi, [rsp+0C8h+arg_28]                                         ; +0xb9, 0x1800ed219\ntest    rsi, rsi                                                       ; +0xc1, 0x1800ed221\njz      loc_1800ED3A2                                                  ; +0xc4, 0x1800ed224\ncomiss  xmm9, xmm10                                                    ; +0xca, 0x1800ed22a\njbe     loc_1800ED3A2                                                  ; +0xce, 0x1800ed22e\nmov     [rsp+0C8h+arg_0], rbp                                          ; +0xd4, 0x1800ed234\nlea     r8, ds:0[rbx*4]; Size                                          ; +0xdc, 0x1800ed23c\nmov     [rsp+0C8h+arg_10], r14                                         ; +0xe4, 0x1800ed244\nxor     edx, edx; Val                                                  ; +0xec, 0x1800ed24c\nmov     [rsp+0C8h+arg_18], r15                                         ; +0xee, 0x1800ed24e\nmov     rcx, rsi; void *                                               ; +0xf6, 0x1800ed256\nmovaps  [rsp+0C8h+var_38], xmm7                                        ; +0xf9, 0x1800ed259\nmov     r14, rbx                                                       ; +0x101, 0x1800ed261\ncall    memset                                                         ; +0x104, 0x1800ed264\nmov     rbx, [rdi]                                                     ; +0x109, 0x1800ed269\nmovss   xmm7, cs:dword_180145744                                       ; +0x10c, 0x1800ed26c\nmov     rdx, rbx                                                       ; +0x114, 0x1800ed274\nmov     r8, rbx                                                        ; +0x117, 0x1800ed277\ntest    r12b, r12b                                                     ; +0x11a, 0x1800ed27a\njz      short loc_1800ED2AF                                            ; +0x11d, 0x1800ed27d\nnop                                                                    ; +0x11f, 0x1800ed27f\nmov     r8, [rdi]                                                      ; +0x120, 0x1800ed280\ncmp     r8, rdx                                                        ; +0x123, 0x1800ed283\nja      short loc_1800ED2AF                                            ; +0x126, 0x1800ed286\nmovsxd  rax, dword ptr [rdi+8]                                         ; +0x128, 0x1800ed288\nlea     rcx, [r8+rax*4]                                                ; +0x12c, 0x1800ed28c\ncmp     rdx, rcx                                                       ; +0x130, 0x1800ed290\njnb     short loc_1800ED2AF                                            ; +0x133, 0x1800ed293\ncomiss  xmm6, dword ptr [rbx]                                          ; +0x135, 0x1800ed295\njbe     short loc_1800ED2AF                                            ; +0x138, 0x1800ed298\nmovss   xmm0, dword ptr [rsi]                                          ; +0x13a, 0x1800ed29a\nlea     rbx, [rdx+4]                                                   ; +0x13e, 0x1800ed29e\naddss   xmm0, xmm7                                                     ; +0x142, 0x1800ed2a2\nmov     rdx, rbx                                                       ; +0x146, 0x1800ed2a6\nmovss   dword ptr [rsi], xmm0                                          ; +0x149, 0x1800ed2a9\njmp     short loc_1800ED280                                            ; +0x14d, 0x1800ed2ad\nxor     ebp, ebp                                                       ; +0x14f, 0x1800ed2af\nlea     r15d, [rbp+1]                                                  ; +0x151, 0x1800ed2b1\ncmp     r8, rdx                                                        ; +0x155, 0x1800ed2b5\nja      loc_1800ED350                                                  ; +0x158, 0x1800ed2b8\nmovsxd  rax, dword ptr [rdi+8]                                         ; +0x15e, 0x1800ed2be\nlea     rcx, [r8+rax*4]                                                ; +0x162, 0x1800ed2c2\ncmp     rdx, rcx                                                       ; +0x166, 0x1800ed2c6\njnb     loc_1800ED350                                                  ; +0x169, 0x1800ed2c9\ncmp     rbp, r14                                                       ; +0x16f, 0x1800ed2cf\njge     short loc_1800ED350                                            ; +0x172, 0x1800ed2d2\nmovd    xmm1, r15d                                                     ; +0x174, 0x1800ed2d4\ncvtdq2ps xmm1, xmm1                                                    ; +0x179, 0x1800ed2d9\nmulss   xmm1, xmm9                                                     ; +0x17c, 0x1800ed2dc\nmovaps  xmm0, xmm1                                                     ; +0x181, 0x1800ed2e1\naddss   xmm0, xmm8                                                     ; +0x184, 0x1800ed2e4\ncomiss  xmm0, xmm11                                                    ; +0x189, 0x1800ed2e9\nja      short loc_1800ED2F5                                            ; +0x18d, 0x1800ed2ed\nmovaps  xmm2, xmm10                                                    ; +0x18f, 0x1800ed2ef\njmp     short loc_1800ED310                                            ; +0x193, 0x1800ed2f3\naddss   xmm1, xmm8                                                     ; +0x195, 0x1800ed2f5\nmovaps  xmm0, xmm14; X                                                 ; +0x19a, 0x1800ed2fa\nmulss   xmm1, xmm12                                                    ; +0x19e, 0x1800ed2fe\naddss   xmm1, xmm13; Y                                                 ; +0x1a3, 0x1800ed303\ncall    powf                                                           ; +0x1a8, 0x1800ed308\nmovaps  xmm2, xmm0                                                     ; +0x1ad, 0x1800ed30d\nmov     r8, [rdi]                                                      ; +0x1b0, 0x1800ed310\ncmp     r8, rbx                                                        ; +0x1b3, 0x1800ed313\nja      short loc_1800ED33E                                            ; +0x1b6, 0x1800ed316\nmovsxd  rax, dword ptr [rdi+8]                                         ; +0x1b8, 0x1800ed318\nlea     rcx, [r8+rax*4]                                                ; +0x1bc, 0x1800ed31c\ncmp     rbx, rcx                                                       ; +0x1c0, 0x1800ed320\njnb     short loc_1800ED33E                                            ; +0x1c3, 0x1800ed323\ncomiss  xmm2, dword ptr [rbx]                                          ; +0x1c5, 0x1800ed325\njbe     short loc_1800ED33E                                            ; +0x1c8, 0x1800ed328\nmovss   xmm0, dword ptr [rsi+rbp*4]                                    ; +0x1ca, 0x1800ed32a\nadd     rbx, 4                                                         ; +0x1cf, 0x1800ed32f\naddss   xmm0, xmm7                                                     ; +0x1d3, 0x1800ed333\nmovss   dword ptr [rsi+rbp*4], xmm0                                    ; +0x1d7, 0x1800ed337\njmp     short loc_1800ED310                                            ; +0x1dc, 0x1800ed33c\ninc     r15d                                                           ; +0x1de, 0x1800ed33e\ninc     rbp                                                            ; +0x1e1, 0x1800ed341\nadd     rbx, 4                                                         ; +0x1e4, 0x1800ed344\nmov     rdx, rbx                                                       ; +0x1e8, 0x1800ed348\njmp     loc_1800ED2B5                                                  ; +0x1eb, 0x1800ed34b\nmov     r15, [rsp+0C8h+arg_18]                                         ; +0x1f0, 0x1800ed350\nmov     rbp, [rsp+0C8h+arg_0]                                          ; +0x1f8, 0x1800ed358\ntest    r12b, r12b                                                     ; +0x200, 0x1800ed360\njz      short loc_1800ED392                                            ; +0x203, 0x1800ed363\nmov     rcx, [rdi]                                                     ; +0x205, 0x1800ed365\ncmp     rcx, rdx                                                       ; +0x208, 0x1800ed368\nja      short loc_1800ED392                                            ; +0x20b, 0x1800ed36b\nmovsxd  rax, dword ptr [rdi+8]                                         ; +0x20d, 0x1800ed36d\nlea     rcx, [rcx+rax*4]                                               ; +0x211, 0x1800ed371\ncmp     rdx, rcx                                                       ; +0x215, 0x1800ed375\njnb     short loc_1800ED392                                            ; +0x218, 0x1800ed378\nmovss   xmm0, dword ptr [rsi+r14*4-4]                                  ; +0x21a, 0x1800ed37a\nadd     rdx, 4                                                         ; +0x221, 0x1800ed381\naddss   xmm0, xmm7                                                     ; +0x225, 0x1800ed385\nmovss   dword ptr [rsi+r14*4-4], xmm0                                  ; +0x229, 0x1800ed389\njmp     short loc_1800ED365                                            ; +0x230, 0x1800ed390\nmov     r14, [rsp+0C8h+arg_10]                                         ; +0x232, 0x1800ed392\nmovaps  xmm7, [rsp+0C8h+var_38]                                        ; +0x23a, 0x1800ed39a\nmov     rsi, [rsp+0C8h+arg_8]                                          ; +0x242, 0x1800ed3a2\nmovaps  xmm14, [rsp+0C8h+var_A8]                                       ; +0x24a, 0x1800ed3aa\nlea     r11, [rsp+0C8h+var_18]                                         ; +0x250, 0x1800ed3b0\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x258, 0x1800ed3b8\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x25d, 0x1800ed3bd\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x262, 0x1800ed3c2\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x267, 0x1800ed3c7\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x26c, 0x1800ed3cc\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x271, 0x1800ed3d1\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x276, 0x1800ed3d6\nmov     rsp, r11                                                       ; +0x27b, 0x1800ed3db\npop     r12                                                            ; +0x27e, 0x1800ed3de\npop     rdi                                                            ; +0x280, 0x1800ed3e0\npop     rbx                                                            ; +0x281, 0x1800ed3e1\nretn                                                                   ; +0x282, 0x1800ed3e2", "xrefs": ["sub_1800ED830 @ 0x1800edceb", "<???> @ 0x18018e05c", "<???> @ 0x18018e0b4", "<???> @ 0x18020029c"], "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"}