#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *,
                           char const *, char const *, char const *,
                           char const *);
int /*<<< orphan*/ stderr;
void usage(const char *name) {
  fprintf(
      stderr,
      "usage: %s [-p] file\n"
      "       %s -d\n"
      "       %s -e\n"
      "       %s -b pin_setup\n"
      "       %s\n\n"
      "  -b pin_setup\n"
      "    Perform a boundary scan. pin_setup sets all 14 pins in this order:\n"
      "    P0_0, P0_1, ..., P0_7, P2_0, ..., P2_5.\n"
      "    Pins can be set to 0, 1, or R (pull-up). Dots can be used to "
      "structure\n"
      "    the bit string. Prints what the pins read back (0 or 1) in the "
      "same\n"
      "    order, with a dot between P0 and P2.\n"
      "  -d  dump Flash content\n"
      "  -e  erase whole Flash\n"
      "  -p  Protect the data after writing\n"
      "Invocation without argument resets the F326.\n",
      name, name, name, name, name);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    -0x8(%rbp),%r8
mov    -0x8(%rbp),%r9
mov    -0x8(%rbp),%rax
lea    0xeb0(%rip),%rsi
mov    %rax,(%rsp)
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rcx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
mov    %rcx,(%rsp)
lea    0xec8(%rip),%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [530 x i8] c"usage: %s [-p] file\0A %s -d\0A %s -e\0A %s -b pin_setup\0A %s\0A\0A -b pin_setup\0A Perform a boundary scan. pin_setup sets all 14 pins in this order:\0A P0_0, P0_1, ..., P0_7, P2_0, ..., P2_5.\0A Pins can be set to 0, 1, or R (pull-up). Dots can be used to structure\0A the bit string. Prints what the pins read back (0 or 1) in the same\0A order, with a dot between P0 and P2.\0A -d dump Flash content\0A -e erase whole Flash\0A -p Protect the data after writing\0AInvocation without argument resets the F326.\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = load i8*, i8** %2
%7 = load i8*, i8** %2
%8 = load i8*, i8** %2
%9 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([530 x i8], [530 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5, i8* %6, i8* %7, i8* %8)
%10 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [530 x i8] c"usage: %s [-p] file\0A %s -d\0A %s -e\0A %s -b pin_setup\0A %s\0A\0A -b pin_setup\0A Perform a boundary scan. pin_setup sets all 14 pins in this order:\0A P0_0, P0_1, ..., P0_7, P2_0, ..., P2_5.\0A Pins can be set to 0, 1, or R (pull-up). Dots can be used to structure\0A the bit string. Prints what the pins read back (0 or 1) in the same\0A order, with a dot between P0 and P2.\0A -d dump Flash content\0A -e erase whole Flash\0A -p Protect the data after writing\0AInvocation without argument resets the F326.\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([530 x i8], [530 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0, i8* %0, i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}