// File: /workspace/github_c_makefile_star2_O1/buptlxb[P]xRay/disasm/instr_set/opcodes_SSE.c
// Function: pinsrw_
void __bea_callspec__ pinsrw_(PDISASM pMyDisasm)
{
    /* ========== 0x66 */
    if ((*pMyDisasm).Prefix.OperandSize == InUsePrefix) {
        GV.OperandSize = GV.OriginalOperandSize;
        (*pMyDisasm).Prefix.OperandSize = MandatoryPrefix;
        (*pMyDisasm).Instruction.Category = SSE_INSTRUCTION+SIMD64bits;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "pinsrw ");
        #endif
        GV.MemDecoration = Arg2word;
        GV.ImmediatSize = 8;
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.SSE_ = 1;
        Reg_Opcode(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.SSE_ = 0;
        GV.EIP_ += GV.DECALAGE_EIP+3;
        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;


    }
    else {
        (*pMyDisasm).Instruction.Category = SSE_INSTRUCTION+SIMD64bits;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "pinsrw ");
        #endif
        GV.MemDecoration = Arg2word;
        GV.ImmediatSize = 8;
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.MMX_ = 1;
        Reg_Opcode(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.MMX_ = 0;
        GV.EIP_ += GV.DECALAGE_EIP+3;
        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 %rbx
movq %rdi, %rbx
movabsq $0x207772736e6970, %rax # imm = 0x207772736E6970
cmpb $0x1, 0x1dd(%rdi)
jne 0x20822
movl 0x208(%rbx), %ecx
movl %ecx, 0x20c(%rbx)
movb $0x8, 0x1dd(%rbx)
movl $0x80018, 0x60(%rbx)    # imm = 0x80018
movq %rax, 0x68(%rbx)
movl $0x66, 0x210(%rbx)
movl $0x8, 0x260(%rbx)
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b196
movl $0x1, 0x230(%rbx)
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b24b
movl $0x0, 0x230(%rbx)
jmp 0x20873
movl $0x80018, 0x60(%rbx)    # imm = 0x80018
movq %rax, 0x68(%rbx)
movl $0x66, 0x210(%rbx)
movl $0x8, 0x260(%rbx)
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b196
movl $0x1, 0x22c(%rbx)
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b24b
movl $0x0, 0x22c(%rbx)
movl 0x244(%rbx), %eax
addl $0x3, %eax
addq 0x1f0(%rbx), %rax
movq %rax, 0x1f0(%rbx)
movq 0x250(%rbx), %rcx
decq %rcx
cmpq %rax, %rcx
jae 0x208a5
movl $0x1, %eax
movl $0x289, %ecx            # imm = 0x289
jmp 0x208e8
movl $0x1, 0x278(%rbx)
movzbl -0x1(%rax), %ecx
movq %rcx, 0x90(%rbx)
leaq 0x16c(%rbx), %rsi
movzbl -0x1(%rax), %ecx
leaq 0xd147(%rip), %rdx      # 0x2da13
movq %rbx, %rdi
callq 0x2acdf
movl $0x88000000, 0x1ac(%rbx) # imm = 0x88000000
movl $0x8, %eax
movl $0x1b0, %ecx            # imm = 0x1B0
movl %eax, (%rbx,%rcx)
popq %rbx
retq