{"type": "func", "start": 6443013328, "end": 6443013567, "name": "sub_1800894D0", "pseudocode": "// \n// sub_1800894D0 from 0x1800894d0 to 0x1800895bf (239 bytes)\n// \n// 5 xrefs:\n// > sub_1800896E0 @ 0x180089849\n// > sub_180089C50 @ 0x180089ca8\n// > <???> @ 0x180184acc\n// > <???> @ 0x180184adc\n// > <???> @ 0x1801fa434\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:41 +0000\n// \n\nchar __fastcall sub_1800894D0(__int64 a1, float a2, float a3, float a4, float *a5)\n{\n  float v5; // xmm7_4\n  float v6; // xmm7_4\n  float v7; // xmm0_4\n  float v8; // xmm8_4\n  float v9; // xmm3_4\n  char result; // al\n\n  v5 = fminf(a2, 1.0);\n  if ( v5 == 1.0\n    || (v6 = v5 * v5,\n        v7 = cosf((float)(a3 * 6.2831855) / a4),\n        v8 = (float)(1.0 - (float)(v7 * v6)) + (float)(1.0 - (float)(v7 * v6)),\n        v9 = (float)(fsqrt(fmaxf((float)(v8 * v8) - (float)((float)((float)(v6 - 1.0) * 4.0) * (float)(v6 - 1.0)), 0.0))\n                   - v8)\n           * (float)(0.5 / (float)(v6 - 1.0)),\n        *a5 = v9,\n        v9 < 0.0) )\n  {\n    *a5 = 0.0;\n    return 0;\n  }\n  else\n  {\n    result = 0;\n    if ( v9 > 0.99000001 )\n      *a5 = 0.99000001;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800894D0 from 0x1800894d0 to 0x1800895bf (239 bytes)\n; \n; 5 xrefs:\n; > sub_1800896E0 @ 0x180089849\n; > sub_180089C50 @ 0x180089ca8\n; > <???> @ 0x180184acc\n; > <???> @ 0x180184adc\n; > <???> @ 0x1801fa434\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:41 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800894d0\nsub     rsp, 50h                                                       ; +0x2, 0x1800894d2\nmov     rbx, [rsp+58h+arg_20]                                          ; +0x6, 0x1800894d6\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0xe, 0x1800894de\nmovaps  xmm7, xmm1                                                     ; +0x13, 0x1800894e3\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x16, 0x1800894e6\nmovss   xmm8, cs:dword_180145744                                       ; +0x1c, 0x1800894ec\nminss   xmm7, xmm8                                                     ; +0x25, 0x1800894f5\nucomiss xmm7, xmm8                                                     ; +0x2a, 0x1800894fa\njz      loc_1800895A6                                                  ; +0x2e, 0x1800894fe\nmulss   xmm2, cs:dword_180164B84                                       ; +0x34, 0x180089504\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x3c, 0x18008950c\nmulss   xmm7, xmm7                                                     ; +0x41, 0x180089511\ndivss   xmm2, xmm3                                                     ; +0x45, 0x180089515\nmovaps  xmm6, xmm7                                                     ; +0x49, 0x180089519\nmovaps  xmm0, xmm2; X                                                  ; +0x4c, 0x18008951c\nsubss   xmm6, xmm8                                                     ; +0x4f, 0x18008951f\ncall    cosf                                                           ; +0x54, 0x180089524\nmulss   xmm0, xmm7                                                     ; +0x59, 0x180089529\nxorps   xmm3, xmm3                                                     ; +0x5d, 0x18008952d\nxorps   xmm2, xmm2                                                     ; +0x60, 0x180089530\nsubss   xmm8, xmm0                                                     ; +0x63, 0x180089533\nmovaps  xmm0, xmm6                                                     ; +0x68, 0x180089538\nmulss   xmm0, cs:dword_180166DD0                                       ; +0x6b, 0x18008953b\nmulss   xmm0, xmm6                                                     ; +0x73, 0x180089543\naddss   xmm8, xmm8                                                     ; +0x77, 0x180089547\nmovaps  xmm1, xmm8                                                     ; +0x7c, 0x18008954c\nmulss   xmm1, xmm8                                                     ; +0x80, 0x180089550\nsubss   xmm1, xmm0                                                     ; +0x85, 0x180089555\nmovss   xmm0, cs:dword_18014573C                                       ; +0x89, 0x180089559\ndivss   xmm0, xmm6                                                     ; +0x91, 0x180089561\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x95, 0x180089565\nmaxss   xmm1, xmm2                                                     ; +0x9a, 0x18008956a\nsqrtss  xmm3, xmm1                                                     ; +0x9e, 0x18008956e\nsubss   xmm3, xmm8                                                     ; +0xa2, 0x180089572\nmulss   xmm3, xmm0                                                     ; +0xa7, 0x180089577\ncomiss  xmm3, xmm2                                                     ; +0xab, 0x18008957b\nmovss   dword ptr [rbx], xmm3                                          ; +0xae, 0x18008957e\njb      short loc_1800895A6                                            ; +0xb2, 0x180089582\nxor     al, al                                                         ; +0xb4, 0x180089584\ncomiss  xmm3, cs:dword_180169314                                       ; +0xb6, 0x180089586\njbe     short loc_1800895AE                                            ; +0xbd, 0x18008958d\nmov     dword ptr [rbx], 3F7D70A4h                                     ; +0xbf, 0x18008958f\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xc5, 0x180089595\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xca, 0x18008959a\nadd     rsp, 50h                                                       ; +0xd0, 0x1800895a0\npop     rbx                                                            ; +0xd4, 0x1800895a4\nretn                                                                   ; +0xd5, 0x1800895a5\nmov     dword ptr [rbx], 0                                             ; +0xd6, 0x1800895a6\nxor     al, al                                                         ; +0xdc, 0x1800895ac\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xde, 0x1800895ae\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xe3, 0x1800895b3\nadd     rsp, 50h                                                       ; +0xe9, 0x1800895b9\npop     rbx                                                            ; +0xed, 0x1800895bd\nretn                                                                   ; +0xee, 0x1800895be", "xrefs": ["sub_1800896E0 @ 0x180089849", "sub_180089C50 @ 0x180089ca8", "<???> @ 0x180184acc", "<???> @ 0x180184adc", "<???> @ 0x1801fa434"], "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"}