#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 createQueryURL(char const *, int, char const *, char *, int, char const **,
                   char const **, char **);
int createUrlForCHOWN(const char *host, int nnPort, const char *path,
                      const char *owner, const char *group, const char *user,
                      char **url) {
  const char *paraNames[3], *paraValues[3];
  paraNames[0] = "owner";
  paraNames[1] = "group";
  paraNames[2] = "user.name";
  paraValues[0] = owner;
  paraValues[1] = group;
  paraValues[2] = user;
  return createQueryURL(host, nnPort, path, "SETOWNER", 3, paraNames,
                        paraValues, url);
}


x86 assembly (clang, -O0):
<createUrlForCHOWN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    0xec3(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xebe(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xeb9(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
lea    -0x50(%rbp),%r9
lea    -0x70(%rbp),%r10
mov    0x10(%rbp),%rax
lea    0xe89(%rip),%rcx
mov    $0x3,%r8d
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <createQueryURL@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createUrlForCHOWN>:
sub    $0x38,%rsp
mov    0x40(%rsp),%r10
lea    0xee0(%rip),%rax
mov    %rax,0x20(%rsp)
lea    0xeda(%rip),%rax
mov    %rax,0x28(%rsp)
lea    0xed4(%rip),%rax
mov    %rax,0x30(%rsp)
mov    %rcx,(%rsp)
mov    %r8,0x8(%rsp)
mov    %r9,0x10(%rsp)
mov    %rsp,%rax
lea    0xec1(%rip),%rcx
lea    0x20(%rsp),%r9
mov    $0x3,%r8d
push   %r10
push   %rax
call   1030 <createQueryURL@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"owner\00"
@.str.1 = [6 x i8] c"group\00"
@.str.2 = [10 x i8] c"user.name\00"
@.str.3 = [9 x i8] c"SETOWNER\00"
define i32 @createUrlForCHOWN(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4, i8* %5, i8** %6) {
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8**
%15 = alloca [3 x i8*]
%16 = alloca [3 x i8*]
store i8* %0, i8** %8
store i32 %1, i32* %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
store i8** %6, i8*** %14
%17 = getelementptr inbounds [3 x i8*], [3 x i8*]* %15, i64 0, i64 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [3 x i8*], [3 x i8*]* %15, i64 0, i64 1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds [3 x i8*], [3 x i8*]* %15, i64 0, i64 2
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %19
%20 = load i8*, i8** %11
%21 = getelementptr inbounds [3 x i8*], [3 x i8*]* %16, i64 0, i64 0
store i8* %20, i8** %21
%22 = load i8*, i8** %12
%23 = getelementptr inbounds [3 x i8*], [3 x i8*]* %16, i64 0, i64 1
store i8* %22, i8** %23
%24 = load i8*, i8** %13
%25 = getelementptr inbounds [3 x i8*], [3 x i8*]* %16, i64 0, i64 2
store i8* %24, i8** %25
%26 = load i8*, i8** %8
%27 = load i32, i32* %9
%28 = load i8*, i8** %10
%29 = getelementptr inbounds [3 x i8*], [3 x i8*]* %15, i64 0, i64 0
%30 = getelementptr inbounds [3 x i8*], [3 x i8*]* %16, i64 0, i64 0
%31 = load i8**, i8*** %14
%32 = call i32 @createQueryURL(i8* %26, i32 %27, i8* %28, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 3, i8** %29, i8** %30, i8** %31)
ret i32 %32
}

LLVM IR (-O2):
@.str = [6 x i8] c"owner\00"
@.str.1 = [6 x i8] c"group\00"
@.str.2 = [10 x i8] c"user.name\00"
@.str.3 = [9 x i8] c"SETOWNER\00"
define i32 @createUrlForCHOWN(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4, i8* %5, i8** %6) {
%8 = alloca [3 x i8*]
%9 = alloca [3 x i8*]
%10 = bitcast [3 x i8*]* %8 to i8*
%11 = bitcast [3 x i8*]* %9 to i8*
%12 = getelementptr inbounds [3 x i8*], [3 x i8*]* %8, i64 0, i64 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [3 x i8*], [3 x i8*]* %8, i64 0, i64 1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds [3 x i8*], [3 x i8*]* %8, i64 0, i64 2
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 0
store i8* %3, i8** %15
%16 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 1
store i8* %4, i8** %16
%17 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 2
store i8* %5, i8** %17
%18 = call i32 @createQueryURL(i8* %0, i32 %1, i8* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 3, i8** %12, i8** %15, i8** %6)
ret i32 %18
}