{"type": "func", "start": 6443351680, "end": 6443351885, "name": "sub_1800DBE80", "pseudocode": "// \n// sub_1800DBE80 from 0x1800dbe80 to 0x1800dbf4d (205 bytes)\n// \n// 5 xrefs:\n// > sub_1801024A0 @ 0x180102550\n// > sub_180102CA0 @ 0x180102e23\n// > <???> @ 0x18018cbf8\n// > <???> @ 0x18018cc08\n// > <???> @ 0x1801ff480\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:13 +0000\n// \n\nvoid __fastcall sub_1800DBE80(float *a1, float *a2, float *a3, float *a4)\n{\n  float v5; // xmm3_4\n  float v7; // xmm1_4\n  float v8; // xmm6_4\n  float v9; // xmm0_4\n  float v10; // xmm2_4\n  float v11; // xmm1_4\n\n  v5 = a1[27];\n  v7 = fsqrt(\n         (float)((float)((float)(a2[1] - a1[25]) * (float)(a2[1] - a1[25]))\n               + (float)((float)(*a2 - a1[24]) * (float)(*a2 - a1[24])))\n       + (float)((float)(a2[2] - a1[26]) * (float)(a2[2] - a1[26])));\n  if ( v7 > v5 )\n  {\n    v9 = 0.0;\n    if ( v7 < a1[28] )\n    {\n      v10 = a1[29];\n      v8 = 1.0;\n      if ( v10 > 0.0 )\n      {\n        v11 = (float)(v7 - v5) / v10;\n        v8 = 1.0 - v11;\n        v9 = powf(10.0, v11 * -3.0);\n      }\n      else\n      {\n        v9 = 1.0;\n      }\n    }\n    else\n    {\n      v8 = 0.0;\n    }\n  }\n  else\n  {\n    v8 = 1.0;\n    v9 = 1.0;\n  }\n  if ( a3 )\n    *a3 = v9;\n  if ( a4 )\n    *a4 = v8;\n}", "assembly": "; \n; sub_1800DBE80 from 0x1800dbe80 to 0x1800dbf4d (205 bytes)\n; \n; 5 xrefs:\n; > sub_1801024A0 @ 0x180102550\n; > sub_180102CA0 @ 0x180102e23\n; > <???> @ 0x18018cbf8\n; > <???> @ 0x18018cc08\n; > <???> @ 0x1801ff480\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:13 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800dbe80\nsub     rsp, 30h                                                       ; +0x2, 0x1800dbe82\nmovss   xmm1, dword ptr [rdx]                                          ; +0x6, 0x1800dbe86\nmov     rbx, r9                                                        ; +0xa, 0x1800dbe8a\nsubss   xmm1, dword ptr [rcx+60h]                                      ; +0xd, 0x1800dbe8d\nmovss   xmm2, dword ptr [rdx+4]                                        ; +0x12, 0x1800dbe92\nsubss   xmm2, dword ptr [rcx+64h]                                      ; +0x17, 0x1800dbe97\nmovss   xmm0, dword ptr [rdx+8]                                        ; +0x1c, 0x1800dbe9c\nsubss   xmm0, dword ptr [rcx+68h]                                      ; +0x21, 0x1800dbea1\nmovss   xmm3, dword ptr [rcx+6Ch]                                      ; +0x26, 0x1800dbea6\nmulss   xmm1, xmm1                                                     ; +0x2b, 0x1800dbeab\nmulss   xmm2, xmm2                                                     ; +0x2f, 0x1800dbeaf\nmulss   xmm0, xmm0                                                     ; +0x33, 0x1800dbeb3\naddss   xmm2, xmm1                                                     ; +0x37, 0x1800dbeb7\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x3b, 0x1800dbebb\nxorps   xmm1, xmm1                                                     ; +0x40, 0x1800dbec0\nmov     [rsp+38h+arg_0], rdi                                           ; +0x43, 0x1800dbec3\nmov     rdi, r8                                                        ; +0x48, 0x1800dbec8\naddss   xmm2, xmm0                                                     ; +0x4b, 0x1800dbecb\nsqrtss  xmm1, xmm2                                                     ; +0x4f, 0x1800dbecf\ncomiss  xmm1, xmm3                                                     ; +0x53, 0x1800dbed3\nja      short loc_1800DBEE5                                            ; +0x56, 0x1800dbed6\nmovss   xmm6, cs:dword_180145744                                       ; +0x58, 0x1800dbed8\nmovaps  xmm0, xmm6                                                     ; +0x60, 0x1800dbee0\njmp     short loc_1800DBF2B                                            ; +0x63, 0x1800dbee3\ncomiss  xmm1, dword ptr [rcx+70h]                                      ; +0x65, 0x1800dbee5\nxorps   xmm0, xmm0                                                     ; +0x69, 0x1800dbee9\njb      short loc_1800DBEF3                                            ; +0x6c, 0x1800dbeec\nxorps   xmm6, xmm6                                                     ; +0x6e, 0x1800dbeee\njmp     short loc_1800DBF2B                                            ; +0x71, 0x1800dbef1\nmovss   xmm2, dword ptr [rcx+74h]                                      ; +0x73, 0x1800dbef3\ncomiss  xmm2, xmm0                                                     ; +0x78, 0x1800dbef8\nmovss   xmm6, cs:dword_180145744                                       ; +0x7b, 0x1800dbefb\nja      short loc_1800DBF0A                                            ; +0x83, 0x1800dbf03\nmovaps  xmm0, xmm6                                                     ; +0x85, 0x1800dbf05\njmp     short loc_1800DBF2B                                            ; +0x88, 0x1800dbf08\nmovss   xmm0, cs:flt_180145764; X                                      ; +0x8a, 0x1800dbf0a\nsubss   xmm1, xmm3                                                     ; +0x92, 0x1800dbf12\ndivss   xmm1, xmm2                                                     ; +0x96, 0x1800dbf16\nsubss   xmm6, xmm1                                                     ; +0x9a, 0x1800dbf1a\nmulss   xmm1, cs:dword_18016D084; Y                                    ; +0x9e, 0x1800dbf1e\ncall    powf                                                           ; +0xa6, 0x1800dbf26\ntest    rdi, rdi                                                       ; +0xab, 0x1800dbf2b\njz      short loc_1800DBF34                                            ; +0xae, 0x1800dbf2e\nmovss   dword ptr [rdi], xmm0                                          ; +0xb0, 0x1800dbf30\nmov     rdi, [rsp+38h+arg_0]                                           ; +0xb4, 0x1800dbf34\ntest    rbx, rbx                                                       ; +0xb9, 0x1800dbf39\njz      short loc_1800DBF42                                            ; +0xbc, 0x1800dbf3c\nmovss   dword ptr [rbx], xmm6                                          ; +0xbe, 0x1800dbf3e\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xc2, 0x1800dbf42\nadd     rsp, 30h                                                       ; +0xc7, 0x1800dbf47\npop     rbx                                                            ; +0xcb, 0x1800dbf4b\nretn                                                                   ; +0xcc, 0x1800dbf4c", "xrefs": ["sub_1801024A0 @ 0x180102550", "sub_180102CA0 @ 0x180102e23", "<???> @ 0x18018cbf8", "<???> @ 0x18018cc08", "<???> @ 0x1801ff480"], "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"}