{"type": "func", "start": 6443405888, "end": 6443406090, "name": "sub_1800E9240", "pseudocode": "// \n// sub_1800E9240 from 0x1800e9240 to 0x1800e930a (202 bytes)\n// \n// 2 xrefs:\n// > sub_1800EB320 @ 0x1800eb8d0\n// > sub_1800EB320 @ 0x1800eba43\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 __usercall sub_1800E9240@<xmm0>(__int64 a1@<rcx>, float a2@<xmm1>)\n{\n  int v2; // edx\n  float v4; // xmm4_4\n  float v5; // xmm2_4\n  __int64 result; // xmm0_8\n  float v7; // xmm2_4\n  float v8; // xmm1_4\n\n  v2 = *(_DWORD *)(a1 + 696);\n  if ( !v2 )\n  {\n    v8 = *(float *)(a1 + 688) + *(float *)(a1 + 688);\n    if ( v8 > 0.0 && a2 < (float)(v8 * 5.0) )\n    {\n      HIDWORD(result) = 0;\n      *(float *)&result = 360.0 / (float)((float)((float)((float)(a2 * a2) / (float)(v8 * v8)) * 4.0) + 1.0);\n      return result;\n    }\n    return 0;\n  }\n  if ( v2 != 1 )\n    return 0;\n  v4 = *(float *)(a1 + 700);\n  v5 = 0.0;\n  if ( v4 > 0.0 && a2 < (float)(v4 * 5.0) )\n    v5 = 360.0 / (float)((float)((float)((float)(a2 * a2) / (float)(v4 * v4)) * 4.0) + 1.0);\n  result = *(unsigned int *)(a1 + 708);\n  if ( *(float *)&result <= v5 )\n  {\n    v7 = *(float *)(a1 + 700);\n    if ( v7 <= 0.0 || a2 >= (float)(v7 * 5.0) )\n    {\n      return 0;\n    }\n    else\n    {\n      HIDWORD(result) = 0;\n      *(float *)&result = 360.0 / (float)((float)((float)(4.0 / (float)(v7 * v7)) * (float)(a2 * a2)) + 1.0);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E9240 from 0x1800e9240 to 0x1800e930a (202 bytes)\n; \n; 2 xrefs:\n; > sub_1800EB320 @ 0x1800eb8d0\n; > sub_1800EB320 @ 0x1800eba43\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     edx, [rcx+2B8h]                                                ; +0x0, 0x1800e9240\nmovaps  xmm3, xmm1                                                     ; +0x6, 0x1800e9246\ntest    edx, edx                                                       ; +0x9, 0x1800e9249\njz      short loc_1800E92B9                                            ; +0xb, 0x1800e924b\ncmp     edx, 1                                                         ; +0xd, 0x1800e924d\njnz     loc_1800E9306                                                  ; +0x10, 0x1800e9250\nmovss   xmm4, dword ptr [rcx+2BCh]                                     ; +0x16, 0x1800e9256\nxorps   xmm2, xmm2                                                     ; +0x1e, 0x1800e925e\ncomiss  xmm4, xmm2                                                     ; +0x21, 0x1800e9261\njbe     short loc_1800E92A1                                            ; +0x24, 0x1800e9264\nmovaps  xmm0, xmm4                                                     ; +0x26, 0x1800e9266\nmulss   xmm0, cs:dword_180145758                                       ; +0x29, 0x1800e9269\ncomiss  xmm3, xmm0                                                     ; +0x31, 0x1800e9271\njnb     short loc_1800E92A1                                            ; +0x34, 0x1800e9274\nmovss   xmm2, cs:dword_180145770                                       ; +0x36, 0x1800e9276\nmovaps  xmm0, xmm4                                                     ; +0x3e, 0x1800e927e\nmulss   xmm1, xmm3                                                     ; +0x41, 0x1800e9281\nmulss   xmm0, xmm4                                                     ; +0x45, 0x1800e9285\ndivss   xmm1, xmm0                                                     ; +0x49, 0x1800e9289\nmulss   xmm1, cs:dword_180166DD0                                       ; +0x4d, 0x1800e928d\naddss   xmm1, cs:dword_180145744                                       ; +0x55, 0x1800e9295\ndivss   xmm2, xmm1                                                     ; +0x5d, 0x1800e929d\nmovss   xmm0, dword ptr [rcx+2C4h]                                     ; +0x61, 0x1800e92a1\ncomiss  xmm0, xmm2                                                     ; +0x69, 0x1800e92a9\nja      short locret_1800E9309                                         ; +0x6c, 0x1800e92ac\nmovaps  xmm2, xmm4                                                     ; +0x6e, 0x1800e92ae\nmovaps  xmm1, xmm3                                                     ; +0x71, 0x1800e92b1\njmp     loc_1800E9A90                                                  ; +0x74, 0x1800e92b4\nmovss   xmm1, dword ptr [rcx+2B0h]                                     ; +0x79, 0x1800e92b9\nxorps   xmm2, xmm2                                                     ; +0x81, 0x1800e92c1\naddss   xmm1, xmm1                                                     ; +0x84, 0x1800e92c4\ncomiss  xmm1, xmm2                                                     ; +0x88, 0x1800e92c8\njbe     short loc_1800E9306                                            ; +0x8b, 0x1800e92cb\nmovaps  xmm0, xmm1                                                     ; +0x8d, 0x1800e92cd\nmulss   xmm0, cs:dword_180145758                                       ; +0x90, 0x1800e92d0\ncomiss  xmm3, xmm0                                                     ; +0x98, 0x1800e92d8\njnb     short loc_1800E9306                                            ; +0x9b, 0x1800e92db\nmovss   xmm0, cs:dword_180145770                                       ; +0x9d, 0x1800e92dd\nmulss   xmm3, xmm3                                                     ; +0xa5, 0x1800e92e5\nmulss   xmm1, xmm1                                                     ; +0xa9, 0x1800e92e9\ndivss   xmm3, xmm1                                                     ; +0xad, 0x1800e92ed\nmulss   xmm3, cs:dword_180166DD0                                       ; +0xb1, 0x1800e92f1\naddss   xmm3, cs:dword_180145744                                       ; +0xb9, 0x1800e92f9\ndivss   xmm0, xmm3                                                     ; +0xc1, 0x1800e9301\nretn                                                                   ; +0xc5, 0x1800e9305\nxorps   xmm0, xmm0                                                     ; +0xc6, 0x1800e9306\nretn                                                                   ; +0xc9, 0x1800e9309", "xrefs": ["sub_1800EB320 @ 0x1800eb8d0", "sub_1800EB320 @ 0x1800eba43"], "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"}