#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*/ Inst_Printf(char *, char *, ...);
int Call_C_Arg_String(int offset, int str_no) {
  switch (offset) {
  case 0:
    Inst_Printf("lda", "$16,%s%d", "$LC", str_no);
    break;
  case 1:
    Inst_Printf("lda", "$17,%s%d", "$LC", str_no);
    break;
  case 2:
    Inst_Printf("lda", "$18,%s%d", "$LC", str_no);
    break;
  case 3:
    Inst_Printf("lda", "$19,%s%d", "$LC", str_no);
    break;
  case 4:
    Inst_Printf("lda", "$20,%s%d", "$LC", str_no);
    break;
  case 5:
    Inst_Printf("lda", "$21,%s%d", "$LC", str_no);
    break;
  default:
    Inst_Printf("lda", "$1,%s%d", "$LC", str_no);
    Inst_Printf("stq", "$1,%d($30)", (offset - 6) * 8);
  }
  return 1;
}


x86 assembly (clang, -O0):
<Call_C_Arg_String>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %rax,-0x10(%rbp)
sub    $0x5,%rax
ja     121b <Call_C_Arg_String+0x10b>
mov    -0x10(%rbp),%rax
lea    0xec6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%ecx
lea    0xecb(%rip),%rdi
lea    0xec8(%rip),%rsi
lea    0xeca(%rip),%rdx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
jmp    1258 <Call_C_Arg_String+0x148>
mov    -0x8(%rbp),%ecx
lea    0xea7(%rip),%rdi
lea    0xeb1(%rip),%rsi
lea    0xea6(%rip),%rdx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
jmp    1258 <Call_C_Arg_String+0x148>
mov    -0x8(%rbp),%ecx
lea    0xe83(%rip),%rdi
lea    0xe96(%rip),%rsi
lea    0xe82(%rip),%rdx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
jmp    1258 <Call_C_Arg_String+0x148>
mov    -0x8(%rbp),%ecx
lea    0xe5f(%rip),%rdi
lea    0xe7b(%rip),%rsi
lea    0xe5e(%rip),%rdx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
jmp    1258 <Call_C_Arg_String+0x148>
mov    -0x8(%rbp),%ecx
lea    0xe3b(%rip),%rdi
lea    0xe60(%rip),%rsi
lea    0xe3a(%rip),%rdx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
jmp    1258 <Call_C_Arg_String+0x148>
mov    -0x8(%rbp),%ecx
lea    0xe17(%rip),%rdi
lea    0xe45(%rip),%rsi
lea    0xe16(%rip),%rdx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
jmp    1258 <Call_C_Arg_String+0x148>
mov    -0x8(%rbp),%ecx
lea    0xdf3(%rip),%rdi
lea    0xe2a(%rip),%rsi
lea    0xdf2(%rip),%rdx
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
mov    -0x4(%rbp),%edx
sub    $0x6,%edx
shl    $0x3,%edx
lea    0xe14(%rip),%rdi
lea    0xe11(%rip),%rsi
mov    $0x0,%al
call   1030 <Inst_Printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Call_C_Arg_String>:
push   %rbx
mov    %esi,%ecx
mov    %edi,%ebx
cmp    $0x5,%edi
ja     113f <Call_C_Arg_String+0x2f>
mov    %ebx,%eax
lea    0xedd(%rip),%rdx
movslq (%rdx,%rax,4),%rax
add    %rdx,%rax
jmp    *%rax
lea    0xee5(%rip),%rdi
lea    0xee2(%rip),%rsi
jmp    11c7 <Call_C_Arg_String+0xb7>
lea    0xed2(%rip),%rdi
lea    0xf09(%rip),%rsi
lea    0xed1(%rip),%rdx
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
lea    -0x30(,%rbx,8),%edx
lea    0xef5(%rip),%rdi
lea    0xef2(%rip),%rsi
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
jmp    11d5 <Call_C_Arg_String+0xc5>
lea    0xe98(%rip),%rdi
lea    0xea2(%rip),%rsi
jmp    11c7 <Call_C_Arg_String+0xb7>
lea    0xe88(%rip),%rdi
lea    0xe9b(%rip),%rsi
jmp    11c7 <Call_C_Arg_String+0xb7>
lea    0xe78(%rip),%rdi
lea    0xe94(%rip),%rsi
jmp    11c7 <Call_C_Arg_String+0xb7>
lea    0xe68(%rip),%rdi
lea    0xe8d(%rip),%rsi
jmp    11c7 <Call_C_Arg_String+0xb7>
lea    0xe58(%rip),%rdi
lea    0xe86(%rip),%rsi
lea    0xe57(%rip),%rdx
xor    %eax,%eax
call   1030 <Inst_Printf@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"lda\00"
@.str.1 = [9 x i8] c"$16,%s%d\00"
@.str.2 = [4 x i8] c"$LC\00"
@.str.3 = [9 x i8] c"$17,%s%d\00"
@.str.4 = [9 x i8] c"$18,%s%d\00"
@.str.5 = [9 x i8] c"$19,%s%d\00"
@.str.6 = [9 x i8] c"$20,%s%d\00"
@.str.7 = [9 x i8] c"$21,%s%d\00"
@.str.8 = [8 x i8] c"$1,%s%d\00"
@.str.9 = [4 x i8] c"stq\00"
@.str.10 = [11 x i8] c"$1,%d($30)\00"
define i32 @Call_C_Arg_String(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
switch i32 %5, label %24 [
i32 0, label %6
i32 1, label %9
i32 2, label %12
i32 3, label %15
i32 4, label %18
i32 5, label %21
]
6: ; preds = %2
%7 = load i32, i32* %4
%8 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %7)
br label %31
9: ; preds = %2
%10 = load i32, i32* %4
%11 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %10)
br label %31
12: ; preds = %2
%13 = load i32, i32* %4
%14 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %13)
br label %31
15: ; preds = %2
%16 = load i32, i32* %4
%17 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %16)
br label %31
18: ; preds = %2
%19 = load i32, i32* %4
%20 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %19)
br label %31
21: ; preds = %2
%22 = load i32, i32* %4
%23 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %22)
br label %31
24: ; preds = %2
%25 = load i32, i32* %4
%26 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %3
%28 = sub nsw i32 %27, 6
%29 = mul nsw i32 %28, 8
%30 = call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 %29)
br label %31
31: ; preds = %24, %21, %18, %15, %12, %9, %6
ret i32 1
}

