#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 */
typedef int /*<<< orphan*/ name;

/* Variables and functions */
double bcdeight(unsigned char *);
double bcdfour(unsigned char *);
int getint(unsigned char *);
int /*<<< orphan*/ memcpy(char *, unsigned char *, int);
int /*<<< orphan*/ printf(char *, ...);
void processcpuinfo(unsigned char *data, int len) {
  char name[32];
  memcpy(name, &data[10], sizeof(name));
  printf("\n%s\n", name);
  printf("Firmware version:  %.2f\n", bcdfour(&data[8]));
  printf("Shutter (Dark Vane):  ");
  if (getint(&data[42]) == 1)
    printf("YES\n");
  else
    printf("NO\n");
  printf("Need to initialize with set_head_offset:  ");
  if (getint(&data[44]) == 1)
    printf("YES\n");
  else
    printf("NO\n");
  printf("Programmable double-correlated sampling (DCS):  ");
  if (getint(&data[46]) == 1)
    printf("YES\n");
  else
    printf("NO\n");
  printf("Programmable DCS restore:  ");
  if (getint(&data[48]) == 1)
    printf("YES\n");
  else
    printf("NO\n");
  printf("Closed-loop temperature regulation:  ");
  if (getint(&data[50]) == 1)
    printf("YES\n");
  else
    printf("NO\n");
  printf("Maximum TE-cooler drive value:  %d\n", getint(&data[52]));
  printf("Image dimensions:  %d x %d\n", getint(&data[54]), getint(&data[56]));
  int i;
  int nmodes = getint(&data[58]);
  printf("\nNumber of readout modes:  %d\n\n", getint(&data[58]));
  for (i = 0; i < nmodes; i++)
    printf("Mode %d:  %d x %d px, Gain:  %.2f, Pixel Dims (um):  %.1f x %.1f\n",
           getint(&data[60 + 16 * i]), getint(&data[62 + 16 * i]),
           getint(&data[64 + 16 * i]), bcdfour(&data[66 + 16 * i]),
           bcdeight(&data[68 + 16 * i]), bcdeight(&data[72 + 16 * i]));
}


