#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, ...);
int print_warning(FILE *fp, char *fname, char comment[]) {
  fprintf(fp, "%s!STARTOFREGISTRYGENERATEDFILE '%s'\n", comment, fname);
  fprintf(fp, "%s!\n", comment);
  fprintf(fp,
          "%s! WARNING This file is generated automatically by the FAST "
          "registry.\n",
          comment);
  fprintf(fp, "%s! Do not edit.  Your changes to this file will be lost.\n",
          comment);
  fprintf(fp, "%s!\n", comment);
  return (0);
}


x86 assembly (clang, -O0):
<print_warning>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xec9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xed9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xec8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xefa(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe97(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_warning>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%rcx
mov    %rdi,%rbx
lea    0xedb(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xef3(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xee1(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf15(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [38 x i8] c"%s!STARTOFREGISTRYGENERATEDFILE '%s'\0A\00"
@.str.1 = [5 x i8] c"%s!\0A\00"
@.str.2 = [72 x i8] c"%s! WARNING This file is generated automatically by the FAST registry.\0A\00"
@.str.3 = [59 x i8] c"%s! Do not edit. Your changes to this file will be lost.\0A\00"
define i32 @print_warning(i32* %0, i8* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i8*
store i32* %0, i32** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i32*, i32** %4
%8 = load i8*, i8** %6
%9 = load i8*, i8** %5
%10 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %9)
%11 = load i32*, i32** %4
%12 = load i8*, i8** %6
%13 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = load i32*, i32** %4
%15 = load i8*, i8** %6
%16 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = load i32*, i32** %4
%18 = load i8*, i8** %6
%19 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%20 = load i32*, i32** %4
%21 = load i8*, i8** %6
%22 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %21)
ret i32 0
}

LLVM IR (-O2):
@.str = [38 x i8] c"%s!STARTOFREGISTRYGENERATEDFILE '%s'\0A\00"
@.str.1 = [5 x i8] c"%s!\0A\00"
@.str.2 = [72 x i8] c"%s! WARNING This file is generated automatically by the FAST registry.\0A\00"
@.str.3 = [59 x i8] c"%s! Do not edit. Your changes to this file will be lost.\0A\00"
define i32 @print_warning(i32* nocapture %0, i8* %1, i8* %2) {
%4 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %1)
%5 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%6 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%7 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i8* %2)
%8 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret i32 0
}