#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_char_from_mem(unsigned int, char **, struct target *);
scalar_t__ dump_long_int_from_mem(unsigned int, char **, struct target *);
scalar_t__ dump_long_unsigned_int_from_mem(unsigned int, char **,
                                           struct target *);
scalar_t__ dump_short_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_sysinfo(int depth, unsigned int addr, char **dumped_params,
                 struct target *target) {
  char **dumped_type_params;
  unsigned int arm_tracing_uptime = addr;
  unsigned int arm_tracing_loads = addr + 4;
  unsigned int arm_tracing_totalram = addr + 16;
  unsigned int arm_tracing_freeram = addr + 20;
  unsigned int arm_tracing_sharedram = addr + 24;
  unsigned int arm_tracing_bufferram = addr + 28;
  unsigned int arm_tracing_totalswap = addr + 32;
  unsigned int arm_tracing_freeswap = addr + 36;
  unsigned int arm_tracing_procs = addr + 40;
  unsigned int arm_tracing_pad = addr + 42;
  unsigned int arm_tracing_totalhigh = addr + 44;
  unsigned int arm_tracing_freehigh = addr + 48;
  unsigned int arm_tracing_mem_unit = addr + 52;
  unsigned int arm_tracing__f = addr + 56;
  int len = 0;
  if (depth < 0) {
    *dumped_params = malloc(0);
    return len;
  }
  dumped_type_params = malloc(14 * (sizeof(char *)));
  if (depth >= 0) {
    len += dump_long_int_from_mem(arm_tracing_uptime, &dumped_type_params[0],
                                  target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_loads,
                                           &dumped_type_params[1], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_totalram,
                                           &dumped_type_params[2], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_freeram,
                                           &dumped_type_params[3], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_sharedram,
                                           &dumped_type_params[4], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_bufferram,
                                           &dumped_type_params[5], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_totalswap,
                                           &dumped_type_params[6], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_freeswap,
                                           &dumped_type_params[7], target);
    len += dump_short_unsigned_int_from_mem(arm_tracing_procs,
                                            &dumped_type_params[8], target);
    len += dump_short_unsigned_int_from_mem(arm_tracing_pad,
                                            &dumped_type_params[9], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_totalhigh,
                                           &dumped_type_params[10], target);
    len += dump_long_unsigned_int_from_mem(arm_tracing_freehigh,
                                           &dumped_type_params[11], target);
    len += dump_unsigned_int_from_mem(arm_tracing_mem_unit,
                                      &dumped_type_params[12], target);
    len += dump_char_from_mem(arm_tracing__f, &dumped_type_params[13], target);
  }
  *dumped_params = copy_params(dumped_type_params, 14, &len);
  free_dumped_params(dumped_type_params, 14);
  return len;
}