x86 assembly (clang, -O0):
<processcpuinfo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x8(%rbp),%rsi
add    $0xa,%rsi
mov    $0x20,%edx
call   1060 <memcpy@plt>
lea    -0x30(%rbp),%rsi
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x8,%rdi
call   1070 <bcdfour@plt>
lea    0xe6a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x2a,%rdi
call   1050 <getint@plt>
cmp    $0x1,%eax
jne    11d9 <processcpuinfo+0x89>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11e7 <processcpuinfo+0x97>
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x2c,%rdi
call   1050 <getint@plt>
cmp    $0x1,%eax
jne    121e <processcpuinfo+0xce>
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    122c <processcpuinfo+0xdc>
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x2e,%rdi
call   1050 <getint@plt>
cmp    $0x1,%eax
jne    1263 <processcpuinfo+0x113>
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1271 <processcpuinfo+0x121>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x30,%rdi
call   1050 <getint@plt>
cmp    $0x1,%eax
jne    12a8 <processcpuinfo+0x158>
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12b6 <processcpuinfo+0x166>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdf9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x32,%rdi
call   1050 <getint@plt>
cmp    $0x1,%eax
jne    12ed <processcpuinfo+0x19d>
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12fb <processcpuinfo+0x1ab>
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x34,%rdi
call   1050 <getint@plt>
mov    %eax,%esi
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x36,%rdi
call   1050 <getint@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x38,%rdi
call   1050 <getint@plt>
mov    -0x3c(%rbp),%esi
mov    %eax,%edx
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x3a,%rdi
call   1050 <getint@plt>
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x3a,%rdi
call   1050 <getint@plt>
mov    %eax,%esi
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1457 <processcpuinfo+0x307>
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%eax
shl    $0x4,%eax
add    $0x3c,%eax
cltq
add    %rax,%rdi
call   1050 <getint@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%eax
shl    $0x4,%eax
add    $0x3e,%eax
cltq
add    %rax,%rdi
call   1050 <getint@plt>
mov    %eax,-0x58(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%eax
shl    $0x4,%eax
add    $0x40,%eax
cltq
add    %rax,%rdi
call   1050 <getint@plt>
mov    %eax,-0x54(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%eax
shl    $0x4,%eax
add    $0x42,%eax
cltq
add    %rax,%rdi
call   1070 <bcdfour@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%eax
shl    $0x4,%eax
add    $0x44,%eax
cltq
add    %rax,%rdi
call   1030 <bcdeight@plt>
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%eax
shl    $0x4,%eax
add    $0x48,%eax
cltq
add    %rax,%rdi
call   1030 <bcdeight@plt>
mov    -0x5c(%rbp),%esi
mov    -0x58(%rbp),%edx
mov    -0x54(%rbp),%ecx
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
lea    0xcfa(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    137c <processcpuinfo+0x22c>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<processcpuinfo>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdi,%r15
lea    0xa(%rdi),%rsi
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x20,%edx
call   1070 <memcpy@plt>
lea    0xe72(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%r15),%rdi
call   1080 <bcdfour@plt>
lea    0xe5d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe68(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2a(%r15),%rdi
call   1060 <getint@plt>
cmp    $0x1,%eax
lea    0xfa8(%rip),%rbx
lea    0xf9e(%rip),%r14
mov    %r14,%rdi
cmove  %rbx,%rdi
call   1030 <puts@plt>
lea    0xe4b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2c(%r15),%rdi
call   1060 <getint@plt>
cmp    $0x1,%eax
mov    %r14,%rdi
cmove  %rbx,%rdi
call   1030 <puts@plt>
lea    0xe50(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2e(%r15),%rdi
call   1060 <getint@plt>
cmp    $0x1,%eax
mov    %r14,%rdi
cmove  %rbx,%rdi
call   1030 <puts@plt>
lea    0xe5b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x30(%r15),%rdi
call   1060 <getint@plt>
cmp    $0x1,%eax
mov    %r14,%rdi
cmove  %rbx,%rdi
call   1030 <puts@plt>
lea    0xe51(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x32(%r15),%rdi
call   1060 <getint@plt>
cmp    $0x1,%eax
cmove  %rbx,%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0x34(%r15),%rdi
call   1060 <getint@plt>
lea    0xe48(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x36(%r15),%rdi
call   1060 <getint@plt>
mov    %eax,%ebx
lea    0x38(%r15),%rdi
call   1060 <getint@plt>
lea    0xe48(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x3a(%r15),%rbp
mov    %rbp,%rdi
call   1060 <getint@plt>
mov    %eax,%ebx
mov    %rbp,%rdi
call   1060 <getint@plt>
lea    0xe3c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   %ebx,%ebx
jle    139d <processcpuinfo+0x23d>
mov    %ebx,%r13d
lea    0x3c(%r15),%rax
mov    %rax,0x8(%rsp)
shl    $0x4,%r13
xor    %r14d,%r14d
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rax
lea    (%rax,%r14,1),%rdi
call   1060 <getint@plt>
mov    %eax,%r12d
lea    0x3e(%r14),%edi
and    $0xfffffffe,%edi
add    %r15,%rdi
call   1060 <getint@plt>
mov    %eax,%ebx
lea    0x40(%r14),%edi
and    $0xfffffff0,%edi
add    %r15,%rdi
call   1060 <getint@plt>
mov    %eax,%ebp
lea    0x42(%r14),%edi
and    $0xfffffff2,%edi
add    %r15,%rdi
call   1080 <bcdfour@plt>
movsd  %xmm0,0x18(%rsp)
lea    0x44(%r14),%edi
and    $0xfffffff4,%edi
add    %r15,%rdi
call   1040 <bcdeight@plt>
movsd  %xmm0,0x10(%rsp)
lea    0x48(%r14),%edi
and    $0xfffffff8,%edi
add    %r15,%rdi
call   1040 <bcdeight@plt>
movaps %xmm0,%xmm2
lea    0xdbd(%rip),%rdi
mov    %r12d,%esi
mov    %ebx,%edx
mov    %ebp,%ecx
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mov    $0x3,%al
call   1050 <printf@plt>
add    $0x10,%r14
cmp    %r14,%r13
jne    1300 <processcpuinfo+0x1a0>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"\0A%s\0A\00"
@.str.1 = [25 x i8] c"Firmware version: %.2f\0A\00"
@.str.2 = [23 x i8] c"Shutter (Dark Vane): \00"
@.str.3 = [5 x i8] c"YES\0A\00"
@.str.4 = [4 x i8] c"NO\0A\00"
@.str.5 = [43 x i8] c"Need to initialize with set_head_offset: \00"
@.str.6 = [49 x i8] c"Programmable double-correlated sampling (DCS): \00"
@.str.7 = [28 x i8] c"Programmable DCS restore: \00"
@.str.8 = [38 x i8] c"Closed-loop temperature regulation: \00"
@.str.9 = [36 x i8] c"Maximum TE-cooler drive value: %d\0A\00"
@.str.10 = [28 x i8] c"Image dimensions: %d x %d\0A\00"
@.str.11 = [32 x i8] c"\0ANumber of readout modes: %d\0A\0A\00"
@.str.12 = [66 x i8] c"Mode %d: %d x %d px, Gain: %.2f, Pixel Dims (um): %.1f x %.1f\0A\00"
define void @processcpuinfo(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [32 x i8]
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%8 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i64 10
%11 = call i32 @memcpy(i8* %8, i8* %10, i32 32)
%12 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i64 8
%16 = call double @bcdfour(i8* %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), double %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%19 = load i8*, i8** %3
%20 = getelementptr inbounds i8, i8* %19, i64 42
%21 = call i32 @getint(i8* %20)
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %27
25: ; preds = %2
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %27
27: ; preds = %25, %23
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%29 = load i8*, i8** %3
%30 = getelementptr inbounds i8, i8* %29, i64 44
%31 = call i32 @getint(i8* %30)
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %35
33: ; preds = %27
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %37
35: ; preds = %27
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %37
37: ; preds = %35, %33
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%39 = load i8*, i8** %3
%40 = getelementptr inbounds i8, i8* %39, i64 46
%41 = call i32 @getint(i8* %40)
%42 = icmp eq i32 %41, 1
br i1 %42, label %43, label %45
43: ; preds = %37
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %47
45: ; preds = %37
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %47
47: ; preds = %45, %43
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%49 = load i8*, i8** %3
%50 = getelementptr inbounds i8, i8* %49, i64 48
%51 = call i32 @getint(i8* %50)
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %55
53: ; preds = %47
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %57
55: ; preds = %47
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %57
57: ; preds = %55, %53
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%59 = load i8*, i8** %3
%60 = getelementptr inbounds i8, i8* %59, i64 50
%61 = call i32 @getint(i8* %60)
%62 = icmp eq i32 %61, 1
br i1 %62, label %63, label %65
63: ; preds = %57
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %67
65: ; preds = %57
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %67
67: ; preds = %65, %63
%68 = load i8*, i8** %3
%69 = getelementptr inbounds i8, i8* %68, i64 52
%70 = call i32 @getint(i8* %69)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i32 %70)
%72 = load i8*, i8** %3
%73 = getelementptr inbounds i8, i8* %72, i64 54
%74 = call i32 @getint(i8* %73)
%75 = load i8*, i8** %3
%76 = getelementptr inbounds i8, i8* %75, i64 56
%77 = call i32 @getint(i8* %76)
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 %74, i32 %77)
%79 = load i8*, i8** %3
%80 = getelementptr inbounds i8, i8* %79, i64 58
%81 = call i32 @getint(i8* %80)
store i32 %81, i32* %7
%82 = load i8*, i8** %3
%83 = getelementptr inbounds i8, i8* %82, i64 58
%84 = call i32 @getint(i8* %83)
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %84)
store i32 0, i32* %6
br label %86
86: ; preds = %134, %67
%87 = load i32, i32* %6
%88 = load i32, i32* %7
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %137
90: ; preds = %86
%91 = load i8*, i8** %3
%92 = load i32, i32* %6
%93 = mul nsw i32 16, %92
%94 = add nsw i32 60, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, i8* %91, i64 %95
%97 = call i32 @getint(i8* %96)
%98 = load i8*, i8** %3
%99 = load i32, i32* %6
%100 = mul nsw i32 16, %99
%101 = add nsw i32 62, %100
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, i8* %98, i64 %102
%104 = call i32 @getint(i8* %103)
%105 = load i8*, i8** %3
%106 = load i32, i32* %6
%107 = mul nsw i32 16, %106
%108 = add nsw i32 64, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, i8* %105, i64 %109
%111 = call i32 @getint(i8* %110)
%112 = load i8*, i8** %3
%113 = load i32, i32* %6
%114 = mul nsw i32 16, %113
%115 = add nsw i32 66, %114
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, i8* %112, i64 %116
%118 = call double @bcdfour(i8* %117)
%119 = load i8*, i8** %3
%120 = load i32, i32* %6
%121 = mul nsw i32 16, %120
%122 = add nsw i32 68, %121
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, i8* %119, i64 %123
%125 = call double @bcdeight(i8* %124)
%126 = load i8*, i8** %3
%127 = load i32, i32* %6
%128 = mul nsw i32 16, %127
%129 = add nsw i32 72, %128
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, i8* %126, i64 %130
%132 = call double @bcdeight(i8* %131)
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0), i32 %97, i32 %104, i32 %111, double %118, double %125, double %132)
br label %134
134: ; preds = %90
%135 = load i32, i32* %6
%136 = add nsw i32 %135, 1
store i32 %136, i32* %6
br label %86
137: ; preds = %86
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"\0A%s\0A\00"
@.str.1 = [25 x i8] c"Firmware version: %.2f\0A\00"
@.str.2 = [23 x i8] c"Shutter (Dark Vane): \00"
@.str.5 = [43 x i8] c"Need to initialize with set_head_offset: \00"
@.str.6 = [49 x i8] c"Programmable double-correlated sampling (DCS): \00"
@.str.7 = [28 x i8] c"Programmable DCS restore: \00"
@.str.8 = [38 x i8] c"Closed-loop temperature regulation: \00"
@.str.9 = [36 x i8] c"Maximum TE-cooler drive value: %d\0A\00"
@.str.10 = [28 x i8] c"Image dimensions: %d x %d\0A\00"
@.str.11 = [32 x i8] c"\0ANumber of readout modes: %d\0A\0A\00"
@.str.12 = [66 x i8] c"Mode %d: %d x %d px, Gain: %.2f, Pixel Dims (um): %.1f x %.1f\0A\00"
@str.16 = [3 x i8] c"NO\00"
@str.21 = [4 x i8] c"YES\00"
define void @processcpuinfo(i8* %0, i32 %1) {
%3 = alloca [32 x i8]
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds i8, i8* %0, i64 10
%6 = call i32 @memcpy(i8* %4, i8* %5, i32 32)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %4)
%8 = getelementptr inbounds i8, i8* %0, i64 8
%9 = call double @bcdfour(i8* %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), double %9)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%12 = getelementptr inbounds i8, i8* %0, i64 42
%13 = call i32 @getint(i8* %12)
%14 = icmp eq i32 %13, 1
%15 = select i1 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.21, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.16, i64 0, i64 0)
%16 = call i32 @puts(i8* dereferenceable(1) %15)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%18 = getelementptr inbounds i8, i8* %0, i64 44
%19 = call i32 @getint(i8* %18)
%20 = icmp eq i32 %19, 1
%21 = select i1 %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.21, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.16, i64 0, i64 0)
%22 = call i32 @puts(i8* dereferenceable(1) %21)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%24 = getelementptr inbounds i8, i8* %0, i64 46
%25 = call i32 @getint(i8* %24)
%26 = icmp eq i32 %25, 1
%27 = select i1 %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.21, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.16, i64 0, i64 0)
%28 = call i32 @puts(i8* dereferenceable(1) %27)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%30 = getelementptr inbounds i8, i8* %0, i64 48
%31 = call i32 @getint(i8* %30)
%32 = icmp eq i32 %31, 1
%33 = select i1 %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.21, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.16, i64 0, i64 0)
%34 = call i32 @puts(i8* dereferenceable(1) %33)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%36 = getelementptr inbounds i8, i8* %0, i64 50
%37 = call i32 @getint(i8* %36)
%38 = icmp eq i32 %37, 1
%39 = select i1 %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.21, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.16, i64 0, i64 0)
%40 = call i32 @puts(i8* dereferenceable(1) %39)
%41 = getelementptr inbounds i8, i8* %0, i64 52
%42 = call i32 @getint(i8* %41)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds i8, i8* %0, i64 54
%45 = call i32 @getint(i8* %44)
%46 = getelementptr inbounds i8, i8* %0, i64 56
%47 = call i32 @getint(i8* %46)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 %45, i32 %47)
%49 = getelementptr inbounds i8, i8* %0, i64 58
%50 = call i32 @getint(i8* %49)
%51 = call i32 @getint(i8* %49)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %51)
%53 = icmp sgt i32 %50, 0
br i1 %53, label %54, label %85
54: ; preds = %2
%55 = zext i32 %50 to i64
br label %56
56: ; preds = %54, %56
%57 = phi i64 [ 0, %54 ], [ %83, %56 ]
%58 = shl nsw i64 %57, 4
%59 = add nuw nsw i64 %58, 60
%60 = getelementptr inbounds i8, i8* %0, i64 %59
%61 = call i32 @getint(i8* %60)
%62 = add nuw i64 %58, 62
%63 = and i64 %62, 4294967294
%64 = getelementptr inbounds i8, i8* %0, i64 %63
%65 = call i32 @getint(i8* %64)
%66 = add nuw i64 %58, 64
%67 = and i64 %66, 4294967280
%68 = getelementptr inbounds i8, i8* %0, i64 %67
%69 = call i32 @getint(i8* %68)
%70 = add nuw i64 %58, 66
%71 = and i64 %70, 4294967282
%72 = getelementptr inbounds i8, i8* %0, i64 %71
%73 = call double @bcdfour(i8* %72)
%74 = add nuw i64 %58, 68
%75 = and i64 %74, 4294967284
%76 = getelementptr inbounds i8, i8* %0, i64 %75
%77 = call double @bcdeight(i8* %76)
%78 = add nuw i64 %58, 72
%79 = and i64 %78, 4294967288
%80 = getelementptr inbounds i8, i8* %0, i64 %79
%81 = call double @bcdeight(i8* %80)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0), i32 %61, i32 %65, i32 %69, double %73, double %77, double %81)
%83 = add nuw nsw i64 %57, 1
%84 = icmp eq i64 %83, %55
br i1 %84, label %85, label %56
85: ; preds = %56, %2
ret void
}