#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 GenPostIncDecLocal(int opSz, int ofs, int tok) {
  int instr = 0x07;
  if (tok != 'Q')
    instr = 0x08;
  GenPrintInstr2Operands(0x00, 0, GenSelectByteOrWord(0x0B, opSz), 0, 0x15,
                         ofs);
  GenExtendRegAIfNeeded(opSz);
  GenPrintInstr1Operand(instr, 0, GenSelectByteOrWord(0x19, opSz), ofs);
}


x86 assembly (clang, -O0):
<GenPostIncDecLocal>:
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   $0x51,-0xc(%rbp)
je     1169 <GenPostIncDecLocal+0x29>
movl   $0x8,-0x10(%rbp)
mov    -0x4(%rbp),%esi
mov    $0xb,%edi
call   1030 <GenSelectByteOrWord@plt>
mov    %eax,%edx
mov    -0x8(%rbp),%r9d
xor    %ecx,%ecx
mov    $0x15,%r8d
mov    %ecx,%edi
mov    %ecx,%esi
call   1040 <GenPrintInstr2Operands@plt>
mov    -0x4(%rbp),%edi
call   1060 <GenExtendRegAIfNeeded@plt>
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x19,%edi
call   1030 <GenSelectByteOrWord@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%edx
mov    -0x8(%rbp),%ecx
xor    %esi,%esi
call   1050 <GenPrintInstr1Operand@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @GenPostIncDecLocal(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, 81
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* %4
%13 = call i32 @GenSelectByteOrWord(i32 11, i32 %12)
%14 = load i32, i32* %5
%15 = call i32 @GenPrintInstr2Operands(i32 0, i32 0, i32 %13, i32 0, i32 21, i32 %14)
%16 = load i32, i32* %4
%17 = call i32 @GenExtendRegAIfNeeded(i32 %16)
%18 = load i32, i32* %7
%19 = load i32, i32* %4
%20 = call i32 @GenSelectByteOrWord(i32 25, i32 %19)
%21 = load i32, i32* %5
%22 = call i32 @GenPrintInstr1Operand(i32 %18, i32 0, i32 %20, i32 %21)
ret void
}

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