#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 fprintf(int /*<<< orphan*/, char *, char *, char *, char *);
int /*<<< orphan*/ stderr;
int usage(char *name) {
  return fprintf(
      stderr,
      "Usage: %s --bus=<bus> --address=<addr> [--type=<type>] "
      "[--offset=<bytes>]\nSimple utility to read data from i2c device.\n\n  "
      "-b, --bus         I2C bus number (0..N), required\n  -a, --address     "
      "I2C device address number (0..127) in decimal, required\n  -t, --type   "
      "     Value type to read, may be int, unsigned int and float with size "
      "in bits in format: i8 | i16 | i32 | u8 | u16 | u32 | f32 | f64 | f80. "
      "Default: i8\n  -o, --offset      Offset in bytes to skip from received "
      "data (0..N). Default: 0\n\nExamples:\n   %s -b 1 -a 16 -t i32\n   %s -b "
      "0 -a 42 --type=f32 -o 4\n",
      name, name, name);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    0xec8(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rcx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [566 x i8] c"Usage: %s --bus=<bus> --address=<addr> [--type=<type>] [--offset=<bytes>]\0ASimple utility to read data from i2c device.\0A\0A -b, --bus I2C bus number (0..N), required\0A -a, --address I2C device address number (0..127) in decimal, required\0A -t, --type Value type to read, may be int, unsigned int and float with size in bits in format: i8 | i16 | i32 | u8 | u16 | u32 | f32 | f64 | f80. Default: i8\0A -o, --offset Offset in bytes to skip from received data (0..N). Default: 0\0A\0AExamples:\0A %s -b 1 -a 16 -t i32\0A %s -b 0 -a 42 --type=f32 -o 4\0A\00"
define i32 @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 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([566 x i8], [566 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5, i8* %6)
ret i32 %7
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [566 x i8] c"Usage: %s --bus=<bus> --address=<addr> [--type=<type>] [--offset=<bytes>]\0ASimple utility to read data from i2c device.\0A\0A -b, --bus I2C bus number (0..N), required\0A -a, --address I2C device address number (0..127) in decimal, required\0A -t, --type Value type to read, may be int, unsigned int and float with size in bits in format: i8 | i16 | i32 | u8 | u16 | u32 | f32 | f64 | f80. Default: i8\0A -o, --offset Offset in bytes to skip from received data (0..N). Default: 0\0A\0AExamples:\0A %s -b 1 -a 16 -t i32\0A %s -b 0 -a 42 --type=f32 -o 4\0A\00"
define i32 @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([566 x i8], [566 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0)
ret i32 %3
}