#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*/ O_WRONLY;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ decode(char *, int);
int /*<<< orphan*/ memcpy(char *, char *, int);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ write(int, char *, int);
int main(void) {
  int fd;
  char enc_path[27] = {0x4A, 0x15, 0x17, 0x0A, 0x06, 0x4A, 0x16, 0x1C, 0x16,
                       0x4A, 0x13, 0x08, 0x4A, 0x08, 0x08, 0x04, 0x15, 0x3A,
                       0x08, 0x0C, 0x0B, 0x3A, 0x04, 0x01, 0x01, 0x17, 0x65};
  char path[27];
  memcpy(path, enc_path, 27);
  decode(path, 27);
  fd = open(path, O_WRONLY);
  write(fd, "0", 1);
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xe9a(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe97(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe94(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe91(%rip),%ax
mov    %ax,-0x18(%rbp)
mov    0xe89(%rip),%al
mov    %al,-0x16(%rbp)
lea    -0x50(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x1b,%edx
call   1050 <memcpy@plt>
lea    -0x50(%rbp),%rdi
mov    $0x1b,%esi
call   1060 <decode@plt>
lea    -0x50(%rbp),%rdi
mov    0x2e19(%rip),%rax
mov    (%rax),%esi
call   1070 <open@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
lea    0xe48(%rip),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    -0x8(%rbp),%edi
call   1040 <close@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
movups 0xeaf(%rip),%xmm0
movups %xmm0,0xb(%rsp)
movaps 0xe98(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
mov    $0x1b,%edx
call   1050 <memcpy@plt>
mov    %rbx,%rdi
mov    $0x1b,%esi
call   1060 <decode@plt>
mov    0x2e43(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1070 <open@plt>
mov    %eax,%ebx
lea    0xe73(%rip),%rsi
mov    %eax,%edi
mov    $0x1,%edx
call   1030 <write@plt>
mov    %ebx,%edi
call   1040 <close@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.enc_path = [27 x i8] c"J\15\17\0A\06J\16\1C\16J\13\08J\08\08\04\15:\08\0C\0B:\04\01\01\17e"
@O_WRONLY = global i32 0
@.str = [2 x i8] c"0\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [27 x i8]
%4 = alloca [27 x i8]
store i32 0, i32* %1
%5 = bitcast [27 x i8]* %3 to i8*
%6 = getelementptr inbounds [27 x i8], [27 x i8]* %4, i64 0, i64 0
%7 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 0
%8 = call i32 @memcpy(i8* %6, i8* %7, i32 27)
%9 = getelementptr inbounds [27 x i8], [27 x i8]* %4, i64 0, i64 0
%10 = call i32 @decode(i8* %9, i32 27)
%11 = getelementptr inbounds [27 x i8], [27 x i8]* %4, i64 0, i64 0
%12 = load i32, i32* @O_WRONLY
%13 = call i32 @open(i8* %11, i32 %12)
store i32 %13, i32* %2
%14 = load i32, i32* %2
%15 = call i32 @write(i32 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%16 = load i32, i32* %2
%17 = call i32 @close(i32 %16)
ret i32 0
}

LLVM IR (-O2):
@__const.main.enc_path = [27 x i8] c"J\15\17\0A\06J\16\1C\16J\13\08J\08\08\04\15:\08\0C\0B:\04\01\01\17e"
@O_WRONLY = global i32 0
@.str = [2 x i8] c"0\00"
define i32 @main() {
%1 = alloca [27 x i8]
%2 = alloca [27 x i8]
%3 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 0
%5 = call i32 @memcpy(i8* %4, i8* %3, i32 27)
%6 = call i32 @decode(i8* %4, i32 27)
%7 = load i32, i32* @O_WRONLY
%8 = call i32 @open(i8* %4, i32 %7)
%9 = call i32 @write(i32 %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%10 = call i32 @close(i32 %8)
ret i32 0
}