#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 */

/* Variables and functions */
int /*<<< orphan*/ gcr_convert_4bytes_to_GCR(unsigned char *, unsigned char *);
unsigned char *gcr_find_sector_data(unsigned char *, unsigned char *,
                                    unsigned int);
unsigned char *gcr_find_sector_header(unsigned int, unsigned int,
                                      unsigned char *, unsigned int);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, int);
int gcr_write_sector(unsigned char *gcr_track_start_ptr,
                     unsigned int gcr_current_track_size,
                     unsigned char *writedata, unsigned int track,
                     unsigned int sector) {
  unsigned char buffer[260], gcr_buffer[325], *offset, *buf, *gcr_data;
  unsigned char chksum;
  int i;
  offset = gcr_find_sector_header(track, sector, gcr_track_start_ptr,
                                  gcr_current_track_size);
  if (offset == NULL)
    return -1;
  offset =
      gcr_find_sector_data(offset, gcr_track_start_ptr, gcr_current_track_size);
  if (offset == NULL)
    return -1;
  buffer[0] = 0x7;
  memcpy(&buffer[1], writedata, 256);
  chksum = buffer[1];
  for (i = 2; i < 257; i++)
    chksum ^= buffer[i];
  buffer[257] = chksum;
  buffer[258] = buffer[259] = 0;
  buf = buffer;
  gcr_data = gcr_buffer;
  for (i = 0; i < 65; i++) {
    gcr_convert_4bytes_to_GCR(buf, gcr_data);
    buf += 4;
    gcr_data += 5;
  }
  for (i = 0; i < 325; i++) {
    *offset = gcr_buffer[i];
    offset++;
    if (offset == gcr_track_start_ptr + gcr_current_track_size)
      offset = gcr_track_start_ptr;
  }
  return 0;
}


