{"type": "func", "start": 6442793056, "end": 6442793627, "name": "sub_180053860", "pseudocode": "// \n// sub_180053860 from 0x180053860 to 0x180053a9b (571 bytes)\n// \n// 2 xrefs:\n// > sub_180033290 @ 0x180033564\n// > <???> @ 0x1801f8b98\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:18 +0000\n// \n\nvoid sub_180053860()\n{\n  signed int i; // ebx\n  __m128i v1; // xmm0\n  char *v2; // rsi\n  __m128i si128; // xmm8\n  signed int v4; // edi\n  __int64 v5; // rbp\n  __m128 v6; // xmm0\n  __m128 v7; // xmm6\n  __m128 v8; // xmm6\n  __m128 v9; // xmm0\n  float *v10; // rsi\n  float v11; // xmm0_4\n\n  for ( i = 32; i <= 4096; i *= 2 )\n  {\n    v1 = _mm_shuffle_epi32(_mm_cvtsi32_si128(i), 0);\n    if ( i > 512 )\n    {\n      switch ( i )\n      {\n        case 1024:\n          v2 = (char *)&unk_1801CB0C0;\n          break;\n        case 2048:\n          v2 = (char *)&unk_1801CC0C0;\n          break;\n        case 4096:\n          v2 = (char *)&unk_1801CE0C0;\n          break;\n        default:\n          continue;\n      }\n    }\n    else\n    {\n      switch ( i )\n      {\n        case 512:\n          v2 = (char *)&unk_1801CA8C0;\n          break;\n        case 32:\n          v2 = (char *)&unk_1801CA140;\n          break;\n        case 64:\n          v2 = (char *)&unk_1801CA1C0;\n          break;\n        case 128:\n          v2 = (char *)&unk_1801CA2C0;\n          break;\n        case 256:\n          v2 = (char *)&unk_1801CA4C0;\n          break;\n        default:\n          continue;\n      }\n    }\n    si128 = _mm_load_si128((const __m128i *)&xmmword_180164B90);\n    v4 = 0;\n    v5 = 0;\n    v6 = _mm_cvtepi32_ps(v1);\n    v7 = _mm_rcp_ps(v6);\n    v8 = _mm_sub_ps(_mm_add_ps(v7, v7), _mm_mul_ps(_mm_mul_ps(v7, v7), v6));\n    do\n    {\n      v9.m128_u64[1] = _mm_mul_ps(\n                         _mm_mul_ps(\n                           _mm_add_ps(\n                             _mm_cvtepi32_ps(_mm_add_epi32(_mm_shuffle_epi32(_mm_cvtsi32_si128(v4), 0), si128)),\n                             (__m128)xmmword_180166F00),\n                           v8),\n                         (__m128)xmmword_180166F20).m128_u64[1];\n      *(double *)v9.m128_u64 = _vdecl_sinf4();\n      v9.m128_u64[1] = _mm_mul_ps(_mm_mul_ps(v9, v9), (__m128)xmmword_180166F20).m128_u64[1];\n      *(double *)v9.m128_u64 = _vdecl_sinf4();\n      *(__m128 *)&v2[4 * v5] = v9;\n      v5 += 4;\n      v4 += 4;\n    }\n    while ( v4 < i - i % 4 );\n    if ( v4 < i )\n    {\n      v10 = (float *)&v2[4 * v5];\n      do\n      {\n        v11 = sinf((float)((float)((float)v4 + 0.5) * (float)(1.0 / (float)i)) * 1.5707964);\n        *v10 = sinf((float)(v11 * v11) * 1.5707964);\n        ++v4;\n        ++v10;\n      }\n      while ( v4 < i );\n    }\n  }\n}", "assembly": "; \n; sub_180053860 from 0x180053860 to 0x180053a9b (571 bytes)\n; \n; 2 xrefs:\n; > sub_180033290 @ 0x180033564\n; > <???> @ 0x1801f8b98\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:18 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x180053860\nmov     [rax+8], rbx                                                   ; +0x3, 0x180053863\nmov     [rax+10h], rbp                                                 ; +0x7, 0x180053867\nmov     [rax+18h], rsi                                                 ; +0xb, 0x18005386b\npush    rdi                                                            ; +0xf, 0x18005386f\npush    r12                                                            ; +0x10, 0x180053870\npush    r13                                                            ; +0x12, 0x180053872\npush    r14                                                            ; +0x14, 0x180053874\npush    r15                                                            ; +0x16, 0x180053876\nsub     rsp, 0A0h                                                      ; +0x18, 0x180053878\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x1f, 0x18005387f\nlea     r15, unk_1801CA4C0                                             ; +0x23, 0x180053883\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x2a, 0x18005388a\nlea     r12, unk_1801CA2C0                                             ; +0x2e, 0x18005388e\nmovss   xmm7, cs:dword_180166F14                                       ; +0x35, 0x180053895\nlea     r13, unk_1801CA1C0                                             ; +0x3d, 0x18005389d\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x44, 0x1800538a4\nmov     ebx, 20h ; ' '                                                 ; +0x49, 0x1800538a9\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x4e, 0x1800538ae\nmovaps  xmmword ptr [rax-78h], xmm10                                   ; +0x53, 0x1800538b3\nmovaps  [rsp+0C8h+var_88], xmm11                                       ; +0x58, 0x1800538b8\nmovaps  [rsp+0C8h+var_98], xmm12                                       ; +0x5e, 0x1800538be\nmovss   xmm12, cs:dword_18014573C                                      ; +0x64, 0x1800538c4\nmovaps  [rsp+0C8h+var_A8], xmm13                                       ; +0x6d, 0x1800538cd\nmovss   xmm13, cs:dword_180145744                                      ; +0x73, 0x1800538d3\nnop     dword ptr [rax+00h]                                            ; +0x7c, 0x1800538dc\nmovd    xmm0, ebx                                                      ; +0x80, 0x1800538e0\npshufd  xmm0, xmm0, 0                                                  ; +0x84, 0x1800538e4\ncmp     ebx, 200h                                                      ; +0x89, 0x1800538e9\njg      short loc_180053931                                            ; +0x8f, 0x1800538ef\njz      short loc_180053928                                            ; +0x91, 0x1800538f1\nmov     ecx, ebx                                                       ; +0x93, 0x1800538f3\nsub     ecx, 20h ; ' '                                                 ; +0x95, 0x1800538f5\njz      short loc_18005391F                                            ; +0x98, 0x1800538f8\nsub     ecx, 20h ; ' '                                                 ; +0x9a, 0x1800538fa\njz      short loc_18005391A                                            ; +0x9d, 0x1800538fd\nsub     ecx, 40h ; '@'                                                 ; +0x9f, 0x1800538ff\njz      short loc_180053915                                            ; +0xa2, 0x180053902\ncmp     ecx, 80h                                                       ; +0xa4, 0x180053904\njnz     loc_180053A44                                                  ; +0xaa, 0x18005390a\nmov     rsi, r15                                                       ; +0xb0, 0x180053910\njmp     short loc_180053966                                            ; +0xb3, 0x180053913\nmov     rsi, r12                                                       ; +0xb5, 0x180053915\njmp     short loc_180053966                                            ; +0xb8, 0x180053918\nmov     rsi, r13                                                       ; +0xba, 0x18005391a\njmp     short loc_180053966                                            ; +0xbd, 0x18005391d\nlea     rsi, unk_1801CA140                                             ; +0xbf, 0x18005391f\njmp     short loc_180053966                                            ; +0xc6, 0x180053926\nlea     rsi, unk_1801CA8C0                                             ; +0xc8, 0x180053928\njmp     short loc_180053966                                            ; +0xcf, 0x18005392f\ncmp     ebx, 400h                                                      ; +0xd1, 0x180053931\njz      short loc_18005395F                                            ; +0xd7, 0x180053937\ncmp     ebx, 800h                                                      ; +0xd9, 0x180053939\njz      short loc_180053956                                            ; +0xdf, 0x18005393f\ncmp     ebx, 1000h                                                     ; +0xe1, 0x180053941\njnz     loc_180053A44                                                  ; +0xe7, 0x180053947\nlea     rsi, unk_1801CE0C0                                             ; +0xed, 0x18005394d\njmp     short loc_180053966                                            ; +0xf4, 0x180053954\nlea     rsi, unk_1801CC0C0                                             ; +0xf6, 0x180053956\njmp     short loc_180053966                                            ; +0xfd, 0x18005395d\nlea     rsi, unk_1801CB0C0                                             ; +0xff, 0x18005395f\nmovdqa  xmm8, cs:xmmword_180164B90                                     ; +0x106, 0x180053966\nxor     edi, edi                                                       ; +0x10f, 0x18005396f\nxor     ebp, ebp                                                       ; +0x111, 0x180053971\nmov     eax, ebx                                                       ; +0x113, 0x180053973\nand     eax, 80000003h                                                 ; +0x115, 0x180053975\njge     short loc_180053983                                            ; +0x11a, 0x18005397a\ndec     eax                                                            ; +0x11c, 0x18005397c\nor      eax, 0FFFFFFFCh                                                ; +0x11e, 0x18005397e\ninc     eax                                                            ; +0x121, 0x180053981\nmovaps  xmm10, cs:xmmword_180166F20                                    ; +0x123, 0x180053983\nmov     r14d, ebx                                                      ; +0x12b, 0x18005398b\nmovaps  xmm9, cs:xmmword_180166F00                                     ; +0x12e, 0x18005398e\nsub     r14d, eax                                                      ; +0x136, 0x180053996\ncvtdq2ps xmm0, xmm0                                                    ; +0x139, 0x180053999\nmovaps  xmm11, xmm10                                                   ; +0x13c, 0x18005399c\nrcpps   xmm6, xmm0                                                     ; +0x140, 0x1800539a0\nmovaps  xmm1, xmm6                                                     ; +0x143, 0x1800539a3\nmulps   xmm1, xmm6                                                     ; +0x146, 0x1800539a6\naddps   xmm6, xmm6                                                     ; +0x149, 0x1800539a9\nmulps   xmm1, xmm0                                                     ; +0x14c, 0x1800539ac\nsubps   xmm6, xmm1                                                     ; +0x14f, 0x1800539af\nmovd    xmm0, edi                                                      ; +0x152, 0x1800539b2\npshufd  xmm0, xmm0, 0                                                  ; +0x156, 0x1800539b6\npaddd   xmm0, xmm8                                                     ; +0x15b, 0x1800539bb\ncvtdq2ps xmm0, xmm0                                                    ; +0x160, 0x1800539c0\naddps   xmm0, xmm9                                                     ; +0x163, 0x1800539c3\nmulps   xmm0, xmm6                                                     ; +0x167, 0x1800539c7\nmulps   xmm0, xmm10                                                    ; +0x16a, 0x1800539ca\ncall    __vdecl_sinf4                                                  ; +0x16e, 0x1800539ce\nmulps   xmm0, xmm0                                                     ; +0x173, 0x1800539d3\nmulps   xmm0, xmm11                                                    ; +0x176, 0x1800539d6\ncall    __vdecl_sinf4                                                  ; +0x17a, 0x1800539da\nmovups  xmmword ptr [rsi+rbp*4], xmm0                                  ; +0x17f, 0x1800539df\nadd     rbp, 4                                                         ; +0x183, 0x1800539e3\nadd     edi, 4                                                         ; +0x187, 0x1800539e7\ncmp     edi, r14d                                                      ; +0x18a, 0x1800539ea\njl      short loc_1800539B2                                            ; +0x18d, 0x1800539ed\ncmp     edi, ebx                                                       ; +0x18f, 0x1800539ef\njge     short loc_180053A44                                            ; +0x191, 0x1800539f1\nmovd    xmm0, ebx                                                      ; +0x193, 0x1800539f3\nlea     rsi, [rsi+rbp*4]                                               ; +0x197, 0x1800539f7\ncvtdq2ps xmm0, xmm0                                                    ; +0x19b, 0x1800539fb\nmovaps  xmm6, xmm13                                                    ; +0x19e, 0x1800539fe\ndivss   xmm6, xmm0                                                     ; +0x1a2, 0x180053a02\nnop     word ptr [rax+rax+00000000h]                                   ; +0x1a6, 0x180053a06\nmovd    xmm0, edi                                                      ; +0x1b0, 0x180053a10\ncvtdq2ps xmm0, xmm0                                                    ; +0x1b4, 0x180053a14\naddss   xmm0, xmm12                                                    ; +0x1b7, 0x180053a17\nmulss   xmm0, xmm6                                                     ; +0x1bc, 0x180053a1c\nmulss   xmm0, xmm7; X                                                  ; +0x1c0, 0x180053a20\ncall    sinf                                                           ; +0x1c4, 0x180053a24\nmulss   xmm0, xmm0                                                     ; +0x1c9, 0x180053a29\nmulss   xmm0, xmm7; X                                                  ; +0x1cd, 0x180053a2d\ncall    sinf                                                           ; +0x1d1, 0x180053a31\nmovss   dword ptr [rsi], xmm0                                          ; +0x1d6, 0x180053a36\ninc     edi                                                            ; +0x1da, 0x180053a3a\nadd     rsi, 4                                                         ; +0x1dc, 0x180053a3c\ncmp     edi, ebx                                                       ; +0x1e0, 0x180053a40\njl      short loc_180053A10                                            ; +0x1e2, 0x180053a42\nadd     ebx, ebx                                                       ; +0x1e4, 0x180053a44\ncmp     ebx, 1000h                                                     ; +0x1e6, 0x180053a46\njle     loc_1800538E0                                                  ; +0x1ec, 0x180053a4c\nlea     r11, [rsp+0C8h+var_28]                                         ; +0x1f2, 0x180053a52\nmov     rbx, [r11+30h]                                                 ; +0x1fa, 0x180053a5a\nmov     rbp, [r11+38h]                                                 ; +0x1fe, 0x180053a5e\nmov     rsi, [r11+40h]                                                 ; +0x202, 0x180053a62\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x206, 0x180053a66\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x20b, 0x180053a6b\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x210, 0x180053a70\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x215, 0x180053a75\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x21a, 0x180053a7a\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x21f, 0x180053a7f\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x224, 0x180053a84\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x229, 0x180053a89\nmov     rsp, r11                                                       ; +0x22e, 0x180053a8e\npop     r15                                                            ; +0x231, 0x180053a91\npop     r14                                                            ; +0x233, 0x180053a93\npop     r13                                                            ; +0x235, 0x180053a95\npop     r12                                                            ; +0x237, 0x180053a97\npop     rdi                                                            ; +0x239, 0x180053a99\nretn                                                                   ; +0x23a, 0x180053a9a", "xrefs": ["sub_180033290 @ 0x180033564", "<???> @ 0x1801f8b98"], "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"}