{"type": "func", "start": 6442884576, "end": 6442884746, "name": "sub_180069DE0", "pseudocode": "// \n// sub_180069DE0 from 0x180069de0 to 0x180069e8a (170 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801acba0\n// > <???> @ 0x1801f95c4\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_180069DE0(_QWORD *a1)\n{\n  __int64 v1; // rsi\n  int v2; // ebx\n  float *v3; // rdi\n  float v4; // xmm0_4\n  __int64 v5; // rax\n  unsigned int v6; // ebx\n  __int64 i; // rdi\n  _DWORD *v8; // rcx\n  __int64 result; // rax\n\n  v1 = *a1;\n  v2 = 0;\n  v3 = (float *)(*a1 + 1236LL);\n  do\n  {\n    v4 = cosf((float)v2++ * 0.0001917476);\n    *v3++ = v4;\n  }\n  while ( v2 < 0x2000 );\n  v5 = *(_QWORD *)(v1 + 232);\n  v6 = 0;\n  if ( *(int *)(v5 + 96) <= 0 )\n    return 0;\n  for ( i = 0; ; i += 8 )\n  {\n    v8 = *(_DWORD **)(i + *(_QWORD *)(v5 + 104));\n    if ( *v8 == 1 )\n    {\n      result = sub_18009C140(v1, v6, (unsigned int)v8[14]);\n      if ( (_DWORD)result )\n        break;\n    }\n    v5 = *(_QWORD *)(v1 + 232);\n    if ( (signed int)++v6 >= *(_DWORD *)(v5 + 96) )\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_180069DE0 from 0x180069de0 to 0x180069e8a (170 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801acba0\n; > <???> @ 0x1801f95c4\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, 0x180069de0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180069de5\npush    rdi                                                            ; +0xa, 0x180069dea\nsub     rsp, 30h                                                       ; +0xb, 0x180069deb\nmov     rsi, [rcx]                                                     ; +0xf, 0x180069def\nxor     ebx, ebx                                                       ; +0x12, 0x180069df2\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x14, 0x180069df4\nmovss   xmm6, cs:dword_1801670C8                                       ; +0x19, 0x180069df9\nlea     rdi, [rsi+4D4h]                                                ; +0x21, 0x180069e01\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x180069e08\nmovd    xmm0, ebx                                                      ; +0x30, 0x180069e10\ncvtdq2ps xmm0, xmm0                                                    ; +0x34, 0x180069e14\nmulss   xmm0, xmm6; X                                                  ; +0x37, 0x180069e17\ncall    cosf                                                           ; +0x3b, 0x180069e1b\ninc     ebx                                                            ; +0x40, 0x180069e20\nmovss   dword ptr [rdi], xmm0                                          ; +0x42, 0x180069e22\nlea     rdi, [rdi+4]                                                   ; +0x46, 0x180069e26\ncmp     ebx, 2000h                                                     ; +0x4a, 0x180069e2a\njl      short loc_180069E10                                            ; +0x50, 0x180069e30\nmov     rax, [rsi+0E8h]                                                ; +0x52, 0x180069e32\nxor     ebx, ebx                                                       ; +0x59, 0x180069e39\ncmp     [rax+60h], ebx                                                 ; +0x5b, 0x180069e3b\njle     short loc_180069E73                                            ; +0x5e, 0x180069e3e\nxor     edi, edi                                                       ; +0x60, 0x180069e40\nmov     rax, [rax+68h]                                                 ; +0x62, 0x180069e42\nmov     rcx, [rdi+rax]                                                 ; +0x66, 0x180069e46\ncmp     dword ptr [rcx], 1                                             ; +0x6a, 0x180069e4a\njnz     short loc_180069E61                                            ; +0x6d, 0x180069e4d\nmov     r8d, [rcx+38h]                                                 ; +0x6f, 0x180069e4f\nmov     edx, ebx                                                       ; +0x73, 0x180069e53\nmov     rcx, rsi                                                       ; +0x75, 0x180069e55\ncall    sub_18009C140                                                  ; +0x78, 0x180069e58\ntest    eax, eax                                                       ; +0x7d, 0x180069e5d\njnz     short loc_180069E75                                            ; +0x7f, 0x180069e5f\nmov     rax, [rsi+0E8h]                                                ; +0x81, 0x180069e61\ninc     ebx                                                            ; +0x88, 0x180069e68\nadd     rdi, 8                                                         ; +0x8a, 0x180069e6a\ncmp     ebx, [rax+60h]                                                 ; +0x8e, 0x180069e6e\njl      short loc_180069E42                                            ; +0x91, 0x180069e71\nxor     eax, eax                                                       ; +0x93, 0x180069e73\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x95, 0x180069e75\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x9a, 0x180069e7a\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x9f, 0x180069e7f\nadd     rsp, 30h                                                       ; +0xa4, 0x180069e84\npop     rdi                                                            ; +0xa8, 0x180069e88\nretn                                                                   ; +0xa9, 0x180069e89", "xrefs": ["<???> @ 0x1801acba0", "<???> @ 0x1801f95c4"], "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"}