#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*/ printf(char *);
void usage(void) {
  printf("chntpw: change password of a user in a NT/2k/XP/2k3/Vista SAM file, "
         "or invoke registry editor.\n"
         "chntpw [OPTIONS] <samfile> [systemfile] [securityfile] "
         "[otherreghive] [...]\n"
         " -h          This message\n"
         " -u <user>   Username to change, Administrator is default\n"
         " -l          list all users in SAM file\n"
         " -i          Interactive. List users (as -l) then ask for username "
         "to change\n"
         " -e          Registry editor. Now with full write support!\n"
         " -d          Enter buffer debugger instead (hex editor), \n"
         " -t          Trace. Show hexdump of structs/segments. (deprecated "
         "debug function)\n"
         " -v          Be a little more verbose (for debuging)\n"
         " -L          Write names of changed files to /tmp/changed\n"
         " -N          No allocation mode. Only (old style) same length "
         "overwrites possible\n"
         "See readme file on how to get to the registry files, and what they "
         "are.\n"
         "Source/binary freely distributable under GPL v2 license. See README "
         "for details.\n"
         "NOTE: This program is somewhat hackish! You are on your own!\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [979 x i8] c"chntpw: change password of a user in a NT/2k/XP/2k3/Vista SAM file, or invoke registry editor.\0Achntpw [OPTIONS] <samfile> [systemfile] [securityfile] [otherreghive] [...]\0A -h This message\0A -u <user> Username to change, Administrator is default\0A -l list all users in SAM file\0A -i Interactive. List users (as -l) then ask for username to change\0A -e Registry editor. Now with full write support!\0A -d Enter buffer debugger instead (hex editor), \0A -t Trace. Show hexdump of structs/segments. (deprecated debug function)\0A -v Be a little more verbose (for debuging)\0A -L Write names of changed files to /tmp/changed\0A -N No allocation mode. Only (old style) same length overwrites possible\0ASee readme file on how to get to the registry files, and what they are.\0ASource/binary freely distributable under GPL v2 license. See README for details.\0ANOTE: This program is somewhat hackish! You are on your own!\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([979 x i8], [979 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [978 x i8] c"chntpw: change password of a user in a NT/2k/XP/2k3/Vista SAM file, or invoke registry editor.\0Achntpw [OPTIONS] <samfile> [systemfile] [securityfile] [otherreghive] [...]\0A -h This message\0A -u <user> Username to change, Administrator is default\0A -l list all users in SAM file\0A -i Interactive. List users (as -l) then ask for username to change\0A -e Registry editor. Now with full write support!\0A -d Enter buffer debugger instead (hex editor), \0A -t Trace. Show hexdump of structs/segments. (deprecated debug function)\0A -v Be a little more verbose (for debuging)\0A -L Write names of changed files to /tmp/changed\0A -N No allocation mode. Only (old style) same length overwrites possible\0ASee readme file on how to get to the registry files, and what they are.\0ASource/binary freely distributable under GPL v2 license. See README for details.\0ANOTE: This program is somewhat hackish! You are on your own!\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([978 x i8], [978 x i8]* @str, i64 0, i64 0))
ret void
}