#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*/ GenExtendRegAIfNeeded(int);
int /*<<< orphan*/ GenPrintInstr1Operand(int, int /*<<< orphan*/,
                                         int /*<<< orphan*/, int);
int /*<<< orphan*/ GenPrintInstr2Operands(int, int /*<<< orphan*/,
                                          int /*<<< orphan*/,
                                          int /*<<< orphan*/, int, int);
int /*<<< orphan*/ GenSelectByteOrWord(int, int);
void GenIncDecIdent(int opSz, int label, int tok) {
  int instr = 0x07;
  if (tok != 12)
    instr = 0x08;
  GenPrintInstr1Operand(instr, 0, GenSelectByteOrWord(0x14, opSz), label);
  GenPrintInstr2Operands(0x00, 0, GenSelectByteOrWord(0x0B, opSz), 0, 0x10,
                         label);
  GenExtendRegAIfNeeded(opSz);
}


x86 assembly (clang, -O0):
<GenIncDecIdent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movl   $0x7,-0x10(%rbp)
cmpl   $0xc,-0xc(%rbp)
je     1169 <GenIncDecIdent+0x29>
movl   $0x8,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x14,%edi
call   1030 <GenSelectByteOrWord@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%edx
mov    -0x8(%rbp),%ecx
xor    %esi,%esi
call   1050 <GenPrintInstr1Operand@plt>
mov    -0x4(%rbp),%esi
mov    $0xb,%edi
call   1030 <GenSelectByteOrWord@plt>
mov    %eax,%edx
mov    -0x8(%rbp),%r9d
xor    %ecx,%ecx
mov    $0x10,%r8d
mov    %ecx,%edi
mov    %ecx,%esi
call   1040 <GenPrintInstr2Operands@plt>
mov    -0x4(%rbp),%edi
call   1060 <GenExtendRegAIfNeeded@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GenIncDecIdent>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %edi,%ebx
xor    %eax,%eax
cmp    $0xc,%edx
sete   %al
mov    $0x8,%ebp
sub    %eax,%ebp
mov    $0x14,%edi
mov    %ebx,%esi
call   1030 <GenSelectByteOrWord@plt>
mov    %ebp,%edi
xor    %esi,%esi
mov    %eax,%edx
mov    %r14d,%ecx
call   1050 <GenPrintInstr1Operand@plt>
mov    $0xb,%edi
mov    %ebx,%esi
call   1030 <GenSelectByteOrWord@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %eax,%edx
xor    %ecx,%ecx
mov    $0x10,%r8d
mov    %r14d,%r9d
call   1040 <GenPrintInstr2Operands@plt>
mov    %ebx,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <GenExtendRegAIfNeeded@plt>

LLVM IR (-O0):
define void @GenIncDecIdent(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 7, i32* %7
%8 = load i32, i32* %6
%9 = icmp ne i32 %8, 12
br i1 %9, label %10, label %11
10: ; preds = %3
store i32 8, i32* %7
br label %11
11: ; preds = %10, %3
%12 = load i32, i32* %7
%13 = load i32, i32* %4
%14 = call i32 @GenSelectByteOrWord(i32 20, i32 %13)
%15 = load i32, i32* %5
%16 = call i32 @GenPrintInstr1Operand(i32 %12, i32 0, i32 %14, i32 %15)
%17 = load i32, i32* %4
%18 = call i32 @GenSelectByteOrWord(i32 11, i32 %17)
%19 = load i32, i32* %5
%20 = call i32 @GenPrintInstr2Operands(i32 0, i32 0, i32 %18, i32 0, i32 16, i32 %19)
%21 = load i32, i32* %4
%22 = call i32 @GenExtendRegAIfNeeded(i32 %21)
ret void
}

LLVM IR (-O2):
define void @GenIncDecIdent(i32 %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %2, 12
%5 = select i1 %4, i32 7, i32 8
%6 = tail call i32 @GenSelectByteOrWord(i32 20, i32 %0)
%7 = tail call i32 @GenPrintInstr1Operand(i32 %5, i32 0, i32 %6, i32 %1)
%8 = tail call i32 @GenSelectByteOrWord(i32 11, i32 %0)
%9 = tail call i32 @GenPrintInstr2Operands(i32 0, i32 0, i32 %8, i32 0, i32 16, i32 %1)
%10 = tail call i32 @GenExtendRegAIfNeeded(i32 %0)
ret void
}