#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*/ GetColumnOfPosition(long, long *);
int /*<<< orphan*/ GetRowOfPosition(long, long *);
scalar_t__ IsDependencyCompile();
int /*<<< orphan*/ _PrintPosition(long);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char const *, ...);
int /*<<< orphan*/ stderr;
void _WarningS(long p_position, const char *p_message, const char *p_string) {
  long t_row, t_column;
  if (IsDependencyCompile())
    return;
  GetColumnOfPosition(p_position, &t_column);
  GetRowOfPosition(p_position, &t_row);
  _PrintPosition(p_position);
  fprintf(stderr, "warning: ");
  fprintf(stderr, p_message, p_string);
  fprintf(stderr, "\n");
}


x86 assembly (clang, -O0):
<_WarningS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x0,%al
call   1030 <IsDependencyCompile@plt>
cmp    $0x0,%rax
je     117a <_WarningS+0x2a>
jmp    11e3 <_WarningS+0x93>
mov    -0x8(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1070 <GetColumnOfPosition@plt>
mov    -0x8(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <GetRowOfPosition@plt>
mov    -0x8(%rbp),%rdi
call   1050 <_PrintPosition@plt>
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
lea    0xe53(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_WarningS>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <IsDependencyCompile@plt>
test   %rax,%rax
jne    11c4 <_WarningS+0x74>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1070 <GetColumnOfPosition@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <GetRowOfPosition@plt>
mov    %rbx,%rdi
call   1050 <_PrintPosition@plt>
mov    0x2e4b(%rip),%rbx
mov    (%rbx),%edi
lea    0xe62(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe4d(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [10 x i8] c"warning: \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @_WarningS(i64 %0, i8* %1, i8* %2) {
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i64
store i64 %0, i64* %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%9 = call i64 (...) @IsDependencyCompile()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
br label %27
12: ; preds = %3
%13 = load i64, i64* %4
%14 = call i32 @GetColumnOfPosition(i64 %13, i64* %8)
%15 = load i64, i64* %4
%16 = call i32 @GetRowOfPosition(i64 %15, i64* %7)
%17 = load i64, i64* %4
%18 = call i32 @_PrintPosition(i64 %17)
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = load i8*, i8** %5
%23 = load i8*, i8** %6
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* %22, i8* %23)
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %27
27: ; preds = %12, %11
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [10 x i8] c"warning: \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @_WarningS(i64 %0, i8* %1, i8* %2) {
%4 = alloca i64
%5 = alloca i64
%6 = bitcast i64* %4 to i8*
%7 = bitcast i64* %5 to i8*
%8 = tail call i64 (...) @IsDependencyCompile()
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %20
10: ; preds = %3
%11 = call i32 @GetColumnOfPosition(i64 %0, i64* %5)
%12 = call i32 @GetRowOfPosition(i64 %0, i64* %4)
%13 = call i32 @_PrintPosition(i64 %0)
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* %1, i8* %2)
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %20
20: ; preds = %3, %10
ret void
}