#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 */
char *res_tmp_txt_end();
size_t res_tmp_txt_size();
char *res_tmp_txt_start();
void res_tmp_txt(const char **start, size_t *size, const char **end) {
  if (start)
    *start = res_tmp_txt_start();
  if (size)
    *size = res_tmp_txt_size();
  if (end)
    *end = res_tmp_txt_end();
}


x86 assembly (clang, -O0):
<res_tmp_txt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1160 <res_tmp_txt+0x30>
mov    $0x0,%al
call   1050 <res_tmp_txt_start@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
cmpq   $0x0,-0x10(%rbp)
je     117c <res_tmp_txt+0x4c>
mov    $0x0,%al
call   1030 <res_tmp_txt_size@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
cmpq   $0x0,-0x18(%rbp)
je     1198 <res_tmp_txt+0x68>
mov    $0x0,%al
call   1040 <res_tmp_txt_end@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<res_tmp_txt>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
test   %rdi,%rdi
je     114d <res_tmp_txt+0x1d>
mov    %rdi,%rbx
xor    %eax,%eax
call   1050 <res_tmp_txt_start@plt>
mov    %rax,(%rbx)
test   %r15,%r15
je     115c <res_tmp_txt+0x2c>
xor    %eax,%eax
call   1030 <res_tmp_txt_size@plt>
mov    %rax,(%r15)
test   %r14,%r14
je     116b <res_tmp_txt+0x3b>
xor    %eax,%eax
call   1040 <res_tmp_txt_end@plt>
mov    %rax,(%r14)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @res_tmp_txt(i8** %0, i64* %1, i8** %2) {
%4 = alloca i8**
%5 = alloca i64*
%6 = alloca i8**
store i8** %0, i8*** %4
store i64* %1, i64** %5
store i8** %2, i8*** %6
%7 = load i8**, i8*** %4
%8 = icmp ne i8** %7, null
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = call i8* (...) @res_tmp_txt_start()
%11 = load i8**, i8*** %4
store i8* %10, i8** %11
br label %12
12: ; preds = %9, %3
%13 = load i64*, i64** %5
%14 = icmp ne i64* %13, null
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i64 (...) @res_tmp_txt_size()
%17 = load i64*, i64** %5
store i64 %16, i64* %17
br label %18
18: ; preds = %15, %12
%19 = load i8**, i8*** %6
%20 = icmp ne i8** %19, null
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = call i8* (...) @res_tmp_txt_end()
%23 = load i8**, i8*** %6
store i8* %22, i8** %23
br label %24
24: ; preds = %21, %18
ret void
}

LLVM IR (-O2):
define void @res_tmp_txt(i8** writeonly %0, i64* writeonly %1, i8** writeonly %2) {
%4 = icmp eq i8** %0, null
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i8* (...) @res_tmp_txt_start()
store i8* %6, i8** %0
br label %7
7: ; preds = %5, %3
%8 = icmp eq i64* %1, null
br i1 %8, label %11, label %9
9: ; preds = %7
%10 = tail call i64 (...) @res_tmp_txt_size()
store i64 %10, i64* %1
br label %11
11: ; preds = %9, %7
%12 = icmp eq i8** %2, null
br i1 %12, label %15, label %13
13: ; preds = %11
%14 = tail call i8* (...) @res_tmp_txt_end()
store i8* %14, i8** %2
br label %15
15: ; preds = %13, %11
ret void
}