{"type": "func", "start": 6442793936, "end": 6442794177, "name": "sub_180053BD0", "pseudocode": "// \n// sub_180053BD0 from 0x180053bd0 to 0x180053cc1 (241 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ac190\n// > <???> @ 0x1801f8bbc\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 __fastcall sub_180053BD0(_QWORD *a1)\n{\n  __int64 v1; // rbx\n  int v2; // edi\n  float *v3; // rsi\n  float v4; // xmm0_4\n  __int64 v5; // rax\n  unsigned int v6; // edi\n  __int64 v7; // rsi\n  int v8; // eax\n\n  v1 = *a1;\n  v2 = 0;\n  v3 = (float *)(*a1 + 640LL);\n  do\n  {\n    v4 = cosf((float)v2++ * 0.0001917476);\n    *v3++ = v4;\n  }\n  while ( v2 < 0x2000 );\n  if ( v1 != -612 )\n    *(_DWORD *)(v1 + 612) = *(_DWORD *)(*(_QWORD *)(v1 + 168) + 1744LL);\n  v5 = *(_QWORD *)(v1 + 232);\n  v6 = 0;\n  *(_DWORD *)(v1 + 616) = 0;\n  *(_QWORD *)(v1 + 576) = 0;\n  *(_QWORD *)(v1 + 592) = 0;\n  *(_DWORD *)(v1 + 604) = 0;\n  if ( *(int *)(v5 + 96) <= 0 )\n  {\nLABEL_9:\n    sub_1800547E0(v1);\n  }\n  else\n  {\n    v7 = 0;\n    while ( 1 )\n    {\n      sub_18009C0C0(v1, v6);\n      if ( v8 )\n        break;\n      ++v6;\n      v7 += 8;\n      if ( (signed int)v6 >= *(_DWORD *)(*(_QWORD *)(v1 + 232) + 96LL) )\n        goto LABEL_9;\n    }\n  }\n}", "assembly": "; \n; sub_180053BD0 from 0x180053bd0 to 0x180053cc1 (241 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ac190\n; > <???> @ 0x1801f8bbc\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     [rsp+arg_0], rbx                                               ; +0x0, 0x180053bd0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180053bd5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180053bda\npush    rdi                                                            ; +0xf, 0x180053bdf\nsub     rsp, 30h                                                       ; +0x10, 0x180053be0\nmov     rbx, [rcx]                                                     ; +0x14, 0x180053be4\nxor     ebp, ebp                                                       ; +0x17, 0x180053be7\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x19, 0x180053be9\nmov     edi, ebp                                                       ; +0x1e, 0x180053bee\nmovss   xmm6, cs:dword_1801670C8                                       ; +0x20, 0x180053bf0\nlea     rsi, [rbx+280h]                                                ; +0x28, 0x180053bf8\nnop                                                                    ; +0x2f, 0x180053bff\nmovd    xmm0, edi                                                      ; +0x30, 0x180053c00\ncvtdq2ps xmm0, xmm0                                                    ; +0x34, 0x180053c04\nmulss   xmm0, xmm6; X                                                  ; +0x37, 0x180053c07\ncall    cosf                                                           ; +0x3b, 0x180053c0b\ninc     edi                                                            ; +0x40, 0x180053c10\nmovss   dword ptr [rsi], xmm0                                          ; +0x42, 0x180053c12\nlea     rsi, [rsi+4]                                                   ; +0x46, 0x180053c16\ncmp     edi, 2000h                                                     ; +0x4a, 0x180053c1a\njl      short loc_180053C00                                            ; +0x50, 0x180053c20\nlea     rdx, [rbx+264h]                                                ; +0x52, 0x180053c22\ntest    rdx, rdx                                                       ; +0x59, 0x180053c29\njz      short loc_180053C3D                                            ; +0x5c, 0x180053c2c\nmov     rax, [rbx+0A8h]                                                ; +0x5e, 0x180053c2e\nmov     ecx, [rax+6D0h]                                                ; +0x65, 0x180053c35\nmov     [rdx], ecx                                                     ; +0x6b, 0x180053c3b\nmov     rax, [rbx+0E8h]                                                ; +0x6d, 0x180053c3d\nmov     edi, ebp                                                       ; +0x74, 0x180053c44\nmov     [rbx+268h], ebp                                                ; +0x76, 0x180053c46\nmov     [rbx+240h], rbp                                                ; +0x7c, 0x180053c4c\nmov     [rbx+250h], rbp                                                ; +0x83, 0x180053c53\nmov     [rbx+25Ch], ebp                                                ; +0x8a, 0x180053c5a\ncmp     [rax+60h], ebp                                                 ; +0x90, 0x180053c60\njle     short loc_180053C9D                                            ; +0x93, 0x180053c63\nmov     rsi, rbp                                                       ; +0x95, 0x180053c65\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x98, 0x180053c68\nmov     rax, [rax+68h]                                                 ; +0xa0, 0x180053c70\nmov     edx, edi                                                       ; +0xa4, 0x180053c74\nmov     rcx, [rax+rsi]                                                 ; +0xa6, 0x180053c76\nmovss   xmm2, dword ptr [rcx+38h]                                      ; +0xaa, 0x180053c7a\nmov     rcx, rbx                                                       ; +0xaf, 0x180053c7f\ncall    sub_18009C0C0                                                  ; +0xb2, 0x180053c82\ntest    eax, eax                                                       ; +0xb7, 0x180053c87\njnz     short loc_180053CA7                                            ; +0xb9, 0x180053c89\nmov     rax, [rbx+0E8h]                                                ; +0xbb, 0x180053c8b\ninc     edi                                                            ; +0xc2, 0x180053c92\nadd     rsi, 8                                                         ; +0xc4, 0x180053c94\ncmp     edi, [rax+60h]                                                 ; +0xc8, 0x180053c98\njl      short loc_180053C70                                            ; +0xcb, 0x180053c9b\nmov     rcx, rbx                                                       ; +0xcd, 0x180053c9d\ncall    sub_1800547E0                                                  ; +0xd0, 0x180053ca0\nmov     eax, ebp                                                       ; +0xd5, 0x180053ca5\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd7, 0x180053ca7\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xdc, 0x180053cac\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xe1, 0x180053cb1\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xe6, 0x180053cb6\nadd     rsp, 30h                                                       ; +0xeb, 0x180053cbb\npop     rdi                                                            ; +0xef, 0x180053cbf\nretn                                                                   ; +0xf0, 0x180053cc0", "xrefs": ["<???> @ 0x1801ac190", "<???> @ 0x1801f8bbc"], "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"}