{"type": "func", "start": 6443646656, "end": 6443646768, "name": "__common_scos_cout_rare", "pseudocode": "// \n// __common_scos_cout_rare from 0x180123ec0 to 0x180123f30 (112 bytes)\n// \n// 4 xrefs:\n// > _sse2_cosf4 @ 0x1801220e9\n// > _sse4_cosf4 @ 0x180122a44\n// > <???> @ 0x180202624\n// > <???> @ 0x180202630\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 __fastcall _common_scos_cout_rare(__int64 a1, float *a2)\n{\n  __int64 result; // rax\n  float v3; // xmm0_4\n  float v4; // [rsp+20h] [rbp-8h]\n\n  v4 = *(float *)a1;\n  if ( (*(_WORD *)(a1 + 2) & 0x7F80) != 0x7F80 )\n    return 0;\n  HIBYTE(v4) = HIBYTE(*(_DWORD *)a1) & 0x7F;\n  if ( v4 == INFINITY )\n  {\n    result = 1;\n    v3 = *(float *)a1 * 0.0;\n  }\n  else\n  {\n    result = 0;\n    v3 = *(float *)a1 * *(float *)a1;\n  }\n  *a2 = v3;\n  return result;\n}", "assembly": "; \n; __common_scos_cout_rare from 0x180123ec0 to 0x180123f30 (112 bytes)\n; \n; 4 xrefs:\n; > _sse2_cosf4 @ 0x1801220e9\n; > _sse4_cosf4 @ 0x180122a44\n; > <???> @ 0x180202624\n; > <???> @ 0x180202630\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\nsub     rsp, 28h                                                       ; +0x0, 0x180123ec0\nmov     r8, rdx                                                        ; +0x4, 0x180123ec4\nmov     edx, [rcx]                                                     ; +0x7, 0x180123ec7\nmovzx   eax, word ptr [rcx+2]                                          ; +0x9, 0x180123ec9\nmov     [rsp+28h+var_8], edx                                           ; +0xd, 0x180123ecd\nand     eax, 7F80h                                                     ; +0x11, 0x180123ed1\nshr     edx, 18h                                                       ; +0x16, 0x180123ed6\nand     edx, 7Fh                                                       ; +0x19, 0x180123ed9\ncmp     eax, 7F80h                                                     ; +0x1c, 0x180123edc\njnz     short loc_180123F20                                            ; +0x21, 0x180123ee1\nmov     byte ptr [rsp+28h+var_8+3], dl                                 ; +0x23, 0x180123ee3\ncmp     [rsp+28h+var_8], 7F800000h                                     ; +0x27, 0x180123ee7\njnz     short loc_180123F0C                                            ; +0x2f, 0x180123eef\nmovss   xmm0, dword ptr [rcx]                                          ; +0x31, 0x180123ef1\nmov     eax, 1                                                         ; +0x35, 0x180123ef5\nmulss   xmm0, cs:dword_180208A00                                       ; +0x3a, 0x180123efa\nmovss   dword ptr [r8], xmm0                                           ; +0x42, 0x180123f02\nadd     rsp, 28h                                                       ; +0x47, 0x180123f07\nretn                                                                   ; +0x4b, 0x180123f0b\nmovss   xmm0, dword ptr [rcx]                                          ; +0x4c, 0x180123f0c\nxor     eax, eax                                                       ; +0x50, 0x180123f10\nmulss   xmm0, dword ptr [rcx]                                          ; +0x52, 0x180123f12\nmovss   dword ptr [r8], xmm0                                           ; +0x56, 0x180123f16\nadd     rsp, 28h                                                       ; +0x5b, 0x180123f1b\nretn                                                                   ; +0x5f, 0x180123f1f\nxor     eax, eax                                                       ; +0x60, 0x180123f20\nadd     rsp, 28h                                                       ; +0x62, 0x180123f22\nretn                                                                   ; +0x66, 0x180123f26\nalign 10h                                                              ; +0x67, 0x180123f27", "xrefs": ["_sse2_cosf4 @ 0x1801220e9", "_sse4_cosf4 @ 0x180122a44", "<???> @ 0x180202624", "<???> @ 0x180202630"], "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"}