#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_unsigned_int_from_mem(unsigned int, char **,
                                           struct target *);
scalar_t__ dump_ptr(unsigned int, char **);
scalar_t__ dump_timeval(int, unsigned int, char **, struct target *);
int /*<<< orphan*/ free_dumped_params(char **, int);
void *malloc(int);
unsigned int read_ptr_from_mem(unsigned int, struct target *);
int dump_sel_arg_struct(int depth, unsigned int addr, char **dumped_params,
                        struct target *target) {
  char **dumped_type_params;
  unsigned int arm_tracing_n = addr;
  unsigned int arm_tracing_inp = addr + 4;
  unsigned int arm_tracing_outp = addr + 8;
  unsigned int arm_tracing_exp = addr + 12;
  unsigned int arm_tracing_tvp = addr + 16;
  int len = 0;
  if (depth < 0) {
    *dumped_params = malloc(0);
    return len;
  }
  dumped_type_params = malloc(5 * (sizeof(char *)));
  arm_tracing_inp = read_ptr_from_mem(arm_tracing_inp, target);
  arm_tracing_outp = read_ptr_from_mem(arm_tracing_outp, target);
  arm_tracing_exp = read_ptr_from_mem(arm_tracing_exp, target);
  arm_tracing_tvp = read_ptr_from_mem(arm_tracing_tvp, target);
  if (depth == 0) {
    len += dump_long_unsigned_int_from_mem(arm_tracing_n,
                                           &dumped_type_params[0], target);
    len += dump_ptr(arm_tracing_inp, &dumped_type_params[1]);
    len += dump_ptr(arm_tracing_outp, &dumped_type_params[2]);
    len += dump_ptr(arm_tracing_exp, &dumped_type_params[3]);
    len += dump_ptr(arm_tracing_tvp, &dumped_type_params[4]);
    *dumped_params = copy_params(dumped_type_params, 5, &len);
    free_dumped_params(dumped_type_params, 5);
    return len;
  }
  if (depth >= 1) {
    len += dump_long_unsigned_int_from_mem(arm_tracing_n,
                                           &dumped_type_params[0], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_inp,
                                           &dumped_type_params[1], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_outp,
                                           &dumped_type_params[2], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_exp,
                                           &dumped_type_params[3], target);
    len += dump_timeval(depth - 1, arm_tracing_tvp, &dumped_type_params[4],
                        target);
  }
  *dumped_params = copy_params(dumped_type_params, 5, &len);
  free_dumped_params(dumped_type_params, 5);
  return len;
}


