{"type": "func", "start": 6443447584, "end": 6443447824, "name": "sub_1800F3520", "pseudocode": "// \n// sub_1800F3520 from 0x1800f3520 to 0x1800f3610 (240 bytes)\n// \n// 7 xrefs:\n// > sub_18008D4E0 @ 0x18008d5d4\n// > sub_18008D4E0 @ 0x18008d67e\n// > sub_18008D4E0 @ 0x18008d76a\n// > sub_18008D7A0 @ 0x18008d894\n// > sub_18008D7A0 @ 0x18008d93e\n// > sub_18008D7A0 @ 0x18008da2a\n// > <???> @ 0x1802007c4\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:22 +0000\n// \n\nfloat *__fastcall sub_1800F3520(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        float a4,\n        _DWORD *a5,\n        _DWORD *a6,\n        _DWORD *a7,\n        float *a8,\n        float *a9)\n{\n  __m128 v9; // xmm0\n  float v10; // xmm5_4\n  float v11; // xmm4_4\n  float v12; // xmm2_4\n\n  v9 = 0;\n  *(double *)v9.m128_u64 = _libm_sse2_sincosf_();\n  v10 = v9.m128_f32[0] * (float)(0.5 / a4);\n  v11 = _mm_shuffle_ps(v9, v9, 1).m128_f32[0];\n  v12 = 1.0 / (float)(v10 + 1.0);\n  v9.m128_f32[0] = -(float)((float)(v11 + 1.0) * v12);\n  *a6 = v9.m128_i32[0];\n  v9.m128_f32[0] = v9.m128_f32[0] * -0.5;\n  *a7 = v9.m128_i32[0];\n  *a5 = v9.m128_i32[0];\n  *a8 = (float)(v11 * -2.0) * v12;\n  *a9 = (float)(1.0 - v10) * v12;\n  return a9;\n}", "assembly": "; \n; sub_1800F3520 from 0x1800f3520 to 0x1800f3610 (240 bytes)\n; \n; 7 xrefs:\n; > sub_18008D4E0 @ 0x18008d5d4\n; > sub_18008D4E0 @ 0x18008d67e\n; > sub_18008D4E0 @ 0x18008d76a\n; > sub_18008D7A0 @ 0x18008d894\n; > sub_18008D7A0 @ 0x18008d93e\n; > sub_18008D7A0 @ 0x18008da2a\n; > <???> @ 0x1802007c4\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:22 +0000\n; \nsub     rsp, 38h                                                       ; +0x0, 0x1800f3520\nmaxss   xmm2, cs:flt_180145764                                         ; +0x4, 0x1800f3524\nmovss   xmm5, cs:dword_180168134                                       ; +0xc, 0x1800f352c\nmovaps  xmm4, xmm1                                                     ; +0x14, 0x1800f3534\nmulss   xmm4, cs:dword_18016E078                                       ; +0x17, 0x1800f3537\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x1f, 0x1800f353f\nmovaps  xmm6, xmm3                                                     ; +0x24, 0x1800f3544\nmovaps  xmm0, xmm2                                                     ; +0x27, 0x1800f3547\nminss   xmm0, xmm5                                                     ; +0x2a, 0x1800f354a\ncomiss  xmm0, xmm4                                                     ; +0x2e, 0x1800f354e\njnb     short loc_1800F355D                                            ; +0x31, 0x1800f3551\ncomiss  xmm2, xmm5                                                     ; +0x33, 0x1800f3553\njb      short loc_1800F3560                                            ; +0x36, 0x1800f3556\nmovaps  xmm2, xmm5                                                     ; +0x38, 0x1800f3558\njmp     short loc_1800F3560                                            ; +0x3b, 0x1800f355b\nmovaps  xmm2, xmm4                                                     ; +0x3d, 0x1800f355d\nmulss   xmm2, cs:dword_180164B84                                       ; +0x40, 0x1800f3560\nxorps   xmm0, xmm0                                                     ; +0x48, 0x1800f3568\ndivss   xmm2, xmm1                                                     ; +0x4b, 0x1800f356b\nmovss   xmm0, xmm2                                                     ; +0x4f, 0x1800f356f\ncall    __libm_sse2_sincosf_                                           ; +0x53, 0x1800f3573\nmovss   xmm3, cs:dword_180145744                                       ; +0x58, 0x1800f3578\nmovaps  xmm5, xmm0                                                     ; +0x60, 0x1800f3580\nmovss   xmm1, cs:dword_18014573C                                       ; +0x63, 0x1800f3583\nmovaps  xmm4, xmm0                                                     ; +0x6b, 0x1800f358b\nmov     rax, [rsp+38h+arg_28]                                          ; +0x6e, 0x1800f358e\nmovaps  xmm2, xmm3                                                     ; +0x73, 0x1800f3593\ndivss   xmm1, xmm6                                                     ; +0x76, 0x1800f3596\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7a, 0x1800f359a\nmulss   xmm5, xmm1                                                     ; +0x7f, 0x1800f359f\nshufps  xmm4, xmm4, 1                                                  ; +0x83, 0x1800f35a3\nmovaps  xmm0, xmm4                                                     ; +0x87, 0x1800f35a7\nmulss   xmm4, cs:dword_180164A4C                                       ; +0x8a, 0x1800f35aa\naddss   xmm0, xmm3                                                     ; +0x92, 0x1800f35b2\nmovaps  xmm1, xmm5                                                     ; +0x96, 0x1800f35b6\naddss   xmm1, xmm3                                                     ; +0x99, 0x1800f35b9\nsubss   xmm3, xmm5                                                     ; +0x9d, 0x1800f35bd\ndivss   xmm2, xmm1                                                     ; +0xa1, 0x1800f35c1\nmulss   xmm0, xmm2                                                     ; +0xa5, 0x1800f35c5\nmulss   xmm4, xmm2                                                     ; +0xa9, 0x1800f35c9\nxorps   xmm0, cs:xmmword_180144610                                     ; +0xad, 0x1800f35cd\nmovss   dword ptr [rax], xmm0                                          ; +0xb4, 0x1800f35d4\nmulss   xmm0, cs:dword_18014578C                                       ; +0xb8, 0x1800f35d8\nmov     rax, [rsp+38h+arg_30]                                          ; +0xc0, 0x1800f35e0\nmulss   xmm3, xmm2                                                     ; +0xc5, 0x1800f35e5\nmovss   dword ptr [rax], xmm0                                          ; +0xc9, 0x1800f35e9\nmov     rax, [rsp+38h+arg_20]                                          ; +0xcd, 0x1800f35ed\nmovss   dword ptr [rax], xmm0                                          ; +0xd2, 0x1800f35f2\nmov     rax, [rsp+38h+arg_38]                                          ; +0xd6, 0x1800f35f6\nmovss   dword ptr [rax], xmm4                                          ; +0xdb, 0x1800f35fb\nmov     rax, [rsp+38h+arg_40]                                          ; +0xdf, 0x1800f35ff\nmovss   dword ptr [rax], xmm3                                          ; +0xe7, 0x1800f3607\nadd     rsp, 38h                                                       ; +0xeb, 0x1800f360b\nretn                                                                   ; +0xef, 0x1800f360f", "xrefs": ["sub_18008D4E0 @ 0x18008d5d4", "sub_18008D4E0 @ 0x18008d67e", "sub_18008D4E0 @ 0x18008d76a", "sub_18008D7A0 @ 0x18008d894", "sub_18008D7A0 @ 0x18008d93e", "sub_18008D7A0 @ 0x18008da2a", "<???> @ 0x1802007c4"], "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"}