#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 S_IRGRP;
int S_IROTH;
int S_IRWXU;
int S_IXOTH;
int /*<<< orphan*/ concat(char const *, char *);
int /*<<< orphan*/ fifo_creat(int /*<<< orphan*/, int);
int /*<<< orphan*/ smkdir(char const *, int);
void dpx_creat(const char *path) {
  smkdir(path, ((S_IRWXU | S_IRGRP | S_IROTH | S_IXOTH)));
  fifo_creat(concat(path, "/sub"), (0666));
  fifo_creat(concat(path, "/pub"), (0666));
}


x86 assembly (clang, -O0):
<dpx_creat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea1(%rip),%rax
mov    (%rax),%esi
mov    0x2e80(%rip),%rax
or     (%rax),%esi
mov    0x2e6f(%rip),%rax
or     (%rax),%esi
mov    0x2e7e(%rip),%rax
or     (%rax),%esi
call   1050 <smkdir@plt>
mov    -0x8(%rbp),%rdi
lea    0xe8c(%rip),%rsi
call   1030 <concat@plt>
mov    %eax,%edi
mov    $0x1b6,%esi
call   1040 <fifo_creat@plt>
mov    -0x8(%rbp),%rdi
lea    0xe75(%rip),%rsi
call   1030 <concat@plt>
mov    %eax,%edi
mov    $0x1b6,%esi
call   1040 <fifo_creat@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dpx_creat>:
push   %rbx
mov    0x2eb0(%rip),%rax
mov    0x2e91(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2e7e(%rip),%rax
or     (%rax),%esi
mov    %rdi,%rbx
mov    0x2e8a(%rip),%rax
or     (%rax),%esi
call   1050 <smkdir@plt>
lea    0xe9c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <concat@plt>
mov    %eax,%edi
mov    $0x1b6,%esi
call   1040 <fifo_creat@plt>
lea    0xe86(%rip),%rsi
mov    %rbx,%rdi
call   1030 <concat@plt>
mov    %eax,%edi
mov    $0x1b6,%esi
pop    %rbx
jmp    1040 <fifo_creat@plt>

LLVM IR (-O0):
@S_IRWXU = global i32 0
@S_IRGRP = global i32 0
@S_IROTH = global i32 0
@S_IXOTH = global i32 0
@.str = [5 x i8] c"/sub\00"
@.str.1 = [5 x i8] c"/pub\00"
define void @dpx_creat(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i32, i32* @S_IRWXU
%5 = load i32, i32* @S_IRGRP
%6 = or i32 %4, %5
%7 = load i32, i32* @S_IROTH
%8 = or i32 %6, %7
%9 = load i32, i32* @S_IXOTH
%10 = or i32 %8, %9
%11 = call i32 @smkdir(i8* %3, i32 %10)
%12 = load i8*, i8** %2
%13 = call i32 @concat(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @fifo_creat(i32 %13, i32 438)
%15 = load i8*, i8** %2
%16 = call i32 @concat(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @fifo_creat(i32 %16, i32 438)
ret void
}

LLVM IR (-O2):
@S_IRWXU = global i32 0
@S_IRGRP = global i32 0
@S_IROTH = global i32 0
@S_IXOTH = global i32 0
@.str = [5 x i8] c"/sub\00"
@.str.1 = [5 x i8] c"/pub\00"
define void @dpx_creat(i8* %0) {
%2 = load i32, i32* @S_IRWXU
%3 = load i32, i32* @S_IRGRP
%4 = or i32 %3, %2
%5 = load i32, i32* @S_IROTH
%6 = or i32 %4, %5
%7 = load i32, i32* @S_IXOTH
%8 = or i32 %6, %7
%9 = tail call i32 @smkdir(i8* %0, i32 %8)
%10 = tail call i32 @concat(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @fifo_creat(i32 %10, i32 438)
%12 = tail call i32 @concat(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%13 = tail call i32 @fifo_creat(i32 %12, i32 438)
ret void
}