x86 assembly (clang, -O0):
<dump_sel_arg_struct>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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)
movl   $0x0,-0x40(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    11dd <dump_sel_arg_struct+0x6d>
xor    %edi,%edi
call   1090 <malloc@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x40(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <dump_sel_arg_struct+0x268>
mov    $0x28,%edi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x20(%rbp),%rsi
call   1080 <read_ptr_from_mem@plt>
mov    %eax,-0x30(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x20(%rbp),%rsi
call   1080 <read_ptr_from_mem@plt>
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x20(%rbp),%rsi
call   1080 <read_ptr_from_mem@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x20(%rbp),%rsi
call   1080 <read_ptr_from_mem@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    12f7 <dump_sel_arg_struct+0x187>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x8,%rsi
call   1050 <dump_ptr@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x10,%rsi
call   1050 <dump_ptr@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x18,%rsi
call   1050 <dump_ptr@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x20,%rsi
call   1050 <dump_ptr@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x5,%esi
lea    -0x40(%rbp),%rdx
call   1060 <copy_params@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rdi
mov    $0x5,%esi
call   1040 <free_dumped_params@plt>
mov    -0x40(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13d8 <dump_sel_arg_struct+0x268>
cmpl   $0x1,-0x8(%rbp)
jl     13a8 <dump_sel_arg_struct+0x238>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x8,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x10,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x18,%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x3c(%rbp),%esi
mov    -0x28(%rbp),%rdx
add    $0x20,%rdx
mov    -0x20(%rbp),%rcx
call   1070 <dump_timeval@plt>
mov    %rax,%rcx
movslq -0x40(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x40(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x5,%esi
lea    -0x40(%rbp),%rdx
call   1060 <copy_params@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rdi
mov    $0x5,%esi
call   1040 <free_dumped_params@plt>
mov    -0x40(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_sel_arg_struct>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%rbp
movl   $0x0,0xc(%rsp)
test   %edi,%edi
js     1275 <dump_sel_arg_struct+0x105>
mov    %rcx,%rbx
mov    %esi,%r12d
mov    %edi,%r13d
mov    %rbp,0x20(%rsp)
lea    0x10(%r12),%eax
mov    %eax,0x10(%rsp)
lea    0xc(%r12),%eax
mov    %eax,0x1c(%rsp)
lea    0x8(%r12),%ebp
lea    0x4(%r12),%r14d
mov    $0x28,%edi
call   1090 <malloc@plt>
mov    %rax,%r15
mov    %r14d,%edi
mov    %rbx,%rsi
call   1080 <read_ptr_from_mem@plt>
mov    %eax,0x14(%rsp)
mov    %ebp,%edi
mov    %rbx,%rsi
call   1080 <read_ptr_from_mem@plt>
mov    %eax,0x18(%rsp)
mov    0x1c(%rsp),%edi
mov    %rbx,%rsi
call   1080 <read_ptr_from_mem@plt>
mov    %eax,%ebp
mov    0x10(%rsp),%edi
mov    %rbx,%rsi
call   1080 <read_ptr_from_mem@plt>
mov    %eax,0x10(%rsp)
mov    %r12d,%edi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%r14
lea    0x8(%r15),%rsi
test   %r13d,%r13d
je     1282 <dump_sel_arg_struct+0x112>
mov    0x14(%rsp),%edi
mov    %rbx,%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
add    %eax,%r14d
lea    0x10(%r15),%rsi
mov    0x18(%rsp),%edi
mov    %rbx,%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
mov    %ebp,%edi
mov    %rax,%rbp
add    %r14d,%ebp
lea    0x18(%r15),%rsi
mov    %rbx,%rdx
call   1030 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%r14
add    %ebp,%r14d
add    $0xffffffff,%r13d
mov    %r15,%rdx
add    $0x20,%rdx
mov    %r13d,%edi
mov    0x10(%rsp),%esi
mov    %rbx,%rcx
call   1070 <dump_timeval@plt>
add    %r14d,%eax
jmp    12c3 <dump_sel_arg_struct+0x153>
xor    %edi,%edi
call   1090 <malloc@plt>
mov    %rax,0x0(%rbp)
jmp    12ee <dump_sel_arg_struct+0x17e>
mov    0x14(%rsp),%edi
call   1050 <dump_ptr@plt>
add    %eax,%r14d
lea    0x10(%r15),%rsi
mov    0x18(%rsp),%edi
call   1050 <dump_ptr@plt>
mov    %rax,%rbx
add    %r14d,%ebx
lea    0x18(%r15),%rsi
mov    %ebp,%edi
call   1050 <dump_ptr@plt>
mov    %rax,%rbp
add    %ebx,%ebp
mov    %r15,%rsi
add    $0x20,%rsi
mov    0x10(%rsp),%edi
call   1050 <dump_ptr@plt>
add    %ebp,%eax
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdx
mov    %r15,%rdi
mov    $0x5,%esi
call   1060 <copy_params@plt>
mov    0x20(%rsp),%rcx
mov    %rax,(%rcx)
mov    %r15,%rdi
mov    $0x5,%esi
call   1040 <free_dumped_params@plt>
mov    0xc(%rsp),%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.target = type { i32 }
define i32 @dump_sel_arg_struct(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
store i32 %0, i32* %6
store i32 %1, i32* %7
store i8** %2, i8*** %8
store %struct.target* %3, %struct.target** %9
%17 = load i32, i32* %7
store i32 %17, i32* %11
%18 = load i32, i32* %7
%19 = add i32 %18, 4
store i32 %19, i32* %12
%20 = load i32, i32* %7
%21 = add i32 %20, 8
store i32 %21, i32* %13
%22 = load i32, i32* %7
%23 = add i32 %22, 12
store i32 %23, i32* %14
%24 = load i32, i32* %7
%25 = add i32 %24, 16
store i32 %25, i32* %15
store i32 0, i32* %16
%26 = load i32, i32* %6
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %4
%29 = call i8* @malloc(i32 0)
%30 = load i8**, i8*** %8
store i8* %29, i8** %30
%31 = load i32, i32* %16
store i32 %31, i32* %5
br label %155
32: ; preds = %4
%33 = call i8* @malloc(i32 40)
%34 = bitcast i8* %33 to i8**
store i8** %34, i8*** %10
%35 = load i32, i32* %12
%36 = load %struct.target*, %struct.target** %9
%37 = call i32 @read_ptr_from_mem(i32 %35, %struct.target* %36)
store i32 %37, i32* %12
%38 = load i32, i32* %13
%39 = load %struct.target*, %struct.target** %9
%40 = call i32 @read_ptr_from_mem(i32 %38, %struct.target* %39)
store i32 %40, i32* %13
%41 = load i32, i32* %14
%42 = load %struct.target*, %struct.target** %9
%43 = call i32 @read_ptr_from_mem(i32 %41, %struct.target* %42)
store i32 %43, i32* %14
%44 = load i32, i32* %15
%45 = load %struct.target*, %struct.target** %9
%46 = call i32 @read_ptr_from_mem(i32 %44, %struct.target* %45)
store i32 %46, i32* %15
%47 = load i32, i32* %6
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %97
49: ; preds = %32
%50 = load i32, i32* %11
%51 = load i8**, i8*** %10
%52 = getelementptr inbounds i8*, i8** %51, i64 0
%53 = load %struct.target*, %struct.target** %9
%54 = call i64 @dump_long_unsigned_int_from_mem(i32 %50, i8** %52, %struct.target* %53)
%55 = load i32, i32* %16
%56 = sext i32 %55 to i64
%57 = add nsw i64 %56, %54
%58 = trunc i64 %57 to i32
store i32 %58, i32* %16
%59 = load i32, i32* %12
%60 = load i8**, i8*** %10
%61 = getelementptr inbounds i8*, i8** %60, i64 1
%62 = call i64 @dump_ptr(i32 %59, i8** %61)
%63 = load i32, i32* %16
%64 = sext i32 %63 to i64
%65 = add nsw i64 %64, %62
%66 = trunc i64 %65 to i32
store i32 %66, i32* %16
%67 = load i32, i32* %13
%68 = load i8**, i8*** %10
%69 = getelementptr inbounds i8*, i8** %68, i64 2
%70 = call i64 @dump_ptr(i32 %67, i8** %69)
%71 = load i32, i32* %16
%72 = sext i32 %71 to i64
%73 = add nsw i64 %72, %70
%74 = trunc i64 %73 to i32
store i32 %74, i32* %16
%75 = load i32, i32* %14
%76 = load i8**, i8*** %10
%77 = getelementptr inbounds i8*, i8** %76, i64 3
%78 = call i64 @dump_ptr(i32 %75, i8** %77)
%79 = load i32, i32* %16
%80 = sext i32 %79 to i64
%81 = add nsw i64 %80, %78
%82 = trunc i64 %81 to i32
store i32 %82, i32* %16
%83 = load i32, i32* %15
%84 = load i8**, i8*** %10
%85 = getelementptr inbounds i8*, i8** %84, i64 4
%86 = call i64 @dump_ptr(i32 %83, i8** %85)
%87 = load i32, i32* %16
%88 = sext i32 %87 to i64
%89 = add nsw i64 %88, %86
%90 = trunc i64 %89 to i32
store i32 %90, i32* %16
%91 = load i8**, i8*** %10
%92 = call i8* @copy_params(i8** %91, i32 5, i32* %16)
%93 = load i8**, i8*** %8
store i8* %92, i8** %93
%94 = load i8**, i8*** %10
%95 = call i32 @free_dumped_params(i8** %94, i32 5)
%96 = load i32, i32* %16
store i32 %96, i32* %5
br label %155
97: ; preds = %32
%98 = load i32, i32* %6
%99 = icmp sge i32 %98, 1
br i1 %99, label %100, label %148
100: ; preds = %97
%101 = load i32, i32* %11
%102 = load i8**, i8*** %10
%103 = getelementptr inbounds i8*, i8** %102, i64 0
%104 = load %struct.target*, %struct.target** %9
%105 = call i64 @dump_long_unsigned_int_from_mem(i32 %101, i8** %103, %struct.target* %104)
%106 = load i32, i32* %16
%107 = sext i32 %106 to i64
%108 = add nsw i64 %107, %105
%109 = trunc i64 %108 to i32
store i32 %109, i32* %16
%110 = load i32, i32* %12
%111 = load i8**, i8*** %10
%112 = getelementptr inbounds i8*, i8** %111, i64 1
%113 = load %struct.target*, %struct.target** %9
%114 = call i64 @dump_long_unsigned_int_from_mem(i32 %110, i8** %112, %struct.target* %113)
%115 = load i32, i32* %16
%116 = sext i32 %115 to i64
%117 = add nsw i64 %116, %114
%118 = trunc i64 %117 to i32
store i32 %118, i32* %16
%119 = load i32, i32* %13
%120 = load i8**, i8*** %10
%121 = getelementptr inbounds i8*, i8** %120, i64 2
%122 = load %struct.target*, %struct.target** %9
%123 = call i64 @dump_long_unsigned_int_from_mem(i32 %119, i8** %121, %struct.target* %122)
%124 = load i32, i32* %16
%125 = sext i32 %124 to i64
%126 = add nsw i64 %125, %123
%127 = trunc i64 %126 to i32
store i32 %127, i32* %16
%128 = load i32, i32* %14
%129 = load i8**, i8*** %10
%130 = getelementptr inbounds i8*, i8** %129, i64 3
%131 = load %struct.target*, %struct.target** %9
%132 = call i64 @dump_long_unsigned_int_from_mem(i32 %128, i8** %130, %struct.target* %131)
%133 = load i32, i32* %16
%134 = sext i32 %133 to i64
%135 = add nsw i64 %134, %132
%136 = trunc i64 %135 to i32
store i32 %136, i32* %16
%137 = load i32, i32* %6
%138 = sub nsw i32 %137, 1
%139 = load i32, i32* %15
%140 = load i8**, i8*** %10
%141 = getelementptr inbounds i8*, i8** %140, i64 4
%142 = load %struct.target*, %struct.target** %9
%143 = call i64 @dump_timeval(i32 %138, i32 %139, i8** %141, %struct.target* %142)
%144 = load i32, i32* %16
%145 = sext i32 %144 to i64
%146 = add nsw i64 %145, %143
%147 = trunc i64 %146 to i32
store i32 %147, i32* %16
br label %148
148: ; preds = %100, %97
%149 = load i8**, i8*** %10
%150 = call i8* @copy_params(i8** %149, i32 5, i32* %16)
%151 = load i8**, i8*** %8
store i8* %150, i8** %151
%152 = load i8**, i8*** %10
%153 = call i32 @free_dumped_params(i8** %152, i32 5)
%154 = load i32, i32* %16
store i32 %154, i32* %5
br label %155
155: ; preds = %148, %49, %28
%156 = load i32, i32* %5
ret i32 %156
}

LLVM IR (-O2):
%struct.target = type { i32 }
define i32 @dump_sel_arg_struct(i32 %0, i32 %1, i8** nocapture writeonly %2, %struct.target* %3) {
%5 = alloca i32
%6 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%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 %62
10: ; preds = %4
%11 = add i32 %1, 16
%12 = add i32 %1, 12
%13 = add i32 %1, 8
%14 = add i32 %1, 4
%15 = tail call dereferenceable_or_null(40) i8* @malloc(i32 40)
%16 = bitcast i8* %15 to i8**
%17 = tail call i32 @read_ptr_from_mem(i32 %14, %struct.target* %3)
%18 = tail call i32 @read_ptr_from_mem(i32 %13, %struct.target* %3)
%19 = tail call i32 @read_ptr_from_mem(i32 %12, %struct.target* %3)
%20 = tail call i32 @read_ptr_from_mem(i32 %11, %struct.target* %3)
%21 = icmp eq i32 %0, 0
%22 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %1, i8** %16, %struct.target* %3)
%23 = trunc i64 %22 to i32
%24 = getelementptr inbounds i8*, i8** %16, i64 1
br i1 %21, label %25, label %43
25: ; preds = %10
%26 = tail call i64 @dump_ptr(i32 %17, i8** %24)
%27 = trunc i64 %26 to i32
%28 = add i32 %23, %27
%29 = getelementptr inbounds i8*, i8** %16, i64 2
%30 = tail call i64 @dump_ptr(i32 %18, i8** %29)
%31 = trunc i64 %30 to i32
%32 = add i32 %28, %31
%33 = getelementptr inbounds i8*, i8** %16, i64 3
%34 = tail call i64 @dump_ptr(i32 %19, i8** %33)
%35 = trunc i64 %34 to i32
%36 = add i32 %32, %35
%37 = getelementptr inbounds i8*, i8** %16, i64 4
%38 = tail call i64 @dump_ptr(i32 %20, i8** %37)
%39 = trunc i64 %38 to i32
%40 = add i32 %36, %39
store i32 %40, i32* %5
%41 = call i8* @copy_params(i8** %16, i32 5, i32* %5)
store i8* %41, i8** %2
%42 = call i32 @free_dumped_params(i8** %16, i32 5)
br label %62
43: ; preds = %10
%44 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %17, i8** %24, %struct.target* %3)
%45 = trunc i64 %44 to i32
%46 = add i32 %23, %45
%47 = getelementptr inbounds i8*, i8** %16, i64 2
%48 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %18, i8** %47, %struct.target* %3)
%49 = trunc i64 %48 to i32
%50 = add i32 %46, %49
%51 = getelementptr inbounds i8*, i8** %16, i64 3
%52 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %19, i8** %51, %struct.target* %3)
%53 = trunc i64 %52 to i32
%54 = add i32 %50, %53
%55 = add nsw i32 %0, -1
%56 = getelementptr inbounds i8*, i8** %16, i64 4
%57 = tail call i64 @dump_timeval(i32 %55, i32 %20, i8** %56, %struct.target* %3)
%58 = trunc i64 %57 to i32
%59 = add i32 %54, %58
store i32 %59, i32* %5
%60 = call i8* @copy_params(i8** %16, i32 5, i32* %5)
store i8* %60, i8** %2
%61 = call i32 @free_dumped_params(i8** %16, i32 5)
br label %62
62: ; preds = %43, %25, %8
%63 = load i32, i32* %5
ret i32 %63
}