#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 GenPrintInstr3Operands(int instr, int instrval, int operand1,
                            int operand1val, int operand2, int operand2val,
                            int operand3, int operand3val) {
  GenPrintInstr(instr, instrval);
  GenPrintOperand(operand1, operand1val);
  GenPrintOperandSeparator();
  GenPrintOperand(operand2, operand2val);
  GenPrintOperandSeparator();
  GenPrintOperand(operand3, operand3val);
  GenPrintNewLine();
}


x86 assembly (clang, -O0):
<GenPrintInstr3Operands>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
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   1030 <GenPrintOperandSeparator@plt>
mov    0x10(%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):
<GenPrintInstr3Operands>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %ecx,%ebx
mov    %edx,%ebp
mov    0x40(%rsp),%r12d
mov    0x48(%rsp),%r13d
call   1040 <GenPrintInstr@plt>
mov    %ebp,%edi
mov    %ebx,%esi
call   1050 <GenPrintOperand@plt>
xor    %eax,%eax
call   1030 <GenPrintOperandSeparator@plt>
mov    %r15d,%edi
mov    %r14d,%esi
call   1050 <GenPrintOperand@plt>
xor    %eax,%eax
call   1030 <GenPrintOperandSeparator@plt>
mov    %r12d,%edi
mov    %r13d,%esi
call   1050 <GenPrintOperand@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <GenPrintNewLine@plt>

LLVM IR (-O0):
define void @GenPrintInstr3Operands(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load i32, i32* %9
%18 = load i32, i32* %10
%19 = call i32 @GenPrintInstr(i32 %17, i32 %18)
%20 = load i32, i32* %11
%21 = load i32, i32* %12
%22 = call i32 @GenPrintOperand(i32 %20, i32 %21)
%23 = call i32 (...) @GenPrintOperandSeparator()
%24 = load i32, i32* %13
%25 = load i32, i32* %14
%26 = call i32 @GenPrintOperand(i32 %24, i32 %25)
%27 = call i32 (...) @GenPrintOperandSeparator()
%28 = load i32, i32* %15
%29 = load i32, i32* %16
%30 = call i32 @GenPrintOperand(i32 %28, i32 %29)
%31 = call i32 (...) @GenPrintNewLine()
ret void
}

LLVM IR (-O2):
define void @GenPrintInstr3Operands(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = tail call i32 @GenPrintInstr(i32 %0, i32 %1)
%10 = tail call i32 @GenPrintOperand(i32 %2, i32 %3)
%11 = tail call i32 (...) @GenPrintOperandSeparator()
%12 = tail call i32 @GenPrintOperand(i32 %4, i32 %5)
%13 = tail call i32 (...) @GenPrintOperandSeparator()
%14 = tail call i32 @GenPrintOperand(i32 %6, i32 %7)
%15 = tail call i32 (...) @GenPrintNewLine()
ret void
}