#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*/ kml_write_xml(int, char *, ...);
void kml_mt_array_schema(const char *field_name, const char *display_name,
                         const char *type) {
  kml_write_xml(1, "<gx:SimpleArrayField name=\"%s\" type=\"%s\">\n",
                field_name, type);
  kml_write_xml(0, "  <displayName>%s</displayName>\n", display_name);
  kml_write_xml(-1, "</gx:SimpleArrayField>\n");
}


x86 assembly (clang, -O0):
<kml_mt_array_schema>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0x1,%edi
lea    0xec8(%rip),%rsi
mov    $0x0,%al
call   1030 <kml_write_xml@plt>
mov    -0x10(%rbp),%rdx
xor    %edi,%edi
lea    0xedf(%rip),%rsi
mov    $0x0,%al
call   1030 <kml_write_xml@plt>
mov    $0xffffffff,%edi
lea    0xeed(%rip),%rsi
mov    $0x0,%al
call   1030 <kml_write_xml@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kml_mt_array_schema>:
push   %rbx
mov    %rdx,%rcx
mov    %rsi,%rbx
mov    %rdi,%rdx
lea    0xedf(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <kml_write_xml@plt>
lea    0xef7(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <kml_write_xml@plt>
lea    0xf05(%rip),%rsi
mov    $0xffffffff,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <kml_write_xml@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"<gx:SimpleArrayField name=\22%s\22 type=\22%s\22>\0A\00"
@.str.1 = [33 x i8] c" <displayName>%s</displayName>\0A\00"
@.str.2 = [24 x i8] c"</gx:SimpleArrayField>\0A\00"
define void @kml_mt_array_schema(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %6
%9 = call i32 (i32, i8*, ...) @kml_write_xml(i32 1, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %8)
%10 = load i8*, i8** %5
%11 = call i32 (i32, i8*, ...) @kml_write_xml(i32 0, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %10)
%12 = call i32 (i32, i8*, ...) @kml_write_xml(i32 -1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [43 x i8] c"<gx:SimpleArrayField name=\22%s\22 type=\22%s\22>\0A\00"
@.str.1 = [33 x i8] c" <displayName>%s</displayName>\0A\00"
@.str.2 = [24 x i8] c"</gx:SimpleArrayField>\0A\00"
define void @kml_mt_array_schema(i8* %0, i8* %1, i8* %2) {
%4 = tail call i32 (i32, i8*, ...) @kml_write_xml(i32 1, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %2)
%5 = tail call i32 (i32, i8*, ...) @kml_write_xml(i32 0, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%6 = tail call i32 (i32, i8*, ...) @kml_write_xml(i32 -1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
ret void
}