int CallbackOnXmlProperty(int type, char *xpath, int xpath_len, int xpath_size,
                          char *propname, int propname_len, char *propvalue,
                          int propvalue_len, char *content, int content_len,
                          void *p) {
  printf("    PROPERTY p[%s] xpath[%.*s] propname[%.*s] propvalue[%.*s] "
         "content[%.*s]\n",
         (char *)p, xpath_len, xpath, propname_len, propname, propvalue_len,
         propvalue, content_len, content);
  return 0;
}


x86 assembly (clang, -O0):
<CallbackOnXmlProperty>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x48,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    0x30(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x2c(%rbp),%r8d
mov    -0x28(%rbp),%r9
mov    0x18(%rbp),%ebx
mov    0x10(%rbp),%r11
mov    0x28(%rbp),%r10d
mov    0x20(%rbp),%rax
lea    0xe97(%rip),%rdi
mov    %ebx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<CallbackOnXmlProperty>:
push   %rax
mov    %r8,%rax
mov    %rsi,%rcx
mov    0x30(%rsp),%rsi
mov    0x18(%rsp),%r10d
mov    0x28(%rsp),%r11d
lea    0xed3(%rip),%rdi
mov    %r9d,%r8d
mov    %rax,%r9
xor    %eax,%eax
push   0x20(%rsp)
push   %r11
push   0x20(%rsp)
push   %r10
call   1030 <printf@plt>
add    $0x20,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [77 x i8] c" PROPERTY p[%s] xpath[%.*s] propname[%.*s] propvalue[%.*s] content[%.*s]\0A\00"
define i32 @CallbackOnXmlProperty(i32 %0, i8* %1, i32 %2, i32 %3, i8* %4, i32 %5, i8* %6, i32 %7, i8* %8, i32 %9, i8* %10) {
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i32
%18 = alloca i8*
%19 = alloca i32
%20 = alloca i8*
%21 = alloca i32
%22 = alloca i8*
store i32 %0, i32* %12
store i8* %1, i8** %13
store i32 %2, i32* %14
store i32 %3, i32* %15
store i8* %4, i8** %16
store i32 %5, i32* %17
store i8* %6, i8** %18
store i32 %7, i32* %19
store i8* %8, i8** %20
store i32 %9, i32* %21
store i8* %10, i8** %22
%23 = load i8*, i8** %22
%24 = load i32, i32* %14
%25 = load i8*, i8** %13
%26 = load i32, i32* %17
%27 = load i8*, i8** %16
%28 = load i32, i32* %19
%29 = load i8*, i8** %18
%30 = load i32, i32* %21
%31 = load i8*, i8** %20
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0), i8* %23, i32 %24, i8* %25, i32 %26, i8* %27, i32 %28, i8* %29, i32 %30, i8* %31)
ret i32 0
}

LLVM IR (-O2):
@.str = [77 x i8] c" PROPERTY p[%s] xpath[%.*s] propname[%.*s] propvalue[%.*s] content[%.*s]\0A\00"
define i32 @CallbackOnXmlProperty(i32 %0, i8* %1, i32 %2, i32 %3, i8* %4, i32 %5, i8* %6, i32 %7, i8* %8, i32 %9, i8* %10) {
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0), i8* %10, i32 %2, i8* %1, i32 %5, i8* %4, i32 %7, i8* %6, i32 %9, i8* %8)
ret i32 0
}