LLVM IR (-O2):
@.str = [4 x i8] c"lda\00"
@.str.1 = [9 x i8] c"$16,%s%d\00"
@.str.2 = [4 x i8] c"$LC\00"
@.str.3 = [9 x i8] c"$17,%s%d\00"
@.str.4 = [9 x i8] c"$18,%s%d\00"
@.str.5 = [9 x i8] c"$19,%s%d\00"
@.str.6 = [9 x i8] c"$20,%s%d\00"
@.str.7 = [9 x i8] c"$21,%s%d\00"
@.str.8 = [8 x i8] c"$1,%s%d\00"
@.str.9 = [4 x i8] c"stq\00"
@.str.10 = [11 x i8] c"$1,%d($30)\00"
define i32 @Call_C_Arg_String(i32 %0, i32 %1) {
switch i32 %0, label %15 [
i32 0, label %3
i32 1, label %5
i32 2, label %7
i32 3, label %9
i32 4, label %11
i32 5, label %13
]
3: ; preds = %2
%4 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %1)
br label %20
5: ; preds = %2
%6 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %1)
br label %20
7: ; preds = %2
%8 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %1)
br label %20
9: ; preds = %2
%10 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %1)
br label %20
11: ; preds = %2
%12 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %1)
br label %20
13: ; preds = %2
%14 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %1)
br label %20
15: ; preds = %2
%16 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %1)
%17 = shl i32 %0, 3
%18 = add i32 %17, -48
%19 = tail call i32 (i8*, i8*, ...) @Inst_Printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 %18)
br label %20
20: ; preds = %15, %13, %11, %9, %7, %5, %3
ret i32 1
}