#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*/ fputs(char const *const, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void output_usage() {
  int n;
  static const char *const MesUsage[] = {
      "AVRPP - AVR Parallel Programming tool R0.42T1 (C)ChaN,2010  "
      "http://elm-chan.org/\n",
      " Tomasz Wasilczyk's branch https://www.wasilczyk.pl/\n\n",
      "Write code and/or data  : <hex file> [<hex file>] ...\n",
      "Verify code and/or data : -v <hex file> [<hex file>] ...\n",
      "Read code, data or fuse : -r{p|e|f}\n",
      "Write fuse byte         : -f{l|h|x}[<bin>]\n",
      "Lock device             : -l[<bin>]\n",
      "Erase device            : -e\n",
      "Copy calibration bytes  : -c\n",
      "Control port [-p1]      : -p<n>\n",
      "Control port address    : -p0x<hex>\n",
      "For more options, refer avrx32.txt.\n\n",
      "Supported Device:\n",
      "AT90S 1200,2313,2323,2333,2343,4414,4433,4434,8515,8535\n",
      "ATtiny "
      "11,12,13,15,22,24,25,26,28,43U,44,45,48,84,85,87,88,167,261,461,861,"
      "2313\n",
      "ATmega "
      "8,16,32,48,48P,64,88,88P,103,128,161,162,163,164P,165,168,168P,169,323,"
      "324P,324PA,325/329,325P,3250P,328P,406,603,640,644,644P,645/"
      "649,1280,1281,2560,2561,3250/3290,6450/6490,8515,8535\n",
      "AT90CAN32,64,128, AT90PWM 2,3,216,316\n",
      NULL};
  for (n = 0; MesUsage[n] != NULL; n++)
    fputs(MesUsage[n], stderr);
}


