// File: /workspace/github_c_makefile_star2_O1/buptlxb[P]xRay/disasm/instr_set/opcodes_SSE.c
// Function: cmpps_VW
void __bea_callspec__ cmpps_VW(PDISASM pMyDisasm)
{

    /* ========= 0xf2 */
    GV.ImmediatSize = 8;
    if (GV.PrefRepne == 1) {
        (*pMyDisasm).Prefix.RepnePrefix = MandatoryPrefix;
        GV.MemDecoration = Arg2qword;
        (*pMyDisasm).Instruction.Category = SSE2_INSTRUCTION+COMPARISON_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "cmpsd ");
        #endif
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
    }
    /* ========== 0xf3 */
    else if (GV.PrefRepe == 1) {
        (*pMyDisasm).Prefix.RepPrefix = MandatoryPrefix;
        GV.MemDecoration = Arg2dword;
        (*pMyDisasm).Instruction.Category = SSE_INSTRUCTION+COMPARISON_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "cmpss ");
        #endif
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
    }
    /* ========== 0x66 */
    else if ((*pMyDisasm).Prefix.OperandSize == InUsePrefix) {
        GV.OperandSize = GV.OriginalOperandSize;
        (*pMyDisasm).Prefix.OperandSize = MandatoryPrefix;
        GV.MemDecoration = Arg2dqword;
        (*pMyDisasm).Instruction.Category = SSE2_INSTRUCTION+COMPARISON_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "cmppd ");
        #endif
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
    }
    else {
        GV.MemDecoration = Arg2dqword;
        (*pMyDisasm).Instruction.Category = SSE_INSTRUCTION+COMPARISON_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "cmpps ");
        #endif
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
    }
    (*pMyDisasm).Argument1.AccessMode = READ;
    GV.EIP_++;
    if (!Security(0, pMyDisasm)) return;
    GV.third_arg = 1;
    (*pMyDisasm).Instruction.Immediat = *((UInt8*)(UIntPtr) (GV.EIP_- 1));
    #ifndef BEA_LIGHT_DISASSEMBLY
       (void) CopyFormattedNumber(pMyDisasm, (char*) (*pMyDisasm).Argument3.ArgMnemonic, "%.2X",(Int64) *((UInt8*)(UIntPtr) (GV.EIP_- 1)));
    #endif
    (*pMyDisasm).Argument3.ArgType = CONSTANT_TYPE+ABSOLUTE_;
    (*pMyDisasm).Argument3.ArgSize = 8;

}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x8, 0x260(%rdi)
cmpl $0x1, 0x26c(%rdi)
jne 0x2064b
movb $0x8, 0x1df(%rbx)
movl $0x68, 0x210(%rbx)
movl $0x10000d, 0x60(%rbx)   # imm = 0x10000D
movl $0x73706d63, 0x68(%rbx) # imm = 0x73706D63
movl $0x206473, 0x6b(%rbx)   # imm = 0x206473
jmp 0x206d8
cmpl $0x1, 0x268(%rbx)
jne 0x2067c
movb $0x8, 0x1e0(%rbx)
movl $0x67, 0x210(%rbx)
movl $0x8000d, 0x60(%rbx)    # imm = 0x8000D
movl $0x73706d63, 0x68(%rbx) # imm = 0x73706D63
movl $0x207373, 0x6b(%rbx)   # imm = 0x207373
jmp 0x206d8
cmpb $0x1, 0x1dd(%rbx)
jne 0x206b9
movl 0x208(%rbx), %eax
movl %eax, 0x20c(%rbx)
movb $0x8, 0x1dd(%rbx)
movl $0x6c, 0x210(%rbx)
movl $0x10000d, 0x60(%rbx)   # imm = 0x10000D
movl $0x70706d63, 0x68(%rbx) # imm = 0x70706D63
movl $0x206470, 0x6b(%rbx)   # imm = 0x206470
jmp 0x206d8
movl $0x6c, 0x210(%rbx)
movl $0x8000d, 0x60(%rbx)    # imm = 0x8000D
movl $0x70706d63, 0x68(%rbx) # imm = 0x70706D63
movl $0x207370, 0x6b(%rbx)   # imm = 0x207370
movl $0x1, %ebp
movl %ebp, 0x230(%rbx)
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b196
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b24b
movl 0x244(%rbx), %eax
addl $0x2, %eax
addq 0x1f0(%rbx), %rax
movl $0x0, 0x230(%rbx)
movl %ebp, 0xe8(%rbx)
leaq 0x1(%rax), %rdx
movq %rdx, 0x1f0(%rbx)
movq 0x250(%rbx), %rsi
decq %rsi
movl $0x289, %ecx            # imm = 0x289
cmpq %rdx, %rsi
jb 0x20781
movl $0x1, 0x278(%rbx)
movzbl (%rax), %ecx
movq %rcx, 0x90(%rbx)
leaq 0x16c(%rbx), %rsi
movzbl (%rax), %ecx
leaq 0xd2ae(%rip), %rdx      # 0x2da13
movq %rbx, %rdi
callq 0x2acdf
movl $0x88000000, 0x1ac(%rbx) # imm = 0x88000000
movl $0x8, %ebp
movl $0x1b0, %ecx            # imm = 0x1B0
movl %ebp, (%rbx,%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq