#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*/ GenAddGlobal(char *, int);
int /*<<< orphan*/ GenPrintLabel(char *);
int /*<<< orphan*/ isdigit(char);
int /*<<< orphan*/ printf2(char *);
int /*<<< orphan*/ puts2(char *);
void GenAddrData(int Size, char *Label) {
  if (Size == 1)
    printf2("\tdb\t");
  else if (Size == 2)
    printf2("\tdw\t");
  GenPrintLabel(Label);
  puts2("");
  if (!isdigit(*Label))
    GenAddGlobal(Label, 2);
}


x86 assembly (clang, -O0):
<GenAddrData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    117a <GenAddrData+0x2a>
lea    0xe90(%rip),%rdi
call   1030 <printf2@plt>
jmp    1195 <GenAddrData+0x45>
cmpl   $0x2,-0x4(%rbp)
jne    1190 <GenAddrData+0x40>
lea    0xe7a(%rip),%rdi
call   1030 <printf2@plt>
jmp    1195 <GenAddrData+0x45>
mov    -0x10(%rbp),%rdi
call   1060 <GenPrintLabel@plt>
lea    0xe5f(%rip),%rdi
call   1070 <puts2@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%eax
jne    11cd <GenAddrData+0x7d>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1050 <GenAddGlobal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GenAddrData>:
push   %rbx
mov    %rsi,%rbx
cmp    $0x1,%edi
je     1167 <GenAddrData+0x17>
cmp    $0x2,%edi
jne    1173 <GenAddrData+0x23>
lea    0xea0(%rip),%rdi
jmp    116e <GenAddrData+0x1e>
lea    0xe92(%rip),%rdi
call   1030 <printf2@plt>
mov    %rbx,%rdi
call   1060 <GenPrintLabel@plt>
lea    0xe82(%rip),%rdi
call   1070 <puts2@plt>
movsbl (%rbx),%edi
call   1040 <isdigit@plt>
test   %eax,%eax
je     1195 <GenAddrData+0x45>
pop    %rbx
ret
mov    %rbx,%rdi
mov    $0x2,%esi
pop    %rbx
jmp    1050 <GenAddGlobal@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"\09db\09\00"
@.str.1 = [5 x i8] c"\09dw\09\00"
@.str.2 = [1 x i8] zeroinitializer
define void @GenAddrData(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i32, i32* %3
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = call i32 @printf2(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %15
9: ; preds = %2
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @printf2(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %9
br label %15
15: ; preds = %14, %7
%16 = load i8*, i8** %4
%17 = call i32 @GenPrintLabel(i8* %16)
%18 = call i32 @puts2(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%19 = load i8*, i8** %4
%20 = load i8, i8* %19
%21 = call i32 @isdigit(i8 signext %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %15
%24 = load i8*, i8** %4
%25 = call i32 @GenAddGlobal(i8* %24, i32 2)
br label %26
26: ; preds = %23, %15
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"\09db\09\00"
@.str.1 = [5 x i8] c"\09dw\09\00"
@.str.2 = [1 x i8] zeroinitializer
define void @GenAddrData(i32 %0, i8* %1) {
switch i32 %0, label %7 [
i32 1, label %4
i32 2, label %3
]
3: ; preds = %2
br label %4
4: ; preds = %2, %3
%5 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %2 ]
%6 = tail call i32 @printf2(i8* %5)
br label %7
7: ; preds = %4, %2
%8 = tail call i32 @GenPrintLabel(i8* %1)
%9 = tail call i32 @puts2(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%10 = load i8, i8* %1
%11 = tail call i32 @isdigit(i8 signext %10)
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %7
%14 = tail call i32 @GenAddGlobal(i8* %1, i32 2)
br label %15
15: ; preds = %13, %7
ret void
}