#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_int_from_mem(unsigned int, char **, struct target *);
scalar_t__ dump_long_int_from_mem(unsigned int, char **, struct target *);
scalar_t__ dump_timeval(int, 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_timex(int depth, unsigned int addr, char **dumped_params,
               struct target *target) {
  char **dumped_type_params;
  unsigned int arm_tracing_modes = addr;
  unsigned int arm_tracing_offset = addr + 4;
  unsigned int arm_tracing_freq = addr + 8;
  unsigned int arm_tracing_maxerror = addr + 12;
  unsigned int arm_tracing_esterror = addr + 16;
  unsigned int arm_tracing_status = addr + 20;
  unsigned int arm_tracing_constant = addr + 24;
  unsigned int arm_tracing_precision = addr + 28;
  unsigned int arm_tracing_tolerance = addr + 32;
  unsigned int anonymous_inner_struct_10 = addr + 36;
  unsigned int arm_tracing_tick = addr + 44;
  unsigned int arm_tracing_ppsfreq = addr + 48;
  unsigned int arm_tracing_jitter = addr + 52;
  unsigned int arm_tracing_shift = addr + 56;
  unsigned int arm_tracing_stabil = addr + 60;
  unsigned int arm_tracing_jitcnt = addr + 64;
  unsigned int arm_tracing_calcnt = addr + 68;
  unsigned int arm_tracing_errcnt = addr + 72;
  unsigned int arm_tracing_stbcnt = addr + 76;
  unsigned int arm_tracing_tai = addr + 80;
  int len = 0;
  if (depth < 0) {
    *dumped_params = malloc(0);
    return len;
  }
  dumped_type_params = malloc(20 * (sizeof(char *)));
  if (depth >= 0) {
    len += dump_unsigned_int_from_mem(arm_tracing_modes, &dumped_type_params[0],
                                      target);
    len += dump_long_int_from_mem(arm_tracing_offset, &dumped_type_params[1],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_freq, &dumped_type_params[2],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_maxerror, &dumped_type_params[3],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_esterror, &dumped_type_params[4],
                                  target);
    len +=
        dump_int_from_mem(arm_tracing_status, &dumped_type_params[5], target);
    len += dump_long_int_from_mem(arm_tracing_constant, &dumped_type_params[6],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_precision, &dumped_type_params[7],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_tolerance, &dumped_type_params[8],
                                  target);
    len += dump_timeval(depth, anonymous_inner_struct_10,
                        &dumped_type_params[9], target);
    len += dump_long_int_from_mem(arm_tracing_tick, &dumped_type_params[10],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_ppsfreq, &dumped_type_params[11],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_jitter, &dumped_type_params[12],
                                  target);
    len +=
        dump_int_from_mem(arm_tracing_shift, &dumped_type_params[13], target);
    len += dump_long_int_from_mem(arm_tracing_stabil, &dumped_type_params[14],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_jitcnt, &dumped_type_params[15],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_calcnt, &dumped_type_params[16],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_errcnt, &dumped_type_params[17],
                                  target);
    len += dump_long_int_from_mem(arm_tracing_stbcnt, &dumped_type_params[18],
                                  target);
    len += dump_int_from_mem(arm_tracing_tai, &dumped_type_params[19], target);
  }
  *dumped_params = copy_params(dumped_type_params, 20, &len);
  free_dumped_params(dumped_type_params, 20);
  return len;
}


x86 assembly (clang, -O0):
<dump_timex>:
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    $0x4,%eax
mov    %eax,-0x30(%rbp)
mov    -0xc(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
add    $0xc,%eax
mov    %eax,-0x38(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x3c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x14,%eax
mov    %eax,-0x40(%rbp)
mov    -0xc(%rbp),%eax
add    $0x18,%eax
mov    %eax,-0x44(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1c,%eax
mov    %eax,-0x48(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%eax
mov    %eax,-0x4c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x24,%eax
mov    %eax,-0x50(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2c,%eax
mov    %eax,-0x54(%rbp)
mov    -0xc(%rbp),%eax
add    $0x30,%eax
mov    %eax,-0x58(%rbp)
mov    -0xc(%rbp),%eax
add    $0x34,%eax
mov    %eax,-0x5c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x38,%eax
mov    %eax,-0x60(%rbp)
mov    -0xc(%rbp),%eax
add    $0x3c,%eax
mov    %eax,-0x64(%rbp)
mov    -0xc(%rbp),%eax
add    $0x40,%eax
mov    %eax,-0x68(%rbp)
mov    -0xc(%rbp),%eax
add    $0x44,%eax
mov    %eax,-0x6c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x48,%eax
mov    %eax,-0x70(%rbp)
mov    -0xc(%rbp),%eax
add    $0x4c,%eax
mov    %eax,-0x74(%rbp)
mov    -0xc(%rbp),%eax
add    $0x50,%eax
mov    %eax,-0x78(%rbp)
movl   $0x0,-0x7c(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1267 <dump_timex+0xf7>
xor    %edi,%edi
call   1070 <malloc@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x7c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    154e <dump_timex+0x3de>
mov    $0xa0,%edi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     151e <dump_timex+0x3ae>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1080 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x8,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x10,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x18,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x20,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x28,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x30,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x38,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x40,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x50(%rbp),%esi
mov    -0x28(%rbp),%rdx
add    $0x48,%rdx
mov    -0x20(%rbp),%rcx
call   1060 <dump_timeval@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x50,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x58,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x60,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x60(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x68,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x70,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x78,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x6c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x80,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x70(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x88,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x90,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x98,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x7c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x7c(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x14,%esi
lea    -0x7c(%rbp),%rdx
call   1050 <copy_params@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rdi
mov    $0x14,%esi
call   1040 <free_dumped_params@plt>
mov    -0x7c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_timex>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rdx,%rbp
test   %edi,%edi
js     1426 <dump_timex+0x2b6>
mov    %rcx,%r13
mov    %esi,%r12d
lea    0x50(%r12),%eax
mov    %eax,0x4c(%rsp)
lea    0x4c(%r12),%eax
mov    %eax,0x48(%rsp)
lea    0x48(%r12),%eax
mov    %eax,0x44(%rsp)
lea    0x44(%r12),%eax
mov    %eax,0x40(%rsp)
lea    0x40(%r12),%eax
mov    %eax,0x3c(%rsp)
lea    0x3c(%r12),%eax
mov    %eax,0x38(%rsp)
lea    0x38(%r12),%eax
mov    %eax,0x34(%rsp)
lea    0x34(%r12),%eax
mov    %eax,0x30(%rsp)
lea    0x30(%r12),%eax
mov    %eax,0x2c(%rsp)
lea    0x2c(%r12),%eax
mov    %eax,0x28(%rsp)
lea    0x24(%r12),%eax
mov    %eax,0x24(%rsp)
lea    0x20(%r12),%eax
mov    %eax,0x20(%rsp)
lea    0x1c(%r12),%eax
mov    %eax,0x18(%rsp)
lea    0x18(%r12),%eax
mov    %eax,0x14(%rsp)
lea    0x14(%r12),%eax
mov    %eax,0x10(%rsp)
lea    0x10(%r12),%eax
mov    %eax,0xc(%rsp)
lea    0xc(%r12),%eax
mov    %eax,0x8(%rsp)
lea    0x8(%r12),%eax
mov    %eax,0x4(%rsp)
mov    %rbp,0x50(%rsp)
lea    0x4(%r12),%r14d
mov    %edi,0x1c(%rsp)
mov    $0xa0,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    %r12d,%edi
mov    %rax,%rsi
mov    %r13,%rdx
call   1080 <dump_unsigned_int_from_mem@plt>
mov    %rax,%r12
lea    0x8(%r15),%rsi
mov    %r14d,%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbx
add    %r12d,%ebx
lea    0x10(%r15),%rsi
mov    0x4(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x18(%r15),%rsi
mov    0x8(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x20(%r15),%rsi
mov    0xc(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x28(%r15),%rsi
mov    0x10(%rsp),%edi
mov    %r13,%rdx
call   1090 <dump_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x30(%r15),%rsi
mov    0x14(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x38(%r15),%rsi
mov    0x18(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x40(%r15),%rsi
mov    0x20(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x48(%r15),%rdx
mov    0x1c(%rsp),%edi
mov    0x24(%rsp),%esi
mov    %r13,%rcx
call   1060 <dump_timeval@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x50(%r15),%rsi
mov    0x28(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x58(%r15),%rsi
mov    0x2c(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x60(%r15),%rsi
mov    0x30(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x68(%r15),%rsi
mov    0x34(%rsp),%edi
mov    %r13,%rdx
call   1090 <dump_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x70(%r15),%rsi
mov    0x38(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x78(%r15),%rsi
mov    0x3c(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x80(%r15),%rsi
mov    0x40(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x88(%r15),%rsi
mov    0x44(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x90(%r15),%rsi
mov    0x48(%rsp),%edi
mov    %r13,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x98(%r15),%rsi
mov    0x4c(%rsp),%edi
mov    %r13,%rdx
call   1090 <dump_int_from_mem@plt>
add    %ebp,%eax
mov    %eax,(%rsp)
mov    %rsp,%rdx
mov    %r15,%rdi
mov    $0x14,%esi
call   1050 <copy_params@plt>
mov    0x50(%rsp),%rcx
mov    %rax,(%rcx)
mov    %r15,%rdi
mov    $0x14,%esi
call   1040 <free_dumped_params@plt>
mov    (%rsp),%ebx
jmp    1433 <dump_timex+0x2c3>
xor    %ebx,%ebx
xor    %edi,%edi
call   1070 <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_timex(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
%31 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i8** %2, i8*** %8
store %struct.target* %3, %struct.target** %9
%32 = load i32, i32* %7
store i32 %32, i32* %11
%33 = load i32, i32* %7
%34 = add i32 %33, 4
store i32 %34, i32* %12
%35 = load i32, i32* %7
%36 = add i32 %35, 8
store i32 %36, i32* %13
%37 = load i32, i32* %7
%38 = add i32 %37, 12
store i32 %38, i32* %14
%39 = load i32, i32* %7
%40 = add i32 %39, 16
store i32 %40, i32* %15
%41 = load i32, i32* %7
%42 = add i32 %41, 20
store i32 %42, i32* %16
%43 = load i32, i32* %7
%44 = add i32 %43, 24
store i32 %44, i32* %17
%45 = load i32, i32* %7
%46 = add i32 %45, 28
store i32 %46, i32* %18
%47 = load i32, i32* %7
%48 = add i32 %47, 32
store i32 %48, i32* %19
%49 = load i32, i32* %7
%50 = add i32 %49, 36
store i32 %50, i32* %20
%51 = load i32, i32* %7
%52 = add i32 %51, 44
store i32 %52, i32* %21
%53 = load i32, i32* %7
%54 = add i32 %53, 48
store i32 %54, i32* %22
%55 = load i32, i32* %7
%56 = add i32 %55, 52
store i32 %56, i32* %23
%57 = load i32, i32* %7
%58 = add i32 %57, 56
store i32 %58, i32* %24
%59 = load i32, i32* %7
%60 = add i32 %59, 60
store i32 %60, i32* %25
%61 = load i32, i32* %7
%62 = add i32 %61, 64
store i32 %62, i32* %26
%63 = load i32, i32* %7
%64 = add i32 %63, 68
store i32 %64, i32* %27
%65 = load i32, i32* %7
%66 = add i32 %65, 72
store i32 %66, i32* %28
%67 = load i32, i32* %7
%68 = add i32 %67, 76
store i32 %68, i32* %29
%69 = load i32, i32* %7
%70 = add i32 %69, 80
store i32 %70, i32* %30
store i32 0, i32* %31
%71 = load i32, i32* %6
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %4
%74 = call i8* @malloc(i32 0)
%75 = load i8**, i8*** %8
store i8* %74, i8** %75
%76 = load i32, i32* %31
store i32 %76, i32* %5
br label %271
77: ; preds = %4
%78 = call i8* @malloc(i32 160)
%79 = bitcast i8* %78 to i8**
store i8** %79, i8*** %10
%80 = load i32, i32* %6
%81 = icmp sge i32 %80, 0
br i1 %81, label %82, label %264
82: ; preds = %77
%83 = load i32, i32* %11
%84 = load i8**, i8*** %10
%85 = getelementptr inbounds i8*, i8** %84, i64 0
%86 = load %struct.target*, %struct.target** %9
%87 = call i64 @dump_unsigned_int_from_mem(i32 %83, i8** %85, %struct.target* %86)
%88 = load i32, i32* %31
%89 = sext i32 %88 to i64
%90 = add nsw i64 %89, %87
%91 = trunc i64 %90 to i32
store i32 %91, i32* %31
%92 = load i32, i32* %12
%93 = load i8**, i8*** %10
%94 = getelementptr inbounds i8*, i8** %93, i64 1
%95 = load %struct.target*, %struct.target** %9
%96 = call i64 @dump_long_int_from_mem(i32 %92, i8** %94, %struct.target* %95)
%97 = load i32, i32* %31
%98 = sext i32 %97 to i64
%99 = add nsw i64 %98, %96
%100 = trunc i64 %99 to i32
store i32 %100, i32* %31
%101 = load i32, i32* %13
%102 = load i8**, i8*** %10
%103 = getelementptr inbounds i8*, i8** %102, i64 2
%104 = load %struct.target*, %struct.target** %9
%105 = call i64 @dump_long_int_from_mem(i32 %101, i8** %103, %struct.target* %104)
%106 = load i32, i32* %31
%107 = sext i32 %106 to i64
%108 = add nsw i64 %107, %105
%109 = trunc i64 %108 to i32
store i32 %109, i32* %31
%110 = load i32, i32* %14
%111 = load i8**, i8*** %10
%112 = getelementptr inbounds i8*, i8** %111, i64 3
%113 = load %struct.target*, %struct.target** %9
%114 = call i64 @dump_long_int_from_mem(i32 %110, i8** %112, %struct.target* %113)
%115 = load i32, i32* %31
%116 = sext i32 %115 to i64
%117 = add nsw i64 %116, %114
%118 = trunc i64 %117 to i32
store i32 %118, i32* %31
%119 = load i32, i32* %15
%120 = load i8**, i8*** %10
%121 = getelementptr inbounds i8*, i8** %120, i64 4
%122 = load %struct.target*, %struct.target** %9
%123 = call i64 @dump_long_int_from_mem(i32 %119, i8** %121, %struct.target* %122)
%124 = load i32, i32* %31
%125 = sext i32 %124 to i64
%126 = add nsw i64 %125, %123
%127 = trunc i64 %126 to i32
store i32 %127, i32* %31
%128 = load i32, i32* %16
%129 = load i8**, i8*** %10
%130 = getelementptr inbounds i8*, i8** %129, i64 5
%131 = load %struct.target*, %struct.target** %9
%132 = call i64 @dump_int_from_mem(i32 %128, i8** %130, %struct.target* %131)
%133 = load i32, i32* %31
%134 = sext i32 %133 to i64
%135 = add nsw i64 %134, %132
%136 = trunc i64 %135 to i32
store i32 %136, i32* %31
%137 = load i32, i32* %17
%138 = load i8**, i8*** %10
%139 = getelementptr inbounds i8*, i8** %138, i64 6
%140 = load %struct.target*, %struct.target** %9
%141 = call i64 @dump_long_int_from_mem(i32 %137, i8** %139, %struct.target* %140)
%142 = load i32, i32* %31
%143 = sext i32 %142 to i64
%144 = add nsw i64 %143, %141
%145 = trunc i64 %144 to i32
store i32 %145, i32* %31
%146 = load i32, i32* %18
%147 = load i8**, i8*** %10
%148 = getelementptr inbounds i8*, i8** %147, i64 7
%149 = load %struct.target*, %struct.target** %9
%150 = call i64 @dump_long_int_from_mem(i32 %146, i8** %148, %struct.target* %149)
%151 = load i32, i32* %31
%152 = sext i32 %151 to i64
%153 = add nsw i64 %152, %150
%154 = trunc i64 %153 to i32
store i32 %154, i32* %31
%155 = load i32, i32* %19
%156 = load i8**, i8*** %10
%157 = getelementptr inbounds i8*, i8** %156, i64 8
%158 = load %struct.target*, %struct.target** %9
%159 = call i64 @dump_long_int_from_mem(i32 %155, i8** %157, %struct.target* %158)
%160 = load i32, i32* %31
%161 = sext i32 %160 to i64
%162 = add nsw i64 %161, %159
%163 = trunc i64 %162 to i32
store i32 %163, i32* %31
%164 = load i32, i32* %6
%165 = load i32, i32* %20
%166 = load i8**, i8*** %10
%167 = getelementptr inbounds i8*, i8** %166, i64 9
%168 = load %struct.target*, %struct.target** %9
%169 = call i64 @dump_timeval(i32 %164, i32 %165, i8** %167, %struct.target* %168)
%170 = load i32, i32* %31
%171 = sext i32 %170 to i64
%172 = add nsw i64 %171, %169
%173 = trunc i64 %172 to i32
store i32 %173, i32* %31
%174 = load i32, i32* %21
%175 = load i8**, i8*** %10
%176 = getelementptr inbounds i8*, i8** %175, i64 10
%177 = load %struct.target*, %struct.target** %9
%178 = call i64 @dump_long_int_from_mem(i32 %174, i8** %176, %struct.target* %177)
%179 = load i32, i32* %31
%180 = sext i32 %179 to i64
%181 = add nsw i64 %180, %178
%182 = trunc i64 %181 to i32
store i32 %182, i32* %31
%183 = load i32, i32* %22
%184 = load i8**, i8*** %10
%185 = getelementptr inbounds i8*, i8** %184, i64 11
%186 = load %struct.target*, %struct.target** %9
%187 = call i64 @dump_long_int_from_mem(i32 %183, i8** %185, %struct.target* %186)
%188 = load i32, i32* %31
%189 = sext i32 %188 to i64
%190 = add nsw i64 %189, %187
%191 = trunc i64 %190 to i32
store i32 %191, i32* %31
%192 = load i32, i32* %23
%193 = load i8**, i8*** %10
%194 = getelementptr inbounds i8*, i8** %193, i64 12
%195 = load %struct.target*, %struct.target** %9
%196 = call i64 @dump_long_int_from_mem(i32 %192, i8** %194, %struct.target* %195)
%197 = load i32, i32* %31
%198 = sext i32 %197 to i64
%199 = add nsw i64 %198, %196
%200 = trunc i64 %199 to i32
store i32 %200, i32* %31
%201 = load i32, i32* %24
%202 = load i8**, i8*** %10
%203 = getelementptr inbounds i8*, i8** %202, i64 13
%204 = load %struct.target*, %struct.target** %9
%205 = call i64 @dump_int_from_mem(i32 %201, i8** %203, %struct.target* %204)
%206 = load i32, i32* %31
%207 = sext i32 %206 to i64
%208 = add nsw i64 %207, %205
%209 = trunc i64 %208 to i32
store i32 %209, i32* %31
%210 = load i32, i32* %25
%211 = load i8**, i8*** %10
%212 = getelementptr inbounds i8*, i8** %211, i64 14
%213 = load %struct.target*, %struct.target** %9
%214 = call i64 @dump_long_int_from_mem(i32 %210, i8** %212, %struct.target* %213)
%215 = load i32, i32* %31
%216 = sext i32 %215 to i64
%217 = add nsw i64 %216, %214
%218 = trunc i64 %217 to i32
store i32 %218, i32* %31
%219 = load i32, i32* %26
%220 = load i8**, i8*** %10
%221 = getelementptr inbounds i8*, i8** %220, i64 15
%222 = load %struct.target*, %struct.target** %9
%223 = call i64 @dump_long_int_from_mem(i32 %219, i8** %221, %struct.target* %222)
%224 = load i32, i32* %31
%225 = sext i32 %224 to i64
%226 = add nsw i64 %225, %223
%227 = trunc i64 %226 to i32
store i32 %227, i32* %31
%228 = load i32, i32* %27
%229 = load i8**, i8*** %10
%230 = getelementptr inbounds i8*, i8** %229, i64 16
%231 = load %struct.target*, %struct.target** %9
%232 = call i64 @dump_long_int_from_mem(i32 %228, i8** %230, %struct.target* %231)
%233 = load i32, i32* %31
%234 = sext i32 %233 to i64
%235 = add nsw i64 %234, %232
%236 = trunc i64 %235 to i32
store i32 %236, i32* %31
%237 = load i32, i32* %28
%238 = load i8**, i8*** %10
%239 = getelementptr inbounds i8*, i8** %238, i64 17
%240 = load %struct.target*, %struct.target** %9
%241 = call i64 @dump_long_int_from_mem(i32 %237, i8** %239, %struct.target* %240)
%242 = load i32, i32* %31
%243 = sext i32 %242 to i64
%244 = add nsw i64 %243, %241
%245 = trunc i64 %244 to i32
store i32 %245, i32* %31
%246 = load i32, i32* %29
%247 = load i8**, i8*** %10
%248 = getelementptr inbounds i8*, i8** %247, i64 18
%249 = load %struct.target*, %struct.target** %9
%250 = call i64 @dump_long_int_from_mem(i32 %246, i8** %248, %struct.target* %249)
%251 = load i32, i32* %31
%252 = sext i32 %251 to i64
%253 = add nsw i64 %252, %250
%254 = trunc i64 %253 to i32
store i32 %254, i32* %31
%255 = load i32, i32* %30
%256 = load i8**, i8*** %10
%257 = getelementptr inbounds i8*, i8** %256, i64 19
%258 = load %struct.target*, %struct.target** %9
%259 = call i64 @dump_int_from_mem(i32 %255, i8** %257, %struct.target* %258)
%260 = load i32, i32* %31
%261 = sext i32 %260 to i64
%262 = add nsw i64 %261, %259
%263 = trunc i64 %262 to i32
store i32 %263, i32* %31
br label %264
264: ; preds = %82, %77
%265 = load i8**, i8*** %10
%266 = call i8* @copy_params(i8** %265, i32 20, i32* %31)
%267 = load i8**, i8*** %8
store i8* %266, i8** %267
%268 = load i8**, i8*** %10
%269 = call i32 @free_dumped_params(i8** %268, i32 20)
%270 = load i32, i32* %31
store i32 %270, i32* %5
br label %271
271: ; preds = %264, %73
%272 = load i32, i32* %5
ret i32 %272
}

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