x86 assembly (clang, -O0):
<output_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movslq -0x4(%rbp),%rcx
lea    0x2c56(%rip),%rax
cmpq   $0x0,(%rax,%rcx,8)
je     1160 <output_usage+0x50>
movslq -0x4(%rbp),%rcx
lea    0x2c40(%rip),%rax
mov    (%rax,%rcx,8),%rdi
mov    0x2e8d(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <output_usage+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%esi
lea    0xedf(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf23(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf4c(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf75(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfa1(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfb8(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfd6(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfed(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xffd(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x100d(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1020(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1037(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x104f(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1054(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x107f(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x10c2(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1175(%rip),%rdi
pop    %rbx
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@output_usage.MesUsage = internal constant [18 x i8*] [i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([193 x i8], [193 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.16, i32 0, i32 0), i8* null]
@.str = [82 x i8] c"AVRPP - AVR Parallel Programming tool R0.42T1 (C)ChaN,2010 http://elm-chan.org/\0A\00"
@.str.1 = [55 x i8] c" Tomasz Wasilczyk's branch https://www.wasilczyk.pl/\0A\0A\00"
@.str.2 = [55 x i8] c"Write code and/or data : <hex file> [<hex file>] ...\0A\00"
@.str.3 = [58 x i8] c"Verify code and/or data : -v <hex file> [<hex file>] ...\0A\00"
@.str.4 = [37 x i8] c"Read code, data or fuse : -r{p|e|f}\0A\00"
@.str.5 = [44 x i8] c"Write fuse byte : -f{l|h|x}[<bin>]\0A\00"
@.str.6 = [37 x i8] c"Lock device : -l[<bin>]\0A\00"
@.str.7 = [30 x i8] c"Erase device : -e\0A\00"
@.str.8 = [30 x i8] c"Copy calibration bytes : -c\0A\00"
@.str.9 = [33 x i8] c"Control port [-p1] : -p<n>\0A\00"
@.str.10 = [37 x i8] c"Control port address : -p0x<hex>\0A\00"
@.str.11 = [38 x i8] c"For more options, refer avrx32.txt.\0A\0A\00"
@.str.12 = [19 x i8] c"Supported Device:\0A\00"
@.str.13 = [57 x i8] c"AT90S 1200,2313,2323,2333,2343,4414,4433,4434,8515,8535\0A\00"
@.str.14 = [81 x i8] c"ATtiny 11,12,13,15,22,24,25,26,28,43U,44,45,48,84,85,87,88,167,261,461,861,2313\0A\00"
@.str.15 = [193 x i8] c"ATmega 8,16,32,48,48P,64,88,88P,103,128,161,162,163,164P,165,168,168P,169,323,324P,324PA,325/329,325P,3250P,328P,406,603,640,644,644P,645/649,1280,1281,2560,2561,3250/3290,6450/6490,8515,8535\0A\00"
@.str.16 = [39 x i8] c"AT90CAN32,64,128, AT90PWM 2,3,216,316\0A\00"
@stderr = global i32 0
define void @output_usage() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %15, %0
%3 = load i32, i32* %1
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds [18 x i8*], [18 x i8*]* @output_usage.MesUsage, i64 0, i64 %4
%6 = load i8*, i8** %5
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %18
8: ; preds = %2
%9 = load i32, i32* %1
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [18 x i8*], [18 x i8*]* @output_usage.MesUsage, i64 0, i64 %10
%12 = load i8*, i8** %11
%13 = load i32, i32* @stderr
%14 = call i32 @fputs(i8* %12, i32 %13)
br label %15
15: ; preds = %8
%16 = load i32, i32* %1
%17 = add nsw i32 %16, 1
store i32 %17, i32* %1
br label %2
18: ; preds = %2
ret void
}

LLVM IR (-O2):
@.str = [82 x i8] c"AVRPP - AVR Parallel Programming tool R0.42T1 (C)ChaN,2010 http://elm-chan.org/\0A\00"
@.str.1 = [55 x i8] c" Tomasz Wasilczyk's branch https://www.wasilczyk.pl/\0A\0A\00"
@.str.2 = [55 x i8] c"Write code and/or data : <hex file> [<hex file>] ...\0A\00"
@.str.3 = [58 x i8] c"Verify code and/or data : -v <hex file> [<hex file>] ...\0A\00"
@.str.4 = [37 x i8] c"Read code, data or fuse : -r{p|e|f}\0A\00"
@.str.5 = [44 x i8] c"Write fuse byte : -f{l|h|x}[<bin>]\0A\00"
@.str.6 = [37 x i8] c"Lock device : -l[<bin>]\0A\00"
@.str.7 = [30 x i8] c"Erase device : -e\0A\00"
@.str.8 = [30 x i8] c"Copy calibration bytes : -c\0A\00"
@.str.9 = [33 x i8] c"Control port [-p1] : -p<n>\0A\00"
@.str.10 = [37 x i8] c"Control port address : -p0x<hex>\0A\00"
@.str.11 = [38 x i8] c"For more options, refer avrx32.txt.\0A\0A\00"
@.str.12 = [19 x i8] c"Supported Device:\0A\00"
@.str.13 = [57 x i8] c"AT90S 1200,2313,2323,2333,2343,4414,4433,4434,8515,8535\0A\00"
@.str.14 = [81 x i8] c"ATtiny 11,12,13,15,22,24,25,26,28,43U,44,45,48,84,85,87,88,167,261,461,861,2313\0A\00"
@.str.15 = [193 x i8] c"ATmega 8,16,32,48,48P,64,88,88P,103,128,161,162,163,164P,165,168,168P,169,323,324P,324PA,325/329,325P,3250P,328P,406,603,640,644,644P,645/649,1280,1281,2560,2561,3250/3290,6450/6490,8515,8535\0A\00"
@.str.16 = [39 x i8] c"AT90CAN32,64,128, AT90PWM 2,3,216,316\0A\00"
@stderr = global i32 0
define void @output_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = tail call i32 @fputs(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = tail call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = tail call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stderr
%20 = tail call i32 @fputs(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stderr
%22 = tail call i32 @fputs(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @stderr
%24 = tail call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @stderr
%26 = tail call i32 @fputs(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @stderr
%28 = tail call i32 @fputs(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = load i32, i32* @stderr
%30 = tail call i32 @fputs(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @stderr
%32 = tail call i32 @fputs(i8* getelementptr inbounds ([193 x i8], [193 x i8]* @.str.15, i64 0, i64 0), i32 %31)
%33 = load i32, i32* @stderr
%34 = tail call i32 @fputs(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.16, i64 0, i64 0), i32 %33)
ret void
}