x86 assembly (clang, -O0):
<gcr_write_sector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2a0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    %r8d,-0x28(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x28(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
call   1040 <gcr_find_sector_header@plt>
mov    %rax,-0x288(%rbp)
cmpq   $0x0,-0x288(%rbp)
jne    1190 <gcr_write_sector+0x50>
movl   $0xffffffff,-0x4(%rbp)
jmp    1353 <gcr_write_sector+0x213>
mov    -0x288(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1060 <gcr_find_sector_data@plt>
mov    %rax,-0x288(%rbp)
cmpq   $0x0,-0x288(%rbp)
jne    11c4 <gcr_write_sector+0x84>
movl   $0xffffffff,-0x4(%rbp)
jmp    1353 <gcr_write_sector+0x213>
movb   $0x7,-0x130(%rbp)
lea    -0x130(%rbp),%rdi
add    $0x1,%rdi
mov    -0x20(%rbp),%rsi
mov    $0x100,%edx
call   1050 <memcpy@plt>
mov    -0x12f(%rbp),%al
mov    %al,-0x299(%rbp)
movl   $0x2,-0x2a0(%rbp)
cmpl   $0x101,-0x2a0(%rbp)
jge    123c <gcr_write_sector+0xfc>
movslq -0x2a0(%rbp),%rax
movzbl -0x130(%rbp,%rax,1),%ecx
ff
movzbl -0x299(%rbp),%eax
xor    %ecx,%eax
mov    %al,-0x299(%rbp)
mov    -0x2a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2a0(%rbp)
jmp    11fa <gcr_write_sector+0xba>
mov    -0x299(%rbp),%al
mov    %al,-0x2f(%rbp)
movb   $0x0,-0x2d(%rbp)
movb   $0x0,-0x2e(%rbp)
lea    -0x130(%rbp),%rax
mov    %rax,-0x290(%rbp)
lea    -0x280(%rbp),%rax
mov    %rax,-0x298(%rbp)
movl   $0x0,-0x2a0(%rbp)
cmpl   $0x41,-0x2a0(%rbp)
jge    12cb <gcr_write_sector+0x18b>
mov    -0x290(%rbp),%rdi
mov    -0x298(%rbp),%rsi
call   1030 <gcr_convert_4bytes_to_GCR@plt>
mov    -0x290(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x290(%rbp)
mov    -0x298(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x298(%rbp)
mov    -0x2a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2a0(%rbp)
jmp    1273 <gcr_write_sector+0x133>
movl   $0x0,-0x2a0(%rbp)
cmpl   $0x145,-0x2a0(%rbp)
jge    134c <gcr_write_sector+0x20c>
movslq -0x2a0(%rbp),%rax
mov    -0x280(%rbp,%rax,1),%cl
mov    -0x288(%rbp),%rax
mov    %cl,(%rax)
mov    -0x288(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x288(%rbp)
mov    -0x288(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x14(%rbp),%edx
add    %rdx,%rcx
cmp    %rcx,%rax
jne    1333 <gcr_write_sector+0x1f3>
mov    -0x10(%rbp),%rax
mov    %rax,-0x288(%rbp)
jmp    1338 <gcr_write_sector+0x1f8>
mov    -0x2a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2a0(%rbp)
jmp    12d5 <gcr_write_sector+0x195>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x2a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gcr_write_sector>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x258,%rsp
mov    %rdx,%r12
mov    %esi,%r15d
mov    %rdi,%r14
mov    %ecx,%edi
mov    %r8d,%esi
mov    %r14,%rdx
mov    %r15d,%ecx
call   1040 <gcr_find_sector_header@plt>
mov    $0xffffffff,%ebp
test   %rax,%rax
je     13fb <gcr_write_sector+0x2bb>
mov    %rax,%rdi
mov    %r14,%rsi
mov    %r15d,%edx
call   1060 <gcr_find_sector_data@plt>
test   %rax,%rax
je     13fb <gcr_write_sector+0x2bb>
mov    %rax,%r13
lea    0x110(%rsp),%rbp
movb   $0x7,(%rsp)
lea    0x1(%rsp),%rdi
mov    %r12,%rsi
mov    $0x100,%edx
call   1050 <memcpy@plt>
movq   0xf2(%rsp),%xmm1
movq   0xea(%rsp),%xmm2
movq   0xe2(%rsp),%xmm0
pxor   %xmm2,%xmm0
pxor   %xmm1,%xmm0
movdqu 0xd2(%rsp),%xmm1
movdqu 0xb2(%rsp),%xmm2
movdqu 0x92(%rsp),%xmm3
pxor   %xmm2,%xmm3
pxor   %xmm1,%xmm3
movdqu 0x72(%rsp),%xmm1
movdqu 0x52(%rsp),%xmm2
pxor   %xmm1,%xmm2
movdqu 0x2(%rsp),%xmm1
movdqu 0x12(%rsp),%xmm4
movdqu 0x22(%rsp),%xmm5
movdqu 0x32(%rsp),%xmm6
pxor   %xmm4,%xmm6
pxor   %xmm2,%xmm6
pxor   %xmm3,%xmm6
movdqu 0xc2(%rsp),%xmm2
movdqu 0xa2(%rsp),%xmm3
movdqu 0x82(%rsp),%xmm4
movdqu 0x62(%rsp),%xmm7
pxor   %xmm4,%xmm7
pxor   %xmm3,%xmm7
movdqu 0x42(%rsp),%xmm3
pxor   %xmm5,%xmm3
movzbl 0x1(%rsp),%eax
movd   %eax,%xmm4
pxor   %xmm1,%xmm4
pxor   %xmm3,%xmm4
pxor   %xmm7,%xmm4
pxor   %xmm2,%xmm4
pxor   %xmm6,%xmm4
pshufd $0xee,%xmm4,%xmm1
pxor   %xmm4,%xmm1
pshufd $0x55,%xmm1,%xmm2
pxor   %xmm1,%xmm2
movdqa %xmm2,%xmm1
psrld  $0x10,%xmm1
pxor   %xmm2,%xmm1
movdqa %xmm1,%xmm2
psrlw  $0x8,%xmm2
pxor   %xmm1,%xmm2
pxor   %xmm1,%xmm1
punpcklbw %xmm1,%xmm2
punpcklwd %xmm1,%xmm2
punpckldq %xmm1,%xmm2
pxor   %xmm0,%xmm2
pshufd $0x55,%xmm2,%xmm0
pxor   %xmm2,%xmm0
movdqa %xmm0,%xmm1
psrld  $0x10,%xmm1
pxor   %xmm0,%xmm1
movdqa %xmm1,%xmm0
psrlw  $0x8,%xmm0
pxor   %xmm1,%xmm0
movd   %xmm0,%eax
xor    0xfa(%rsp),%al
xor    0xfb(%rsp),%al
xor    0xfc(%rsp),%al
xor    0xfd(%rsp),%al
xor    0xfe(%rsp),%al
xor    0xff(%rsp),%al
xor    0x100(%rsp),%al
mov    %al,0x101(%rsp)
movw   $0x0,0x102(%rsp)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
lea    (%rsp,%rbx,1),%rdi
mov    %rbp,%rsi
call   1030 <gcr_convert_4bytes_to_GCR@plt>
add    $0x5,%rbp
add    $0x4,%rbx
cmp    $0x104,%ebx
jne    1330 <gcr_write_sector+0x1f0>
mov    %r15d,%eax
add    %r14,%rax
mov    $0x4,%ecx
jmp    1371 <gcr_write_sector+0x231>
nopl   0x0(%rax)
add    $0x5,%rcx
cmp    $0x149,%rcx
je     13f9 <gcr_write_sector+0x2b9>
movzbl 0x10c(%rsp,%rcx,1),%edx
mov    %dl,0x0(%r13)
add    $0x1,%r13
mov    %r14,%rdx
cmp    %rax,%r13
je     138c <gcr_write_sector+0x24c>
mov    %r13,%rdx
movzbl 0x10d(%rsp,%rcx,1),%ebx
mov    %bl,(%rdx)
add    $0x1,%rdx
mov    %r14,%rsi
cmp    %rax,%rdx
je     13a5 <gcr_write_sector+0x265>
mov    %rdx,%rsi
movzbl 0x10e(%rsp,%rcx,1),%edx
mov    %dl,(%rsi)
add    $0x1,%rsi
mov    %r14,%rdx
cmp    %rax,%rsi
je     13be <gcr_write_sector+0x27e>
mov    %rsi,%rdx
movzbl 0x10f(%rsp,%rcx,1),%ebx
mov    %bl,(%rdx)
add    $0x1,%rdx
mov    %r14,%rsi
cmp    %rax,%rdx
je     13d7 <gcr_write_sector+0x297>
mov    %rdx,%rsi
movzbl 0x110(%rsp,%rcx,1),%edx
mov    %dl,(%rsi)
add    $0x1,%rsi
mov    %r14,%r13
cmp    %rax,%rsi
je     1360 <gcr_write_sector+0x220>
mov    %rsi,%r13
jmp    1360 <gcr_write_sector+0x220>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x258,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @gcr_write_sector(i8* %0, i32 %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca [260 x i8]
%13 = alloca [325 x i8]
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8
%18 = alloca i32
store i8* %0, i8** %7
store i32 %1, i32* %8
store i8* %2, i8** %9
store i32 %3, i32* %10
store i32 %4, i32* %11
%19 = load i32, i32* %10
%20 = load i32, i32* %11
%21 = load i8*, i8** %7
%22 = load i32, i32* %8
%23 = call i8* @gcr_find_sector_header(i32 %19, i32 %20, i8* %21, i32 %22)
store i8* %23, i8** %14
%24 = load i8*, i8** %14
%25 = icmp eq i8* %24, null
br i1 %25, label %26, label %27
26: ; preds = %5
store i32 -1, i32* %6
br label %104
27: ; preds = %5
%28 = load i8*, i8** %14
%29 = load i8*, i8** %7
%30 = load i32, i32* %8
%31 = call i8* @gcr_find_sector_data(i8* %28, i8* %29, i32 %30)
store i8* %31, i8** %14
%32 = load i8*, i8** %14
%33 = icmp eq i8* %32, null
br i1 %33, label %34, label %35
34: ; preds = %27
store i32 -1, i32* %6
br label %104
35: ; preds = %27
%36 = getelementptr inbounds [260 x i8], [260 x i8]* %12, i64 0, i64 0
store i8 7, i8* %36
%37 = getelementptr inbounds [260 x i8], [260 x i8]* %12, i64 0, i64 1
%38 = load i8*, i8** %9
%39 = call i32 @memcpy(i8* %37, i8* %38, i32 256)
%40 = getelementptr inbounds [260 x i8], [260 x i8]* %12, i64 0, i64 1
%41 = load i8, i8* %40
store i8 %41, i8* %17
store i32 2, i32* %18
br label %42
42: ; preds = %55, %35
%43 = load i32, i32* %18
%44 = icmp slt i32 %43, 257
br i1 %44, label %45, label %58
45: ; preds = %42
%46 = load i32, i32* %18
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [260 x i8], [260 x i8]* %12, i64 0, i64 %47
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = load i8, i8* %17
%52 = zext i8 %51 to i32
%53 = xor i32 %52, %50
%54 = trunc i32 %53 to i8
store i8 %54, i8* %17
br label %55
55: ; preds = %45
%56 = load i32, i32* %18
%57 = add nsw i32 %56, 1
store i32 %57, i32* %18
br label %42
58: ; preds = %42
%59 = load i8, i8* %17
%60 = getelementptr inbounds [260 x i8], [260 x i8]* %12, i64 0, i64 257
store i8 %59, i8* %60
%61 = getelementptr inbounds [260 x i8], [260 x i8]* %12, i64 0, i64 259
store i8 0, i8* %61
%62 = getelementptr inbounds [260 x i8], [260 x i8]* %12, i64 0, i64 258
store i8 0, i8* %62
%63 = getelementptr inbounds [260 x i8], [260 x i8]* %12, i64 0, i64 0
store i8* %63, i8** %15
%64 = getelementptr inbounds [325 x i8], [325 x i8]* %13, i64 0, i64 0
store i8* %64, i8** %16
store i32 0, i32* %18
br label %65
65: ; preds = %76, %58
%66 = load i32, i32* %18
%67 = icmp slt i32 %66, 65
br i1 %67, label %68, label %79
68: ; preds = %65
%69 = load i8*, i8** %15
%70 = load i8*, i8** %16
%71 = call i32 @gcr_convert_4bytes_to_GCR(i8* %69, i8* %70)
%72 = load i8*, i8** %15
%73 = getelementptr inbounds i8, i8* %72, i64 4
store i8* %73, i8** %15
%74 = load i8*, i8** %16
%75 = getelementptr inbounds i8, i8* %74, i64 5
store i8* %75, i8** %16
br label %76
76: ; preds = %68
%77 = load i32, i32* %18
%78 = add nsw i32 %77, 1
store i32 %78, i32* %18
br label %65
79: ; preds = %65
store i32 0, i32* %18
br label %80
80: ; preds = %100, %79
%81 = load i32, i32* %18
%82 = icmp slt i32 %81, 325
br i1 %82, label %83, label %103
83: ; preds = %80
%84 = load i32, i32* %18
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [325 x i8], [325 x i8]* %13, i64 0, i64 %85
%87 = load i8, i8* %86
%88 = load i8*, i8** %14
store i8 %87, i8* %88
%89 = load i8*, i8** %14
%90 = getelementptr inbounds i8, i8* %89, i32 1
store i8* %90, i8** %14
%91 = load i8*, i8** %14
%92 = load i8*, i8** %7
%93 = load i32, i32* %8
%94 = zext i32 %93 to i64
%95 = getelementptr inbounds i8, i8* %92, i64 %94
%96 = icmp eq i8* %91, %95
br i1 %96, label %97, label %99
97: ; preds = %83
%98 = load i8*, i8** %7
store i8* %98, i8** %14
br label %99
99: ; preds = %97, %83
br label %100
100: ; preds = %99
%101 = load i32, i32* %18
%102 = add nsw i32 %101, 1
store i32 %102, i32* %18
br label %80
103: ; preds = %80
store i32 0, i32* %6
br label %104
104: ; preds = %103, %34, %26
%105 = load i32, i32* %6
ret i32 %105
}

LLVM IR (-O2):
define i32 @gcr_write_sector(i8* %0, i32 %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca [260 x i8]
%7 = alloca [325 x i8]
%8 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 0
%9 = getelementptr inbounds [325 x i8], [325 x i8]* %7, i64 0, i64 0
%10 = tail call i8* @gcr_find_sector_header(i32 %3, i32 %4, i8* %0, i32 %1)
%11 = icmp eq i8* %10, null
br i1 %11, label %161, label %12
12: ; preds = %5
%13 = tail call i8* @gcr_find_sector_data(i8* %10, i8* %0, i32 %1)
%14 = icmp eq i8* %13, null
br i1 %14, label %161, label %15
15: ; preds = %12
store i8 7, i8* %8
%16 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 1
%17 = call i32 @memcpy(i8* %16, i8* %2, i32 256)
%18 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 242
%19 = bitcast i8* %18 to <8 x i8>*
%20 = load <8 x i8>, <8 x i8>* %19
%21 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 234
%22 = bitcast i8* %21 to <8 x i8>*
%23 = load <8 x i8>, <8 x i8>* %22
%24 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 226
%25 = bitcast i8* %24 to <8 x i8>*
%26 = load <8 x i8>, <8 x i8>* %25
%27 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 210
%28 = bitcast i8* %27 to <16 x i8>*
%29 = load <16 x i8>, <16 x i8>* %28
%30 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 178
%31 = bitcast i8* %30 to <16 x i8>*
%32 = load <16 x i8>, <16 x i8>* %31
%33 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 146
%34 = bitcast i8* %33 to <16 x i8>*
%35 = load <16 x i8>, <16 x i8>* %34
%36 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 114
%37 = bitcast i8* %36 to <16 x i8>*
%38 = load <16 x i8>, <16 x i8>* %37
%39 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 82
%40 = bitcast i8* %39 to <16 x i8>*
%41 = load <16 x i8>, <16 x i8>* %40
%42 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 50
%43 = bitcast i8* %42 to <16 x i8>*
%44 = load <16 x i8>, <16 x i8>* %43
%45 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 18
%46 = bitcast i8* %45 to <16 x i8>*
%47 = load <16 x i8>, <16 x i8>* %46
%48 = xor <16 x i8> %44, %47
%49 = xor <16 x i8> %41, %48
%50 = xor <16 x i8> %38, %49
%51 = xor <16 x i8> %35, %50
%52 = xor <16 x i8> %32, %51
%53 = xor <16 x i8> %29, %52
%54 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 194
%55 = bitcast i8* %54 to <16 x i8>*
%56 = load <16 x i8>, <16 x i8>* %55
%57 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 162
%58 = bitcast i8* %57 to <16 x i8>*
%59 = load <16 x i8>, <16 x i8>* %58
%60 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 130
%61 = bitcast i8* %60 to <16 x i8>*
%62 = load <16 x i8>, <16 x i8>* %61
%63 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 98
%64 = bitcast i8* %63 to <16 x i8>*
%65 = load <16 x i8>, <16 x i8>* %64
%66 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 66
%67 = bitcast i8* %66 to <16 x i8>*
%68 = load <16 x i8>, <16 x i8>* %67
%69 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 34
%70 = bitcast i8* %69 to <16 x i8>*
%71 = load <16 x i8>, <16 x i8>* %70
%72 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 2
%73 = bitcast i8* %72 to <16 x i8>*
%74 = load <16 x i8>, <16 x i8>* %73
%75 = load i8, i8* %16
%76 = insertelement <16 x i8> <i8 poison, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, i8 %75, i64 0
%77 = xor <16 x i8> %74, %76
%78 = xor <16 x i8> %71, %77
%79 = xor <16 x i8> %68, %78
%80 = xor <16 x i8> %65, %79
%81 = xor <16 x i8> %62, %80
%82 = xor <16 x i8> %59, %81
%83 = xor <16 x i8> %56, %82
%84 = xor <16 x i8> %53, %83
%85 = call i8 @llvm.vector.reduce.xor.v16i8(<16 x i8> %84)
%86 = insertelement <8 x i8> <i8 poison, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, i8 %85, i64 0
%87 = xor <8 x i8> %26, %86
%88 = xor <8 x i8> %23, %87
%89 = xor <8 x i8> %20, %88
%90 = call i8 @llvm.vector.reduce.xor.v8i8(<8 x i8> %89)
%91 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 250
%92 = load i8, i8* %91
%93 = xor i8 %92, %90
%94 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 251
%95 = load i8, i8* %94
%96 = xor i8 %95, %93
%97 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 252
%98 = load i8, i8* %97
%99 = xor i8 %98, %96
%100 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 253
%101 = load i8, i8* %100
%102 = xor i8 %101, %99
%103 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 254
%104 = load i8, i8* %103
%105 = xor i8 %104, %102
%106 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 255
%107 = load i8, i8* %106
%108 = xor i8 %107, %105
%109 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 256
%110 = load i8, i8* %109
%111 = xor i8 %110, %108
%112 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 257
store i8 %111, i8* %112
%113 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 259
store i8 0, i8* %113
%114 = getelementptr inbounds [260 x i8], [260 x i8]* %6, i64 0, i64 258
store i8 0, i8* %114
br label %118
115: ; preds = %118
%116 = zext i32 %1 to i64
%117 = getelementptr inbounds i8, i8* %0, i64 %116
br label %127
118: ; preds = %15, %118
%119 = phi i32 [ 0, %15 ], [ %125, %118 ]
%120 = phi i8* [ %9, %15 ], [ %124, %118 ]
%121 = phi i8* [ %8, %15 ], [ %123, %118 ]
%122 = call i32 @gcr_convert_4bytes_to_GCR(i8* %121, i8* %120)
%123 = getelementptr inbounds i8, i8* %121, i64 4
%124 = getelementptr inbounds i8, i8* %120, i64 5
%125 = add nuw nsw i32 %119, 1
%126 = icmp eq i32 %125, 65
br i1 %126, label %115, label %118
127: ; preds = %127, %115
%128 = phi i64 [ 0, %115 ], [ %159, %127 ]
%129 = phi i8* [ %13, %115 ], [ %158, %127 ]
%130 = getelementptr inbounds [325 x i8], [325 x i8]* %7, i64 0, i64 %128
%131 = load i8, i8* %130
store i8 %131, i8* %129
%132 = getelementptr inbounds i8, i8* %129, i64 1
%133 = icmp eq i8* %132, %117
%134 = select i1 %133, i8* %0, i8* %132
%135 = add nuw nsw i64 %128, 1
%136 = getelementptr inbounds [325 x i8], [325 x i8]* %7, i64 0, i64 %135
%137 = load i8, i8* %136
store i8 %137, i8* %134
%138 = getelementptr inbounds i8, i8* %134, i64 1
%139 = icmp eq i8* %138, %117
%140 = select i1 %139, i8* %0, i8* %138
%141 = add nuw nsw i64 %128, 2
%142 = getelementptr inbounds [325 x i8], [325 x i8]* %7, i64 0, i64 %141
%143 = load i8, i8* %142
store i8 %143, i8* %140
%144 = getelementptr inbounds i8, i8* %140, i64 1
%145 = icmp eq i8* %144, %117
%146 = select i1 %145, i8* %0, i8* %144
%147 = add nuw nsw i64 %128, 3
%148 = getelementptr inbounds [325 x i8], [325 x i8]* %7, i64 0, i64 %147
%149 = load i8, i8* %148
store i8 %149, i8* %146
%150 = getelementptr inbounds i8, i8* %146, i64 1
%151 = icmp eq i8* %150, %117
%152 = select i1 %151, i8* %0, i8* %150
%153 = add nuw nsw i64 %128, 4
%154 = getelementptr inbounds [325 x i8], [325 x i8]* %7, i64 0, i64 %153
%155 = load i8, i8* %154
store i8 %155, i8* %152
%156 = getelementptr inbounds i8, i8* %152, i64 1
%157 = icmp eq i8* %156, %117
%158 = select i1 %157, i8* %0, i8* %156
%159 = add nuw nsw i64 %128, 5
%160 = icmp eq i64 %159, 325
br i1 %160, label %161, label %127
161: ; preds = %127, %12, %5
%162 = phi i32 [ -1, %5 ], [ -1, %12 ], [ 0, %127 ]
ret i32 %162
}