x86 assembly (clang, -O0):
<dump_sysinfo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%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    $0x10,%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
add    $0x14,%eax
mov    %eax,-0x38(%rbp)
mov    -0xc(%rbp),%eax
add    $0x18,%eax
mov    %eax,-0x3c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1c,%eax
mov    %eax,-0x40(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%eax
mov    %eax,-0x44(%rbp)
mov    -0xc(%rbp),%eax
add    $0x24,%eax
mov    %eax,-0x48(%rbp)
mov    -0xc(%rbp),%eax
add    $0x28,%eax
mov    %eax,-0x4c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2a,%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)
movl   $0x0,-0x64(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    123e <dump_sysinfo+0xbe>
xor    %edi,%edi
call   1070 <malloc@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x64(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1450 <dump_sysinfo+0x2d0>
mov    $0x70,%edi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1420 <dump_sysinfo+0x2a0>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x8,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%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 -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x18,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x20,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%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 -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%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 -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x38,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x4c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x40,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_short_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x50(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x48,%rsi
mov    -0x20(%rbp),%rdx
call   1090 <dump_short_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%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 -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x58,%rsi
mov    -0x20(%rbp),%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x60,%rsi
mov    -0x20(%rbp),%rdx
call   1080 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x60(%rbp),%edi
mov    -0x28(%rbp),%rsi
add    $0x68,%rsi
mov    -0x20(%rbp),%rdx
call   10a0 <dump_char_from_mem@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x64(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0xe,%esi
lea    -0x64(%rbp),%rdx
call   1060 <copy_params@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rdi
mov    $0xe,%esi
call   1050 <free_dumped_params@plt>
mov    -0x64(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_sysinfo>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%rbp
test   %edi,%edi
js     1372 <dump_sysinfo+0x1f2>
mov    %rcx,%r15
mov    %esi,%r12d
lea    0x38(%r12),%eax
mov    %eax,0x3c(%rsp)
lea    0x34(%r12),%eax
mov    %eax,0x38(%rsp)
lea    0x30(%r12),%eax
mov    %eax,0x34(%rsp)
lea    0x2c(%r12),%eax
mov    %eax,0x30(%rsp)
lea    0x2a(%r12),%eax
mov    %eax,0x2c(%rsp)
lea    0x28(%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,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    0x4(%r12),%r13d
mov    $0x70,%edi
call   1070 <malloc@plt>
mov    %rbp,0x40(%rsp)
mov    %rax,%r14
mov    %r12d,%edi
mov    %rax,%rsi
mov    %r15,%rdx
call   1030 <dump_long_int_from_mem@plt>
mov    %rax,%r12
lea    0x8(%r14),%rsi
mov    %r13d,%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %r12d,%ebx
lea    0x10(%r14),%rsi
mov    0x10(%rsp),%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x18(%r14),%rsi
mov    0x14(%rsp),%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x20(%r14),%rsi
mov    0x18(%rsp),%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x28(%r14),%rsi
mov    0x1c(%rsp),%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x30(%r14),%rsi
mov    0x20(%rsp),%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x38(%r14),%rsi
mov    0x24(%rsp),%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x40(%r14),%rsi
mov    0x28(%rsp),%edi
mov    %r15,%rdx
call   1090 <dump_short_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x48(%r14),%rsi
mov    0x2c(%rsp),%edi
mov    %r15,%rdx
call   1090 <dump_short_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x50(%r14),%rsi
mov    0x30(%rsp),%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x58(%r14),%rsi
mov    0x34(%rsp),%edi
mov    %r15,%rdx
call   1040 <dump_long_unsigned_int_from_mem@plt>
mov    %rax,%rbx
add    %ebp,%ebx
lea    0x60(%r14),%rsi
mov    0x38(%rsp),%edi
mov    %r15,%rdx
call   1080 <dump_unsigned_int_from_mem@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0x68(%r14),%rsi
mov    0x3c(%rsp),%edi
mov    %r15,%rdx
call   10a0 <dump_char_from_mem@plt>
add    %ebp,%eax
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdx
mov    %r14,%rdi
mov    $0xe,%esi
call   1060 <copy_params@plt>
mov    0x40(%rsp),%rcx
mov    %rax,(%rcx)
mov    %r14,%rdi
mov    $0xe,%esi
call   1050 <free_dumped_params@plt>
mov    0xc(%rsp),%ebx
jmp    137f <dump_sysinfo+0x1ff>
xor    %ebx,%ebx
xor    %edi,%edi
call   1070 <malloc@plt>
mov    %rax,0x0(%rbp)
mov    %ebx,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.target = type { i32 }
define i32 @dump_sysinfo(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
store i32 %0, i32* %6
store i32 %1, i32* %7
store i8** %2, i8*** %8
store %struct.target* %3, %struct.target** %9
%26 = load i32, i32* %7
store i32 %26, i32* %11
%27 = load i32, i32* %7
%28 = add i32 %27, 4
store i32 %28, i32* %12
%29 = load i32, i32* %7
%30 = add i32 %29, 16
store i32 %30, i32* %13
%31 = load i32, i32* %7
%32 = add i32 %31, 20
store i32 %32, i32* %14
%33 = load i32, i32* %7
%34 = add i32 %33, 24
store i32 %34, i32* %15
%35 = load i32, i32* %7
%36 = add i32 %35, 28
store i32 %36, i32* %16
%37 = load i32, i32* %7
%38 = add i32 %37, 32
store i32 %38, i32* %17
%39 = load i32, i32* %7
%40 = add i32 %39, 36
store i32 %40, i32* %18
%41 = load i32, i32* %7
%42 = add i32 %41, 40
store i32 %42, i32* %19
%43 = load i32, i32* %7
%44 = add i32 %43, 42
store i32 %44, i32* %20
%45 = load i32, i32* %7
%46 = add i32 %45, 44
store i32 %46, i32* %21
%47 = load i32, i32* %7
%48 = add i32 %47, 48
store i32 %48, i32* %22
%49 = load i32, i32* %7
%50 = add i32 %49, 52
store i32 %50, i32* %23
%51 = load i32, i32* %7
%52 = add i32 %51, 56
store i32 %52, i32* %24
store i32 0, i32* %25
%53 = load i32, i32* %6
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %4
%56 = call i8* @malloc(i32 0)
%57 = load i8**, i8*** %8
store i8* %56, i8** %57
%58 = load i32, i32* %25
store i32 %58, i32* %5
br label %198
59: ; preds = %4
%60 = call i8* @malloc(i32 112)
%61 = bitcast i8* %60 to i8**
store i8** %61, i8*** %10
%62 = load i32, i32* %6
%63 = icmp sge i32 %62, 0
br i1 %63, label %64, label %191
64: ; preds = %59
%65 = load i32, i32* %11
%66 = load i8**, i8*** %10
%67 = getelementptr inbounds i8*, i8** %66, i64 0
%68 = load %struct.target*, %struct.target** %9
%69 = call i64 @dump_long_int_from_mem(i32 %65, i8** %67, %struct.target* %68)
%70 = load i32, i32* %25
%71 = sext i32 %70 to i64
%72 = add nsw i64 %71, %69
%73 = trunc i64 %72 to i32
store i32 %73, i32* %25
%74 = load i32, i32* %12
%75 = load i8**, i8*** %10
%76 = getelementptr inbounds i8*, i8** %75, i64 1
%77 = load %struct.target*, %struct.target** %9
%78 = call i64 @dump_long_unsigned_int_from_mem(i32 %74, i8** %76, %struct.target* %77)
%79 = load i32, i32* %25
%80 = sext i32 %79 to i64
%81 = add nsw i64 %80, %78
%82 = trunc i64 %81 to i32
store i32 %82, i32* %25
%83 = load i32, i32* %13
%84 = load i8**, i8*** %10
%85 = getelementptr inbounds i8*, i8** %84, i64 2
%86 = load %struct.target*, %struct.target** %9
%87 = call i64 @dump_long_unsigned_int_from_mem(i32 %83, i8** %85, %struct.target* %86)
%88 = load i32, i32* %25
%89 = sext i32 %88 to i64
%90 = add nsw i64 %89, %87
%91 = trunc i64 %90 to i32
store i32 %91, i32* %25
%92 = load i32, i32* %14
%93 = load i8**, i8*** %10
%94 = getelementptr inbounds i8*, i8** %93, i64 3
%95 = load %struct.target*, %struct.target** %9
%96 = call i64 @dump_long_unsigned_int_from_mem(i32 %92, i8** %94, %struct.target* %95)
%97 = load i32, i32* %25
%98 = sext i32 %97 to i64
%99 = add nsw i64 %98, %96
%100 = trunc i64 %99 to i32
store i32 %100, i32* %25
%101 = load i32, i32* %15
%102 = load i8**, i8*** %10
%103 = getelementptr inbounds i8*, i8** %102, i64 4
%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* %25
%107 = sext i32 %106 to i64
%108 = add nsw i64 %107, %105
%109 = trunc i64 %108 to i32
store i32 %109, i32* %25
%110 = load i32, i32* %16
%111 = load i8**, i8*** %10
%112 = getelementptr inbounds i8*, i8** %111, i64 5
%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* %25
%116 = sext i32 %115 to i64
%117 = add nsw i64 %116, %114
%118 = trunc i64 %117 to i32
store i32 %118, i32* %25
%119 = load i32, i32* %17
%120 = load i8**, i8*** %10
%121 = getelementptr inbounds i8*, i8** %120, i64 6
%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* %25
%125 = sext i32 %124 to i64
%126 = add nsw i64 %125, %123
%127 = trunc i64 %126 to i32
store i32 %127, i32* %25
%128 = load i32, i32* %18
%129 = load i8**, i8*** %10
%130 = getelementptr inbounds i8*, i8** %129, i64 7
%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* %25
%134 = sext i32 %133 to i64
%135 = add nsw i64 %134, %132
%136 = trunc i64 %135 to i32
store i32 %136, i32* %25
%137 = load i32, i32* %19
%138 = load i8**, i8*** %10
%139 = getelementptr inbounds i8*, i8** %138, i64 8
%140 = load %struct.target*, %struct.target** %9
%141 = call i64 @dump_short_unsigned_int_from_mem(i32 %137, i8** %139, %struct.target* %140)
%142 = load i32, i32* %25
%143 = sext i32 %142 to i64
%144 = add nsw i64 %143, %141
%145 = trunc i64 %144 to i32
store i32 %145, i32* %25
%146 = load i32, i32* %20
%147 = load i8**, i8*** %10
%148 = getelementptr inbounds i8*, i8** %147, i64 9
%149 = load %struct.target*, %struct.target** %9
%150 = call i64 @dump_short_unsigned_int_from_mem(i32 %146, i8** %148, %struct.target* %149)
%151 = load i32, i32* %25
%152 = sext i32 %151 to i64
%153 = add nsw i64 %152, %150
%154 = trunc i64 %153 to i32
store i32 %154, i32* %25
%155 = load i32, i32* %21
%156 = load i8**, i8*** %10
%157 = getelementptr inbounds i8*, i8** %156, i64 10
%158 = load %struct.target*, %struct.target** %9
%159 = call i64 @dump_long_unsigned_int_from_mem(i32 %155, i8** %157, %struct.target* %158)
%160 = load i32, i32* %25
%161 = sext i32 %160 to i64
%162 = add nsw i64 %161, %159
%163 = trunc i64 %162 to i32
store i32 %163, i32* %25
%164 = load i32, i32* %22
%165 = load i8**, i8*** %10
%166 = getelementptr inbounds i8*, i8** %165, i64 11
%167 = load %struct.target*, %struct.target** %9
%168 = call i64 @dump_long_unsigned_int_from_mem(i32 %164, i8** %166, %struct.target* %167)
%169 = load i32, i32* %25
%170 = sext i32 %169 to i64
%171 = add nsw i64 %170, %168
%172 = trunc i64 %171 to i32
store i32 %172, i32* %25
%173 = load i32, i32* %23
%174 = load i8**, i8*** %10
%175 = getelementptr inbounds i8*, i8** %174, i64 12
%176 = load %struct.target*, %struct.target** %9
%177 = call i64 @dump_unsigned_int_from_mem(i32 %173, i8** %175, %struct.target* %176)
%178 = load i32, i32* %25
%179 = sext i32 %178 to i64
%180 = add nsw i64 %179, %177
%181 = trunc i64 %180 to i32
store i32 %181, i32* %25
%182 = load i32, i32* %24
%183 = load i8**, i8*** %10
%184 = getelementptr inbounds i8*, i8** %183, i64 13
%185 = load %struct.target*, %struct.target** %9
%186 = call i64 @dump_char_from_mem(i32 %182, i8** %184, %struct.target* %185)
%187 = load i32, i32* %25
%188 = sext i32 %187 to i64
%189 = add nsw i64 %188, %186
%190 = trunc i64 %189 to i32
store i32 %190, i32* %25
br label %191
191: ; preds = %64, %59
%192 = load i8**, i8*** %10
%193 = call i8* @copy_params(i8** %192, i32 14, i32* %25)
%194 = load i8**, i8*** %8
store i8* %193, i8** %194
%195 = load i8**, i8*** %10
%196 = call i32 @free_dumped_params(i8** %195, i32 14)
%197 = load i32, i32* %25
store i32 %197, i32* %5
br label %198
198: ; preds = %191, %55
%199 = load i32, i32* %5
ret i32 %199
}

LLVM IR (-O2):
%struct.target = type { i32 }
define i32 @dump_sysinfo(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 %83
10: ; preds = %4
%11 = add i32 %1, 56
%12 = add i32 %1, 52
%13 = add i32 %1, 48
%14 = add i32 %1, 44
%15 = add i32 %1, 42
%16 = add i32 %1, 40
%17 = add i32 %1, 36
%18 = add i32 %1, 32
%19 = add i32 %1, 28
%20 = add i32 %1, 24
%21 = add i32 %1, 20
%22 = add i32 %1, 16
%23 = add i32 %1, 4
%24 = tail call dereferenceable_or_null(112) i8* @malloc(i32 112)
%25 = bitcast i8* %24 to i8**
%26 = tail call i64 @dump_long_int_from_mem(i32 %1, i8** %25, %struct.target* %3)
%27 = trunc i64 %26 to i32
%28 = getelementptr inbounds i8*, i8** %25, i64 1
%29 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %23, i8** %28, %struct.target* %3)
%30 = trunc i64 %29 to i32
%31 = add i32 %27, %30
%32 = getelementptr inbounds i8*, i8** %25, i64 2
%33 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %22, i8** %32, %struct.target* %3)
%34 = trunc i64 %33 to i32
%35 = add i32 %31, %34
%36 = getelementptr inbounds i8*, i8** %25, i64 3
%37 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %21, i8** %36, %struct.target* %3)
%38 = trunc i64 %37 to i32
%39 = add i32 %35, %38
%40 = getelementptr inbounds i8*, i8** %25, i64 4
%41 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %20, i8** %40, %struct.target* %3)
%42 = trunc i64 %41 to i32
%43 = add i32 %39, %42
%44 = getelementptr inbounds i8*, i8** %25, i64 5
%45 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %19, i8** %44, %struct.target* %3)
%46 = trunc i64 %45 to i32
%47 = add i32 %43, %46
%48 = getelementptr inbounds i8*, i8** %25, i64 6
%49 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %18, i8** %48, %struct.target* %3)
%50 = trunc i64 %49 to i32
%51 = add i32 %47, %50
%52 = getelementptr inbounds i8*, i8** %25, i64 7
%53 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %17, i8** %52, %struct.target* %3)
%54 = trunc i64 %53 to i32
%55 = add i32 %51, %54
%56 = getelementptr inbounds i8*, i8** %25, i64 8
%57 = tail call i64 @dump_short_unsigned_int_from_mem(i32 %16, i8** %56, %struct.target* %3)
%58 = trunc i64 %57 to i32
%59 = add i32 %55, %58
%60 = getelementptr inbounds i8*, i8** %25, i64 9
%61 = tail call i64 @dump_short_unsigned_int_from_mem(i32 %15, i8** %60, %struct.target* %3)
%62 = trunc i64 %61 to i32
%63 = add i32 %59, %62
%64 = getelementptr inbounds i8*, i8** %25, i64 10
%65 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %14, i8** %64, %struct.target* %3)
%66 = trunc i64 %65 to i32
%67 = add i32 %63, %66
%68 = getelementptr inbounds i8*, i8** %25, i64 11
%69 = tail call i64 @dump_long_unsigned_int_from_mem(i32 %13, i8** %68, %struct.target* %3)
%70 = trunc i64 %69 to i32
%71 = add i32 %67, %70
%72 = getelementptr inbounds i8*, i8** %25, i64 12
%73 = tail call i64 @dump_unsigned_int_from_mem(i32 %12, i8** %72, %struct.target* %3)
%74 = trunc i64 %73 to i32
%75 = add i32 %71, %74
%76 = getelementptr inbounds i8*, i8** %25, i64 13
%77 = tail call i64 @dump_char_from_mem(i32 %11, i8** %76, %struct.target* %3)
%78 = trunc i64 %77 to i32
%79 = add i32 %75, %78
store i32 %79, i32* %5
%80 = call i8* @copy_params(i8** %25, i32 14, i32* %5)
store i8* %80, i8** %2
%81 = call i32 @free_dumped_params(i8** %25, i32 14)
%82 = load i32, i32* %5
br label %83
83: ; preds = %10, %8
%84 = phi i32 [ %82, %10 ], [ 0, %8 ]
ret i32 %84
}