#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*/ int32_t;

/* Variables and functions */
char *stpcpy0(char *, char *);
int /*<<< orphan*/ write_createsfix7o(int /*<<< orphan*/, char *);
void write_createsbbox(int32_t x_min, int32_t y_min, int32_t x_max,
                       int32_t y_max, char *s) {
  char y_minS[20], x_minS[20], y_maxS[20], x_maxS[20];
  write_createsfix7o(x_min, x_minS);
  write_createsfix7o(y_min, y_minS);
  write_createsfix7o(x_max, x_maxS);
  write_createsfix7o(y_max, y_maxS);
  s = stpcpy0(s, x_minS);
  s = stpcpy0(s, ",");
  s = stpcpy0(s, y_minS);
  s = stpcpy0(s, ",");
  s = stpcpy0(s, x_maxS);
  s = stpcpy0(s, ",");
  s = stpcpy0(s, y_maxS);
}


x86 assembly (clang, -O0):
<write_createsbbox>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x50(%rbp),%rsi
call   1040 <write_createsfix7o@plt>
mov    -0x8(%rbp),%edi
lea    -0x30(%rbp),%rsi
call   1040 <write_createsfix7o@plt>
mov    -0xc(%rbp),%edi
lea    -0x90(%rbp),%rsi
call   1040 <write_createsfix7o@plt>
mov    -0x10(%rbp),%edi
lea    -0x70(%rbp),%rsi
call   1040 <write_createsfix7o@plt>
mov    -0x18(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <stpcpy0@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe76(%rip),%rsi
call   1030 <stpcpy0@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1030 <stpcpy0@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe51(%rip),%rsi
call   1030 <stpcpy0@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   1030 <stpcpy0@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe29(%rip),%rsi
call   1030 <stpcpy0@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1030 <stpcpy0@plt>
mov    %rax,-0x18(%rbp)
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_createsbbox>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r8,%r13
mov    %ecx,%r14d
mov    %edx,%ebx
mov    %esi,%ebp
lea    0x40(%rsp),%r15
mov    %r15,%rsi
call   1040 <write_createsfix7o@plt>
lea    0x60(%rsp),%r12
mov    %ebp,%edi
mov    %r12,%rsi
call   1040 <write_createsfix7o@plt>
mov    %rsp,%rbp
mov    %ebx,%edi
mov    %rbp,%rsi
call   1040 <write_createsfix7o@plt>
lea    0x20(%rsp),%rsi
mov    %r14d,%edi
mov    %rsi,%r14
call   1040 <write_createsfix7o@plt>
mov    %r13,%rdi
mov    %r15,%rsi
call   1030 <stpcpy0@plt>
lea    0xe7d(%rip),%rbx
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <stpcpy0@plt>
mov    %rax,%rdi
mov    %r12,%rsi
call   1030 <stpcpy0@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <stpcpy0@plt>
mov    %rax,%rdi
mov    %rbp,%rsi
call   1030 <stpcpy0@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <stpcpy0@plt>
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <stpcpy0@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c",\00"
define void @write_createsbbox(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca [20 x i8]
%12 = alloca [20 x i8]
%13 = alloca [20 x i8]
%14 = alloca [20 x i8]
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%15 = load i32, i32* %6
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%17 = call i32 @write_createsfix7o(i32 %15, i8* %16)
%18 = load i32, i32* %7
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %11, i64 0, i64 0
%20 = call i32 @write_createsfix7o(i32 %18, i8* %19)
%21 = load i32, i32* %8
%22 = getelementptr inbounds [20 x i8], [20 x i8]* %14, i64 0, i64 0
%23 = call i32 @write_createsfix7o(i32 %21, i8* %22)
%24 = load i32, i32* %9
%25 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%26 = call i32 @write_createsfix7o(i32 %24, i8* %25)
%27 = load i8*, i8** %10
%28 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%29 = call i8* @stpcpy0(i8* %27, i8* %28)
store i8* %29, i8** %10
%30 = load i8*, i8** %10
%31 = call i8* @stpcpy0(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %31, i8** %10
%32 = load i8*, i8** %10
%33 = getelementptr inbounds [20 x i8], [20 x i8]* %11, i64 0, i64 0
%34 = call i8* @stpcpy0(i8* %32, i8* %33)
store i8* %34, i8** %10
%35 = load i8*, i8** %10
%36 = call i8* @stpcpy0(i8* %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %36, i8** %10
%37 = load i8*, i8** %10
%38 = getelementptr inbounds [20 x i8], [20 x i8]* %14, i64 0, i64 0
%39 = call i8* @stpcpy0(i8* %37, i8* %38)
store i8* %39, i8** %10
%40 = load i8*, i8** %10
%41 = call i8* @stpcpy0(i8* %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %41, i8** %10
%42 = load i8*, i8** %10
%43 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%44 = call i8* @stpcpy0(i8* %42, i8* %43)
store i8* %44, i8** %10
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c",\00"
define void @write_createsbbox(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca [20 x i8]
%7 = alloca [20 x i8]
%8 = alloca [20 x i8]
%9 = alloca [20 x i8]
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%14 = call i32 @write_createsfix7o(i32 %0, i8* %11)
%15 = call i32 @write_createsfix7o(i32 %1, i8* %10)
%16 = call i32 @write_createsfix7o(i32 %2, i8* %13)
%17 = call i32 @write_createsfix7o(i32 %3, i8* %12)
%18 = call i8* @stpcpy0(i8* %4, i8* %11)
%19 = call i8* @stpcpy0(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%20 = call i8* @stpcpy0(i8* %19, i8* %10)
%21 = call i8* @stpcpy0(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%22 = call i8* @stpcpy0(i8* %21, i8* %13)
%23 = call i8* @stpcpy0(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%24 = call i8* @stpcpy0(i8* %23, i8* %12)
ret void
}