#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 rand();
int /*<<< orphan*/ snprintf(char *, int, char *, int, int, int, int, int, int,
                            int, int, int, int, int);
void uwsgi_uuid(char *buf) {
  snprintf(buf, 37, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", rand(),
           rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
           rand(), rand());
}


x86 assembly (clang, -O0):
<uwsgi_uuid>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rdi,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,-0x44(%rbp)
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,-0x40(%rbp)
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,-0x3c(%rbp)
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,%r13d
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,%r12d
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,%r15d
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,%r14d
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,%ebx
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,-0x38(%rbp)
mov    $0x0,%al
call   1040 <rand@plt>
mov    %eax,-0x34(%rbp)
mov    $0x0,%al
call   1040 <rand@plt>
mov    -0x50(%rbp),%rdi
mov    -0x44(%rbp),%ecx
mov    -0x40(%rbp),%r8d
mov    -0x3c(%rbp),%r9d
mov    -0x38(%rbp),%r11d
mov    -0x34(%rbp),%r10d
mov    $0x25,%esi
lea    0xe36(%rip),%rdx
mov    %r13d,(%rsp)
mov    %r12d,0x8(%rsp)
mov    %r15d,0x10(%rsp)
mov    %r14d,0x18(%rsp)
mov    %ebx,0x20(%rsp)
mov    %r11d,0x28(%rsp)
mov    %r10d,0x30(%rsp)
mov    %eax,0x38(%rsp)
call   1030 <snprintf@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<uwsgi_uuid>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,0x18(%rsp)
xor    %eax,%eax
call   1040 <rand@plt>
mov    %eax,0xc(%rsp)
xor    %eax,%eax
call   1040 <rand@plt>
mov    %eax,0x8(%rsp)
xor    %eax,%eax
call   1040 <rand@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1040 <rand@plt>
mov    %rax,0x20(%rsp)
xor    %eax,%eax
call   1040 <rand@plt>
mov    %rax,0x10(%rsp)
xor    %eax,%eax
call   1040 <rand@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1040 <rand@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1040 <rand@plt>
mov    %eax,%r12d
xor    %eax,%eax
call   1040 <rand@plt>
mov    %eax,%r13d
xor    %eax,%eax
call   1040 <rand@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <rand@plt>
lea    0xe57(%rip),%rdx
mov    0x18(%rsp),%rdi
mov    $0x25,%esi
mov    0xc(%rsp),%ecx
mov    0x8(%rsp),%r8d
mov    %r14d,%r9d
push   %rax
push   %rbx
push   %r13
push   %r12
push   %r15
push   %rbp
push   0x40(%rsp)
push   0x58(%rsp)
call   1030 <snprintf@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [49 x i8] c"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x\00"
define void @uwsgi_uuid(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (...) @rand()
%5 = call i32 (...) @rand()
%6 = call i32 (...) @rand()
%7 = call i32 (...) @rand()
%8 = call i32 (...) @rand()
%9 = call i32 (...) @rand()
%10 = call i32 (...) @rand()
%11 = call i32 (...) @rand()
%12 = call i32 (...) @rand()
%13 = call i32 (...) @rand()
%14 = call i32 (...) @rand()
%15 = call i32 @snprintf(i8* %3, i32 37, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14)
ret void
}

LLVM IR (-O2):
@.str = [49 x i8] c"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x\00"
define void @uwsgi_uuid(i8* %0) {
%2 = tail call i32 (...) @rand()
%3 = tail call i32 (...) @rand()
%4 = tail call i32 (...) @rand()
%5 = tail call i32 (...) @rand()
%6 = tail call i32 (...) @rand()
%7 = tail call i32 (...) @rand()
%8 = tail call i32 (...) @rand()
%9 = tail call i32 (...) @rand()
%10 = tail call i32 (...) @rand()
%11 = tail call i32 (...) @rand()
%12 = tail call i32 (...) @rand()
%13 = tail call i32 @snprintf(i8* %0, i32 37, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12)
ret void
}