#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ GenPrintInstr(int, int);
int /*<<< orphan*/ GenPrintNewLine();
int /*<<< orphan*/ GenPrintOperand(int, int);
int /*<<< orphan*/ GenPrintOperandSeparator();
void GenPrintInstr2Operands(int instr, int instrval, int operand1,
                            int operand1val, int operand2, int operand2val) {
  if (operand2 == 0x80 && operand2val == 0 && (instr == 0x11 || instr == 0x12))
    return;
  GenPrintInstr(instr, instrval);
  GenPrintOperand(operand1, operand1val);
  GenPrintOperandSeparator();
  GenPrintOperand(operand2, operand2val);
  GenPrintNewLine();
}


x86 assembly (clang, -O0):
<GenPrintInstr2Operands>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
cmpl   $0x80,-0x14(%rbp)
jne    118c <GenPrintInstr2Operands+0x4c>
cmpl   $0x0,-0x18(%rbp)
jne    118c <GenPrintInstr2Operands+0x4c>
cmpl   $0x11,-0x4(%rbp)
je     1187 <GenPrintInstr2Operands+0x47>
cmpl   $0x12,-0x4(%rbp)
jne    118c <GenPrintInstr2Operands+0x4c>
jmp    11bb <GenPrintInstr2Operands+0x7b>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <GenPrintInstr@plt>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1050 <GenPrintOperand@plt>
mov    $0x0,%al
call   1030 <GenPrintOperandSeparator@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1050 <GenPrintOperand@plt>
mov    $0x0,%al
call   1060 <GenPrintNewLine@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GenPrintInstr2Operands>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r9d,%ebx
mov    %r8d,%ebp
mov    %ecx,%r14d
mov    %edx,%r15d
lea    -0x11(%rdi),%eax
cmp    $0x1,%eax
ja     1172 <GenPrintInstr2Operands+0x32>
cmp    $0x80,%ebp
jne    1172 <GenPrintInstr2Operands+0x32>
test   %ebx,%ebx
jne    1172 <GenPrintInstr2Operands+0x32>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
call   1040 <GenPrintInstr@plt>
mov    %r15d,%edi
mov    %r14d,%esi
call   1050 <GenPrintOperand@plt>
xor    %eax,%eax
call   1030 <GenPrintOperandSeparator@plt>
mov    %ebp,%edi
mov    %ebx,%esi
call   1050 <GenPrintOperand@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <GenPrintNewLine@plt>

LLVM IR (-O0):
define void @GenPrintInstr2Operands(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i32, i32* %11
%14 = icmp eq i32 %13, 128
br i1 %14, label %15, label %25
15: ; preds = %6
%16 = load i32, i32* %12
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = load i32, i32* %7
%20 = icmp eq i32 %19, 17
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, i32* %7
%23 = icmp eq i32 %22, 18
br i1 %23, label %24, label %25
24: ; preds = %21, %18
br label %37
25: ; preds = %21, %15, %6
%26 = load i32, i32* %7
%27 = load i32, i32* %8
%28 = call i32 @GenPrintInstr(i32 %26, i32 %27)
%29 = load i32, i32* %9
%30 = load i32, i32* %10
%31 = call i32 @GenPrintOperand(i32 %29, i32 %30)
%32 = call i32 (...) @GenPrintOperandSeparator()
%33 = load i32, i32* %11
%34 = load i32, i32* %12
%35 = call i32 @GenPrintOperand(i32 %33, i32 %34)
%36 = call i32 (...) @GenPrintNewLine()
br label %37
37: ; preds = %25, %24
ret void
}

LLVM IR (-O2):
define void @GenPrintInstr2Operands(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = icmp eq i32 %4, 128
%8 = icmp eq i32 %5, 0
%9 = and i1 %7, %8
%10 = add i32 %0, -17
%11 = icmp ult i32 %10, 2
%12 = and i1 %11, %9
br i1 %12, label %19, label %13
13: ; preds = %6
%14 = tail call i32 @GenPrintInstr(i32 %0, i32 %1)
%15 = tail call i32 @GenPrintOperand(i32 %2, i32 %3)
%16 = tail call i32 (...) @GenPrintOperandSeparator()
%17 = tail call i32 @GenPrintOperand(i32 %4, i32 %5)
%18 = tail call i32 (...) @GenPrintNewLine()
br label %19
19: ; preds = %6, %13
ret void
}