#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
int usage(char *arg0) {
  fprintf(stderr,
          "resetprop v"
          "MAGISK_VERSION"
          "("
          "MAGISK_VER_CODE"
          ") (by topjohnwu & nkk71) - System Props Modification Tool\n\n"
          "Usage: %s [flags] [options...]\n"
          "\n"
          "Options:\n"
          "   -h, --help        show this message\n"
          "   (no arguments)    print all properties\n"
          "   NAME              get property\n"
          "   NAME VALUE        set property entry NAME with VALUE\n"
          "   --file FILE       load props from FILE\n"
          "   --delete NAME     delete property\n"
          "\n"
          "Flags:\n"
          "   -v      print verbose output to stderr\n"
          "   -n      set properties without init triggers\n"
          "           only affects setprop\n"
          "   -p      access actual persist storage\n"
          "           only affects getprop and deleteprop\n"
          "\n",
          arg0);
  return 1;
}


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
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [611 x i8] c"resetprop vMAGISK_VERSION(MAGISK_VER_CODE) (by topjohnwu & nkk71) - System Props Modification Tool\0A\0AUsage: %s [flags] [options...]\0A\0AOptions:\0A -h, --help show this message\0A (no arguments) print all properties\0A NAME get property\0A NAME VALUE set property entry NAME with VALUE\0A --file FILE load props from FILE\0A --delete NAME delete property\0A\0AFlags:\0A -v print verbose output to stderr\0A -n set properties without init triggers\0A only affects setprop\0A -p access actual persist storage\0A only affects getprop and deleteprop\0A\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 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([611 x i8], [611 x i8]* @.str, i64 0, i64 0), i8* %4)
ret i32 1
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [611 x i8] c"resetprop vMAGISK_VERSION(MAGISK_VER_CODE) (by topjohnwu & nkk71) - System Props Modification Tool\0A\0AUsage: %s [flags] [options...]\0A\0AOptions:\0A -h, --help show this message\0A (no arguments) print all properties\0A NAME get property\0A NAME VALUE set property entry NAME with VALUE\0A --file FILE load props from FILE\0A --delete NAME delete property\0A\0AFlags:\0A -v print verbose output to stderr\0A -n set properties without init triggers\0A only affects setprop\0A -p access actual persist storage\0A only affects getprop and deleteprop\0A\0A\00"
define i32 @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([611 x i8], [611 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 1
}