// File: /workspace/github_c_makefile_star2_O2/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 0x1f293
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 0x1f320
cmpl $0x1, 0x268(%rbx)
jne 0x1f2c4
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 0x1f320
cmpb $0x1, 0x1dd(%rbx)
jne 0x1f301
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 0x1f320
movl $0x6c, 0x210(%rbx)
movl $0x8000d, 0x60(%rbx)    # imm = 0x8000D
movl $0x70706d63, 0x68(%rbx) # imm = 0x70706D63
movl $0x207370, 0x6b(%rbx)   # imm = 0x207370
pushq $0x1
popq %rbp
movl %ebp, 0x230(%rbx)
movq %rbx, %rdi
callq 0x290ce
andl $0x0, 0x230(%rbx)
movl %ebp, 0xe8(%rbx)
movq 0x1f0(%rbx), %rax
movq 0x250(%rbx), %rdx
leaq 0x1(%rax), %rsi
movq %rsi, 0x1f0(%rbx)
decq %rdx
movl $0x289, %ecx            # imm = 0x289
cmpq %rsi, %rdx
jb 0x1f3a3
movl $0x1, 0x278(%rbx)
movzbl (%rax), %ecx
movq %rcx, 0x90(%rbx)
leaq 0x16c(%rbx), %rsi
movzbl (%rax), %ecx
leaq 0xb68a(%rip), %rdx      # 0x2aa13
movq %rbx, %rdi
callq 0x283ec
movl $0x88000000, 0x1ac(%rbx) # imm = 0x88000000
pushq $0x8
popq %rbp
movl $0x1b0, %ecx            # imm = 0x1B0
movl %ebp, (%rbx,%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq