#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 */
struct target {
  int dummy;
};

/* Variables and functions */
char *copy_params(char **, int, int *);
scalar_t__ dump_long_long_int_from_mem(unsigned int, char **, struct target *);
scalar_t__ dump_long_long_unsigned_int_from_mem(unsigned int, char **,
                                                struct target *);
scalar_t__ dump_long_unsigned_int_from_mem(unsigned int, char **,
                                           struct target *);
scalar_t__ dump_unsigned_int_from_mem(unsigned int, char **, struct target *);
int /*<<< orphan*/ free_dumped_params(char **, int);
void *malloc(int);
int dump_oldabi_stat64(int depth, unsigned int addr, char **dumped_params,
                       struct target *target) {
  char **dumped_type_params;
  unsigned int arm_tracing_st_dev = addr;
  unsigned int arm_tracing___pad1 = addr + 8;
  unsigned int arm_tracing___st_ino = addr + 12;
  unsigned int arm_tracing_st_mode = addr + 16;
  unsigned int arm_tracing_st_nlink = addr + 20;
  unsigned int arm_tracing_st_uid = addr + 24;
  unsigned int arm_tracing_st_gid = addr + 28;
  unsigned int arm_tracing_st_rdev = addr + 32;
  unsigned int arm_tracing___pad2 = addr + 40;
  unsigned int arm_tracing_st_size = addr + 44;
  unsigned int arm_tracing_st_blksize = addr + 52;
  unsigned int arm_tracing_st_blocks = addr + 56;
  unsigned int arm_tracing_st_atime = addr + 64;
  unsigned int arm_tracing_st_atime_nsec = addr + 68;
  unsigned int arm_tracing_st_mtime = addr + 72;
  unsigned int arm_tracing_st_mtime_nsec = addr + 76;
  unsigned int arm_tracing_st_ctime = addr + 80;
  unsigned int arm_tracing_st_ctime_nsec = addr + 84;
  unsigned int arm_tracing_st_ino = addr + 88;
  int len = 0;
  if (depth < 0) {
    *dumped_params = malloc(0);
    return len;
  }
  dumped_type_params = malloc(19 * (sizeof(char *)));
  if (depth >= 0) {
    len += dump_long_long_unsigned_int_from_mem(arm_tracing_st_dev,
                                                &dumped_type_params[0], target);
    len += dump_unsigned_int_from_mem(arm_tracing___pad1,
                                      &dumped_type_params[1], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing___st_ino,
                                           &dumped_type_params[2], target);
    len += dump_unsigned_int_from_mem(arm_tracing_st_mode,
                                      &dumped_type_params[3], target);
    len += dump_unsigned_int_from_mem(arm_tracing_st_nlink,
                                      &dumped_type_params[4], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_uid,
                                           &dumped_type_params[5], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_gid,
                                           &dumped_type_params[6], target);
    len += dump_long_long_unsigned_int_from_mem(arm_tracing_st_rdev,
                                                &dumped_type_params[7], target);
    len += dump_unsigned_int_from_mem(arm_tracing___pad2,
                                      &dumped_type_params[8], target);
    len += dump_long_long_int_from_mem(arm_tracing_st_size,
                                       &dumped_type_params[9], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_blksize,
                                           &dumped_type_params[10], target);
    len += dump_long_long_unsigned_int_from_mem(
        arm_tracing_st_blocks, &dumped_type_params[11], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_atime,
                                           &dumped_type_params[12], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_atime_nsec,
                                           &dumped_type_params[13], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_mtime,
                                           &dumped_type_params[14], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_mtime_nsec,
                                           &dumped_type_params[15], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_ctime,
                                           &dumped_type_params[16], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_st_ctime_nsec,
                                           &dumped_type_params[17], target);
    len += dump_long_long_unsigned_int_from_mem(
        arm_tracing_st_ino, &dumped_type_params[18], target);
  }
  *dumped_params = copy_params(dumped_type_params, 19, &len);
  free_dumped_params(dumped_type_params, 19);
  return len;
}


x86 assembly (clang, -O0):
<dump_oldabi_stat64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    -0xc(%rbp),%eax
add    $0xc,%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x38(%rbp)
mov    -0xc(%rbp),%eax
add    $0x14,%eax
mov    %eax,-0x3c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x18,%eax
mov    %eax,-0x40(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1c,%eax
mov    %eax,-0x44(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%eax
mov    %eax,-0x48(%rbp)
mov    -0xc(%rbp),%eax
add    $0x28,%eax
mov    %eax,-0x4c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2c,%eax
mov    %eax,-0x50(%rbp)
mov    -0xc(%rbp),%eax
add    $0x34,%eax
mov    %eax,-0x54(%rbp)
mov    -0xc(%rbp),%eax
add    $0x38,%eax
mov    %eax,-0x58(%rbp)
mov    -0xc(%rbp),%eax
add    $0x40,%eax
mov    %eax,-0x5c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x44,%eax
mov    %eax,-0x60(%rbp)
mov    -0xc(%rbp),%eax
add    $0x48,%eax
mov    %eax,-0x64(%rbp)
mov    -0xc(%rbp),%eax
add    $0x4c,%eax
mov    %eax,-0x68(%rbp)
mov    -0xc(%rbp),%eax
add    $0x50,%eax
mov    %eax,-0x6c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x54,%eax
mov    %eax,-0x70(%rbp)
mov    -0xc(%rbp),%eax
add    $0x58,%eax
mov    %eax,-0x74(%rbp)
movl   $0x0,-0x78(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    125e <dump_oldabi_stat64+0xee>
xor    %edi,%edi
call   1080 <malloc@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x78(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    151e <dump_oldabi_stat64+0x3ae>
mov    $0x98,%edi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     14ee <dump_oldabi_stat64+0x37e>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x8,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x10,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x18,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x20,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x28,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x30,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x38,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x40,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x50(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x48,%rsi
mov    -0x20(%rbp),%rdx
call   1060 <dump_long_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x50,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x58,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x60,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x60(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x68,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x70,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x78,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x6c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x80,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x70(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x88,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x90,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x78(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x78(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x13,%esi
lea    -0x78(%rbp),%rdx
call   1070 <copy_params@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rdi
mov    $0x13,%esi
call   1050 <free_dumped_params@plt>
mov    -0x78(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_oldabi_stat64>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rdx,%rbp
test   %edi,%edi
js     1401 <dump_oldabi_stat64+0x291>
mov    %rcx,%r13
mov    %esi,%r12d
lea    0x58(%r12),%eax
mov    %eax,0x4c(%rsp)
lea    0x54(%r12),%eax
mov    %eax,0x48(%rsp)
lea    0x50(%r12),%eax
mov    %eax,0x44(%rsp)
lea    0x4c(%r12),%eax
mov    %eax,0x40(%rsp)
lea    0x48(%r12),%eax
mov    %eax,0x3c(%rsp)
lea    0x44(%r12),%eax
mov    %eax,0x38(%rsp)
lea    0x40(%r12),%eax
mov    %eax,0x34(%rsp)
lea    0x38(%r12),%eax
mov    %eax,0x30(%rsp)
lea    0x34(%r12),%eax
mov    %eax,0x2c(%rsp)
lea    0x2c(%r12),%eax
mov    %eax,0x28(%rsp)
lea    0x28(%r12),%eax
mov    %eax,0x24(%rsp)
lea    0x20(%r12),%eax
mov    %eax,0x20(%rsp)
lea    0x1c(%r12),%eax
mov    %eax,0x1c(%rsp)
lea    0x18(%r12),%eax
mov    %eax,0x18(%rsp)
lea    0x14(%r12),%eax
mov    %eax,0x14(%rsp)
lea    0x10(%r12),%eax
mov    %eax,0x10(%rsp)
lea    0xc(%r12),%eax
mov    %eax,0xc(%rsp)
mov    %rbp,0x50(%rsp)
lea    0x8(%r12),%r14d
mov    $0x98,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
mov    %r12d,%edi
mov    %rax,%rsi
mov    %r13,%rdx
call   1030 <dump_long_long_unsigned_int_from_mem@plt>
mov    %rax,%r12
lea    0x8(%r15),%rsi
mov    %r14d,%edi
mov    %r13,%rdx
call   1090 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %r12d,%ebx
lea    0x10(%r15),%rsi
mov    0xc(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x18(%r15),%rsi
mov    0x10(%rsp),%edi
mov    %r13,%rdx
call   1090 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x20(%r15),%rsi
mov    0x14(%rsp),%edi
mov    %r13,%rdx
call   1090 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x28(%r15),%rsi
mov    0x18(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x30(%r15),%rsi
mov    0x1c(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x38(%r15),%rsi
mov    0x20(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x40(%r15),%rsi
mov    0x24(%rsp),%edi
mov    %r13,%rdx
call   1090 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x48(%r15),%rsi
mov    0x28(%rsp),%edi
mov    %r13,%rdx
call   1060 <dump_long_long_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x50(%r15),%rsi
mov    0x2c(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x58(%r15),%rsi
mov    0x30(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x60(%r15),%rsi
mov    0x34(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x68(%r15),%rsi
mov    0x38(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x70(%r15),%rsi
mov    0x3c(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x78(%r15),%rsi
mov    0x40(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x80(%r15),%rsi
mov    0x44(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x88(%r15),%rsi
mov    0x48(%rsp),%edi
mov    %r13,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x90(%r15),%rsi
mov    0x4c(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_long_unsigned_int_from_mem@plt>
add    %ebx,%eax
mov    %eax,0x8(%rsp)
lea    0x8(%rsp),%rdx
mov    %r15,%rdi
mov    $0x13,%esi
call   1070 <copy_params@plt>
mov    0x50(%rsp),%rcx
mov    %rax,(%rcx)
mov    %r15,%rdi
mov    $0x13,%esi
call   1050 <free_dumped_params@plt>
mov    0x8(%rsp),%ebx
jmp    140e <dump_oldabi_stat64+0x29e>
xor    %ebx,%ebx
xor    %edi,%edi
call   1080 <malloc@plt>
mov    %rax,0x0(%rbp)
mov    %ebx,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.target = type { i32 }
define i32 @dump_oldabi_stat64(i32 %0, i32 %1, i8** %2, %struct.target* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8**
%9 = alloca %struct.target*
%10 = alloca i8**
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i8** %2, i8*** %8
store %struct.target* %3, %struct.target** %9
%31 = load i32, i32* %7
store i32 %31, i32* %11
%32 = load i32, i32* %7
%33 = add i32 %32, 8
store i32 %33, i32* %12
%34 = load i32, i32* %7
%35 = add i32 %34, 12
store i32 %35, i32* %13
%36 = load i32, i32* %7
%37 = add i32 %36, 16
store i32 %37, i32* %14
%38 = load i32, i32* %7
%39 = add i32 %38, 20
store i32 %39, i32* %15
%40 = load i32, i32* %7
%41 = add i32 %40, 24
store i32 %41, i32* %16
%42 = load i32, i32* %7
%43 = add i32 %42, 28
store i32 %43, i32* %17
%44 = load i32, i32* %7
%45 = add i32 %44, 32
store i32 %45, i32* %18
%46 = load i32, i32* %7
%47 = add i32 %46, 40
store i32 %47, i32* %19
%48 = load i32, i32* %7
%49 = add i32 %48, 44
store i32 %49, i32* %20
%50 = load i32, i32* %7
%51 = add i32 %50, 52
store i32 %51, i32* %21
%52 = load i32, i32* %7
%53 = add i32 %52, 56
store i32 %53, i32* %22
%54 = load i32, i32* %7
%55 = add i32 %54, 64
store i32 %55, i32* %23
%56 = load i32, i32* %7
%57 = add i32 %56, 68
store i32 %57, i32* %24
%58 = load i32, i32* %7
%59 = add i32 %58, 72
store i32 %59, i32* %25
%60 = load i32, i32* %7
%61 = add i32 %60, 76
store i32 %61, i32* %26
%62 = load i32, i32* %7
%63 = add i32 %62, 80
store i32 %63, i32* %27
%64 = load i32, i32* %7
%65 = add i32 %64, 84
store i32 %65, i32* %28
%66 = load i32, i32* %7
%67 = add i32 %66, 88
store i32 %67, i32* %29
store i32 0, i32* %30
%68 = load i32, i32* %6
%69 = icmp slt i32 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %4
%71 = call i8* @malloc(i32 0)
%72 = load i8**, i8*** %8
store i8* %71, i8** %72
%73 = load i32, i32* %30
store i32 %73, i32* %5
br label %258
74: ; preds = %4
%75 = call i8* @malloc(i32 152)
%76 = bitcast i8* %75 to i8**
store i8** %76, i8*** %10
%77 = load i32, i32* %6
%78 = icmp sge i32 %77, 0
br i1 %78, label %79, label %251
79: ; preds = %74
%80 = load i32, i32* %11
%81 = load i8**, i8*** %10
%82 = getelementptr inbounds i8*, i8** %81, i64 0
%83 = load %struct.target*, %struct.target** %9
%84 = call i64 @dump_long_long_unsigned_int_from_mem(i32 %80, i8** %82, %struct.target* %83)
%85 = load i32, i32* %30
%86 = sext i32 %85 to i64
%87 = add nsw i64 %86, %84
%88 = trunc i64 %87 to i32
store i32 %88, i32* %30
%89 = load i32, i32* %12
%90 = load i8**, i8*** %10
%91 = getelementptr inbounds i8*, i8** %90, i64 1
%92 = load %struct.target*, %struct.target** %9
%93 = call i64 @dump_unsigned_int_from_mem(i32 %89, i8** %91, %struct.target* %92)
%94 = load i32, i32* %30
%95 = sext i32 %94 to i64
%96 = add nsw i64 %95, %93
%97 = trunc i64 %96 to i32
store i32 %97, i32* %30
%98 = load i32, i32* %13
%99 = load i8**, i8*** %10
%100 = getelementptr inbounds i8*, i8** %99, i64 2
%101 = load %struct.target*, %struct.target** %9
%102 = call i64 @dump_long_unsigned_int_from_mem(i32 %98, i8** %100, %struct.target* %101)
%103 = load i32, i32* %30
%104 = sext i32 %103 to i64
%105 = add nsw i64 %104, %102
%106 = trunc i64 %105 to i32
store i32 %106, i32* %30
%107 = load i32, i32* %14
%108 = load i8**, i8*** %10
%109 = getelementptr inbounds i8*, i8** %108, i64 3
%110 = load %struct.target*, %struct.target** %9
%111 = call i64 @dump_unsigned_int_from_mem(i32 %107, i8** %109, %struct.target* %110)
%112 = load i32, i32* %30
%113 = sext i32 %112 to i64
%114 = add nsw i64 %113, %111
%115 = trunc i64 %114 to i32
store i32 %115, i32* %30
%116 = load i32, i32* %15
%117 = load i8**, i8*** %10
%118 = getelementptr inbounds i8*, i8** %117, i64 4
%119 = load %struct.target*, %struct.target** %9
%120 = call i64 @dump_unsigned_int_from_mem(i32 %116, i8** %118, %struct.target* %119)
%121 = load i32, i32* %30
%122 = sext i32 %121 to i64
%123 = add nsw i64 %122, %120
%124 = trunc i64 %123 to i32
store i32 %124, i32* %30
%125 = load i32, i32* %16
%126 = load i8**, i8*** %10
%127 = getelementptr inbounds i8*, i8** %126, i64 5
%128 = load %struct.target*, %struct.target** %9
%129 = call i64 @dump_long_unsigned_int_from_mem(i32 %125, i8** %127, %struct.target* %128)
%130 = load i32, i32* %30
%131 = sext i32 %130 to i64
%132 = add nsw i64 %131, %129
%133 = trunc i64 %132 to i32
store i32 %133, i32* %30
%134 = load i32, i32* %17
%135 = load i8**, i8*** %10
%136 = getelementptr inbounds i8*, i8** %135, i64 6
%137 = load %struct.target*, %struct.target** %9
%138 = call i64 @dump_long_unsigned_int_from_mem(i32 %134, i8** %136, %struct.target* %137)
%139 = load i32, i32* %30
%140 = sext i32 %139 to i64
%141 = add nsw i64 %140, %138
%142 = trunc i64 %141 to i32
store i32 %142, i32* %30
%143 = load i32, i32* %18
%144 = load i8**, i8*** %10
%145 = getelementptr inbounds i8*, i8** %144, i64 7
%146 = load %struct.target*, %struct.target** %9
%147 = call i64 @dump_long_long_unsigned_int_from_mem(i32 %143, i8** %145, %struct.target* %146)
%148 = load i32, i32* %30
%149 = sext i32 %148 to i64
%150 = add nsw i64 %149, %147
%151 = trunc i64 %150 to i32
store i32 %151, i32* %30
%152 = load i32, i32* %19
%153 = load i8**, i8*** %10
%154 = getelementptr inbounds i8*, i8** %153, i64 8
%155 = load %struct.target*, %struct.target** %9
%156 = call i64 @dump_unsigned_int_from_mem(i32 %152, i8** %154, %struct.target* %155)
%157 = load i32, i32* %30
%158 = sext i32 %157 to i64
%159 = add nsw i64 %158, %156
%160 = trunc i64 %159 to i32
store i32 %160, i32* %30
%161 = load i32, i32* %20
%162 = load i8**, i8*** %10
%163 = getelementptr inbounds i8*, i8** %162, i64 9
%164 = load %struct.target*, %struct.target** %9
%165 = call i64 @dump_long_long_int_from_mem(i32 %161, i8** %163, %struct.target* %164)
%166 = load i32, i32* %30
%167 = sext i32 %166 to i64
%168 = add nsw i64 %167, %165
%169 = trunc i64 %168 to i32
store i32 %169, i32* %30
%170 = load i32, i32* %21
%171 = load i8**, i8*** %10
%172 = getelementptr inbounds i8*, i8** %171, i64 10
%173 = load %struct.target*, %struct.target** %9
%174 = call i64 @dump_long_unsigned_int_from_mem(i32 %170, i8** %172, %struct.target* %173)
%175 = load i32, i32* %30
%176 = sext i32 %175 to i64
%177 = add nsw i64 %176, %174
%178 = trunc i64 %177 to i32
store i32 %178, i32* %30
%179 = load i32, i32* %22
%180 = load i8**, i8*** %10
%181 = getelementptr inbounds i8*, i8** %180, i64 11
%182 = load %struct.target*, %struct.target** %9
%183 = call i64 @dump_long_long_unsigned_int_from_mem(i32 %179, i8** %181, %struct.target* %182)
%184 = load i32, i32* %30
%185 = sext i32 %184 to i64
%186 = add nsw i64 %185, %183
%187 = trunc i64 %186 to i32
store i32 %187, i32* %30
%188 = load i32, i32* %23
%189 = load i8**, i8*** %10
%190 = getelementptr inbounds i8*, i8** %189, i64 12
%191 = load %struct.target*, %struct.target** %9
%192 = call i64 @dump_long_unsigned_int_from_mem(i32 %188, i8** %190, %struct.target* %191)
%193 = load i32, i32* %30
%194 = sext i32 %193 to i64
%195 = add nsw i64 %194, %192
%196 = trunc i64 %195 to i32
store i32 %196, i32* %30
%197 = load i32, i32* %24
%198 = load i8**, i8*** %10
%199 = getelementptr inbounds i8*, i8** %198, i64 13
%200 = load %struct.target*, %struct.target** %9
%201 = call i64 @dump_long_unsigned_int_from_mem(i32 %197, i8** %199, %struct.target* %200)
%202 = load i32, i32* %30
%203 = sext i32 %202 to i64
%204 = add nsw i64 %203, %201
%205 = trunc i64 %204 to i32
store i32 %205, i32* %30
%206 = load i32, i32* %25
%207 = load i8**, i8*** %10
%208 = getelementptr inbounds i8*, i8** %207, i64 14
%209 = load %struct.target*, %struct.target** %9
%210 = call i64 @dump_long_unsigned_int_from_mem(i32 %206, i8** %208, %struct.target* %209)
%211 = load i32, i32* %30
%212 = sext i32 %211 to i64
%213 = add nsw i64 %212, %210
%214 = trunc i64 %213 to i32
store i32 %214, i32* %30
%215 = load i32, i32* %26
%216 = load i8**, i8*** %10
%217 = getelementptr inbounds i8*, i8** %216, i64 15
%218 = load %struct.target*, %struct.target** %9
%219 = call i64 @dump_long_unsigned_int_from_mem(i32 %215, i8** %217, %struct.target* %218)
%220 = load i32, i32* %30
%221 = sext i32 %220 to i64
%222 = add nsw i64 %221, %219
%223 = trunc i64 %222 to i32
store i32 %223, i32* %30
%224 = load i32, i32* %27
%225 = load i8**, i8*** %10
%226 = getelementptr inbounds i8*, i8** %225, i64 16
%227 = load %struct.target*, %struct.target** %9
%228 = call i64 @dump_long_unsigned_int_from_mem(i32 %224, i8** %226, %struct.target* %227)
%229 = load i32, i32* %30
%230 = sext i32 %229 to i64
%231 = add nsw i64 %230, %228
%232 = trunc i64 %231 to i32
store i32 %232, i32* %30
%233 = load i32, i32* %28
%234 = load i8**, i8*** %10
%235 = getelementptr inbounds i8*, i8** %234, i64 17
%236 = load %struct.target*, %struct.target** %9
%237 = call i64 @dump_long_unsigned_int_from_mem(i32 %233, i8** %235, %struct.target* %236)
%238 = load i32, i32* %30
%239 = sext i32 %238 to i64
%240 = add nsw i64 %239, %237
%241 = trunc i64 %240 to i32
store i32 %241, i32* %30
%242 = load i32, i32* %29
%243 = load i8**, i8*** %10
%244 = getelementptr inbounds i8*, i8** %243, i64 18
%245 = load %struct.target*, %struct.target** %9
%246 = call i64 @dump_long_long_unsigned_int_from_mem(i32 %242, i8** %244, %struct.target* %245)
%247 = load i32, i32* %30
%248 = sext i32 %247 to i64
%249 = add nsw i64 %248, %246
%250 = trunc i64 %249 to i32
store i32 %250, i32* %30
br label %251
251: ; preds = %79, %74
%252 = load i8**, i8*** %10
%253 = call i8* @copy_params(i8** %252, i32 19, i32* %30)
%254 = load i8**, i8*** %8
store i8* %253, i8** %254
%255 = load i8**, i8*** %10
%256 = call i32 @free_dumped_params(i8** %255, i32 19)
%257 = load i32, i32* %30
store i32 %257, i32* %5
br label %258
258: ; preds = %251, %70
%259 = load i32, i32* %5
ret i32 %259
}

LLVM IR (-O2):
%struct.target = type { i32 }
define i32 @dump_oldabi_stat64(i32 %0, i32 %1, i8** nocapture writeonly %2, %struct.target* %3) {
%5 = alloca i32
%6 = bitcast i32* %5 to i8*
%7 = icmp slt i32 %0, 0
br i1 %7, label %8, label %10
8: ; preds = %4
%9 = tail call i8* @malloc(i32 0)
store i8* %9, i8** %2
br label %108
10: ; preds = %4
%11 = add i32 %1, 88
%12 = add i32 %1, 84
%13 = add i32 %1, 80
%14 = add i32 %1, 76
%15 = add i32 %1, 72
%16 = add i32 %1, 68
%17 = add i32 %1, 64
%18 = add i32 %1, 56
%19 = add i32 %1, 52
%20 = add i32 %1, 44
%21 = add i32 %1, 40
%22 = add i32 %1, 32
%23 = add i32 %1, 28
%24 = add i32 %1, 24
%25 = add i32 %1, 20
%26 = add i32 %1, 16
%27 = add i32 %1, 12
%28 = add i32 %1, 8
%29 = tail call dereferenceable_or_null(152) i8* @malloc(i32 152)
%30 = bitcast i8* %29 to i8**
%31 = tail call i64 @dump_long_long_unsigned_int_from_mem(i32 %1, i8** %30, %struct.target* %3)
%32 = trunc i64 %31 to i32
%33 = getelementptr inbounds i8*, i8** %30, i64 1
%34 = tail call i64 @dump_unsigned_int_from_mem(i32 %28, i8** %33, %struct.target* %3)
%35 = trunc i64 %34 to i32
%36 = add i32 %32, %35
%37 = getelementptr inbounds i8*, i8** %30, i64 2
%38 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %27, i8** %37, %struct.target* %3)
%39 = trunc i64 %38 to i32
%40 = add i32 %36, %39
%41 = getelementptr inbounds i8*, i8** %30, i64 3
%42 = tail call i64 @dump_unsigned_int_from_mem(i32 %26, i8** %41, %struct.target* %3)
%43 = trunc i64 %42 to i32
%44 = add i32 %40, %43
%45 = getelementptr inbounds i8*, i8** %30, i64 4
%46 = tail call i64 @dump_unsigned_int_from_mem(i32 %25, i8** %45, %struct.target* %3)
%47 = trunc i64 %46 to i32
%48 = add i32 %44, %47
%49 = getelementptr inbounds i8*, i8** %30, i64 5
%50 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %24, i8** %49, %struct.target* %3)
%51 = trunc i64 %50 to i32
%52 = add i32 %48, %51
%53 = getelementptr inbounds i8*, i8** %30, i64 6
%54 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %23, i8** %53, %struct.target* %3)
%55 = trunc i64 %54 to i32
%56 = add i32 %52, %55
%57 = getelementptr inbounds i8*, i8** %30, i64 7
%58 = tail call i64 @dump_long_long_unsigned_int_from_mem(i32 %22, i8** %57, %struct.target* %3)
%59 = trunc i64 %58 to i32
%60 = add i32 %56, %59
%61 = getelementptr inbounds i8*, i8** %30, i64 8
%62 = tail call i64 @dump_unsigned_int_from_mem(i32 %21, i8** %61, %struct.target* %3)
%63 = trunc i64 %62 to i32
%64 = add i32 %60, %63
%65 = getelementptr inbounds i8*, i8** %30, i64 9
%66 = tail call i64 @dump_long_long_int_from_mem(i32 %20, i8** %65, %struct.target* %3)
%67 = trunc i64 %66 to i32
%68 = add i32 %64, %67
%69 = getelementptr inbounds i8*, i8** %30, i64 10
%70 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %19, i8** %69, %struct.target* %3)
%71 = trunc i64 %70 to i32
%72 = add i32 %68, %71
%73 = getelementptr inbounds i8*, i8** %30, i64 11
%74 = tail call i64 @dump_long_long_unsigned_int_from_mem(i32 %18, i8** %73, %struct.target* %3)
%75 = trunc i64 %74 to i32
%76 = add i32 %72, %75
%77 = getelementptr inbounds i8*, i8** %30, i64 12
%78 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %17, i8** %77, %struct.target* %3)
%79 = trunc i64 %78 to i32
%80 = add i32 %76, %79
%81 = getelementptr inbounds i8*, i8** %30, i64 13
%82 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %16, i8** %81, %struct.target* %3)
%83 = trunc i64 %82 to i32
%84 = add i32 %80, %83
%85 = getelementptr inbounds i8*, i8** %30, i64 14
%86 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %15, i8** %85, %struct.target* %3)
%87 = trunc i64 %86 to i32
%88 = add i32 %84, %87
%89 = getelementptr inbounds i8*, i8** %30, i64 15
%90 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %14, i8** %89, %struct.target* %3)
%91 = trunc i64 %90 to i32
%92 = add i32 %88, %91
%93 = getelementptr inbounds i8*, i8** %30, i64 16
%94 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %13, i8** %93, %struct.target* %3)
%95 = trunc i64 %94 to i32
%96 = add i32 %92, %95
%97 = getelementptr inbounds i8*, i8** %30, i64 17
%98 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %12, i8** %97, %struct.target* %3)
%99 = trunc i64 %98 to i32
%100 = add i32 %96, %99
%101 = getelementptr inbounds i8*, i8** %30, i64 18
%102 = tail call i64 @dump_long_long_unsigned_int_from_mem(i32 %11, i8** %101, %struct.target* %3)
%103 = trunc i64 %102 to i32
%104 = add i32 %100, %103
store i32 %104, i32* %5
%105 = call i8* @copy_params(i8** %30, i32 19, i32* %5)
store i8* %105, i8** %2
%106 = call i32 @free_dumped_params(i8** %30, i32 19)
%107 = load i32, i32* %5
br label %108
108: ; preds = %10, %8
%109 = phi i32 [ %107, %10 ], [ 0, %8 ]
ret i32 %109
}