// File: /workspace/github_c_makefile_star2_O3/sc932[P]ALE/src/synthReadGen.c
// Function: ks_getuntil2
char getComplimentRes(const char res){
  if(res == 'A'){return 'T';}
  if(res == 'T'){return 'A';}
  if(res == 'G'){return 'C';}
  return 'G';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %r13d
movq %rdi, %r15
testq %rcx, %rcx
je 0x2df5
movl $0x0, (%r14)
testl %r8d, %r8d
je 0x2dff
movq (%rbx), %rax
jmp 0x2e01
xorl %eax, %eax
movq %rax, (%rbx)
movl 0x8(%r15), %ecx
movl 0xc(%r15), %r12d
cmpl %r12d, %ecx
jl 0x2e21
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x0, 0x10(%r15)
jne 0x3039
movl %r13d, 0xc(%rsp)
movq %r14, 0x10(%rsp)
cmpl %r12d, %ecx
jl 0x2e73
cmpl $0x0, 0x10(%r15)
jne 0x2fe2
movl $0x0, 0x8(%r15)
movq (%r15), %rsi
movq 0x18(%r15), %rdi
movl $0x4000, %edx           # imm = 0x4000
callq 0x10d0
movl %eax, %r12d
movl %eax, 0xc(%r15)
cmpl $0x3fff, %eax           # imm = 0x3FFF
jg 0x2e73
movl $0x1, 0x10(%r15)
testl %r12d, %r12d
je 0x2fe2
movl 0x8(%r15), %r14d
movslq %r14d, %rbp
testl %r13d, %r13d
je 0x2eaa
cmpl $0x2, %r13d
jne 0x2ed8
movl %r14d, %r13d
cmpl %r12d, %r14d
jge 0x2f11
addq (%r15), %rbp
movl %r14d, %r13d
cmpb $0xa, (%rbp)
je 0x2f11
incl %r13d
incq %rbp
cmpl %r13d, %r12d
jne 0x2e97
jmp 0x2f0e
movl %r14d, %r13d
cmpl %r12d, %r14d
jge 0x2f11
callq 0x11a0
movq (%rax), %rax
addq (%r15), %rbp
movl %r14d, %r13d
movzbl (%rbp), %ecx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x2f11
incl %r13d
incq %rbp
cmpl %r13d, %r12d
jne 0x2ec0
jmp 0x2f0e
movl %r14d, %r13d
cmpl %r12d, %r14d
jge 0x2f11
callq 0x11a0
movq (%rax), %rax
addq (%r15), %rbp
movl %r14d, %r13d
movzbl (%rbp), %ecx
cmpl $0x20, %ecx
je 0x2f03
movzwl (%rax,%rcx,2), %ecx
andl $0x2000, %ecx           # imm = 0x2000
jne 0x2f11
incl %r13d
incq %rbp
cmpl %r13d, %r12d
jne 0x2eee
movl %r12d, %r13d
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
subq %rdi, %rdx
movl %r13d, %ecx
subl %r14d, %ecx
leal 0x1(%rcx), %eax
movslq %eax, %rsi
movq 0x10(%rbx), %rax
cmpq %rsi, %rdx
jae 0x2f87
movslq %ecx, %rcx
addq %rcx, %rdi
movq %rdi, %rcx
shrq %rcx
orq %rdi, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rsi
shrq $0x10, %rsi
orq %rdx, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq %rax, %rdi
callq 0x1120
movq %rax, 0x10(%rbx)
movq (%rbx), %rdi
movl 0x8(%r15), %r14d
movl %r13d, %ecx
subl %r14d, %ecx
addq %rax, %rdi
movslq %r14d, %rsi
addq (%r15), %rsi
movslq %ecx, %rdx
callq 0x10f0
movslq 0x8(%r15), %rcx
movslq %r13d, %rax
movq %rax, %rdx
subq %rcx, %rdx
addq %rdx, (%rbx)
leal 0x1(%r13), %ecx
movl %ecx, 0x8(%r15)
movl 0xc(%r15), %r12d
movq 0x10(%rsp), %r14
testq %r14, %r14
je 0x2fc3
cmpl %r12d, %r13d
jl 0x2fd3
cmpl %r12d, %r13d
movl 0xc(%rsp), %r13d
jge 0x2e2b
jmp 0x2fe2
movq (%r15), %rcx
movzbl (%rcx,%rax), %eax
movl %eax, (%r14)
movl 0xc(%rsp), %r13d
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x3015
cmpl $0x2, %r13d
sete %dl
movq (%rbx), %rcx
cmpq $0x2, %rcx
setae %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x3033
cmpb $0xd, -0x1(%rax,%rcx)
jne 0x3033
decq %rcx
movq %rcx, (%rbx)
jmp 0x3033
movq $0x1, 0x8(%rbx)
movl $0x1, %edi
movl $0x1, %esi
callq 0x10c0
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
movb $0x0, (%rax,%rcx)
movl (%rbx), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq