{"type": "func", "start": 6443325760, "end": 6443325837, "name": "sub_1800D5940", "pseudocode": "// \n// sub_1800D5940 from 0x1800d5940 to 0x1800d598d (77 bytes)\n// \n// 6 xrefs:\n// > sub_18001CFD0 @ 0x18001eef3\n// > sub_18001CFD0 @ 0x18001ef1d\n// > sub_18001CFD0 @ 0x18001ef3c\n// > sub_180028110 @ 0x18002855d\n// > sub_180038CE0 @ 0x180039505\n// > sub_180040CB0 @ 0x1800414b7\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:11 +0000\n// \n\n__int64 __fastcall sub_1800D5940(__int64 a1, int a2)\n{\n  int v2; // eax\n  float v3; // xmm1_4\n\n  v2 = 1;\n  if ( a2 >= 1 )\n    v2 = a2;\n  *(_DWORD *)(a1 + 3060) = v2;\n  v3 = (float)((float)v2 * 0.40000001) * *(float *)(a1 + 3028);\n  if ( v3 >= 0.0099999998 )\n    *(_DWORD *)(a1 + 2132) = (int)(float)((float)*(int *)(*(_QWORD *)(a1 + 8) + 16LL) / v3);\n  return 0;\n}", "assembly": "; \n; sub_1800D5940 from 0x1800d5940 to 0x1800d598d (77 bytes)\n; \n; 6 xrefs:\n; > sub_18001CFD0 @ 0x18001eef3\n; > sub_18001CFD0 @ 0x18001ef1d\n; > sub_18001CFD0 @ 0x18001ef3c\n; > sub_180028110 @ 0x18002855d\n; > sub_180038CE0 @ 0x180039505\n; > sub_180040CB0 @ 0x1800414b7\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:11 +0000\n; \nmov     eax, 1                                                         ; +0x0, 0x1800d5940\ncmp     edx, eax                                                       ; +0x5, 0x1800d5945\ncmovge  eax, edx                                                       ; +0x7, 0x1800d5947\nmov     [rcx+0BF4h], eax                                               ; +0xa, 0x1800d594a\nmovd    xmm1, eax                                                      ; +0x10, 0x1800d5950\ncvtdq2ps xmm1, xmm1                                                    ; +0x14, 0x1800d5954\nmulss   xmm1, cs:dword_1801699AC                                       ; +0x17, 0x1800d5957\nmulss   xmm1, dword ptr [rcx+0BD4h]                                    ; +0x1f, 0x1800d595f\ncomiss  xmm1, cs:dword_1801670CC                                       ; +0x27, 0x1800d5967\njb      short loc_1800D598A                                            ; +0x2e, 0x1800d596e\nmov     rax, [rcx+8]                                                   ; +0x30, 0x1800d5970\nmovd    xmm0, dword ptr [rax+10h]                                      ; +0x34, 0x1800d5974\ncvtdq2ps xmm0, xmm0                                                    ; +0x39, 0x1800d5979\ndivss   xmm0, xmm1                                                     ; +0x3c, 0x1800d597c\ncvttss2si eax, xmm0                                                    ; +0x40, 0x1800d5980\nmov     [rcx+854h], eax                                                ; +0x44, 0x1800d5984\nxor     eax, eax                                                       ; +0x4a, 0x1800d598a\nretn                                                                   ; +0x4c, 0x1800d598c", "xrefs": ["sub_18001CFD0 @ 0x18001eef3", "sub_18001CFD0 @ 0x18001ef1d", "sub_18001CFD0 @ 0x18001ef3c", "sub_180028110 @ 0x18002855d", "sub_180038CE0 @ 0x180039505", "sub_180040CB0 @ 0x1800414b7"], "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"}