// File: /workspace/github_cpp_makefile_star2_O3/mshabbirhasan[P]ups-indel/src/ups_indel.cpp
// Function: executeUPSIndel(void*)
void * executeUPSIndel(void * threadIndex) {
    long chrNum;
    chrNum = (long) threadIndex;

    int flag = -999;
    string chr = "";

    if (chrNum >= 1 && chrNum <= 22) {
        chr = to_string(chrNum);
    } else if (chrNum == 23) {
        chr = "X";
    } else if (chrNum == 24) {
        chr = "Y";
    } else if (chrNum == 25) {
        chr = "MT";
    }

    string vcfFileName = input_file_base_name + "." + chr + ".vcf";

    if(fileExists(vcfFileName)){
        flag = genenateUPSCoordinate(reference_file_name,
        vcfFileName, output_file_name + "." + chr);

        if (flag) {
            exit(-1);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x99b9(%rip), %rdx      # 0x11248
leaq -0x88(%rbp), %rdi
movq %rdx, %rsi
callq 0xf906
testq %rbx, %rbx
setle %al
cmpq $0x17, %rbx
setge %cl
orb %al, %cl
jne 0x790a
movl $0x1, %r14d
cmpq $0xa, %rbx
jb 0x7952
movl $0x4, %r14d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %rbx, %rcx
cmpq $0x63, %rcx
jbe 0x7949
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x794f
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x7952
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r14d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x78d2
addl $-0x3, %r14d
jmp 0x7952
leaq -0x17(%rbx), %rax
cmpq $0x3, %rax
jae 0x7999
leaq 0xa139(%rip), %rdx      # 0x11a58
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0xa13b(%rip), %rax      # 0x11a68
movq -0xb8(%rax,%rbx,8), %r8
leaq -0x88(%rbp), %rdi
movq 0x8(%rdi), %rdx
xorl %esi, %esi
callq 0x34d0
jmp 0x7999
addl $-0x2, %r14d
jmp 0x7952
decl %r14d
movl %r14d, %esi
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x48(%rbp), %rdi
movl $0x2d, %edx
callq 0x33b0
leaq -0x48(%rbp), %r15
movq (%r15), %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0xf774
leaq -0x88(%rbp), %rdi
movq %r15, %rsi
callq 0x3400
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x7999
callq 0x32f0
leaq -0x98(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0xea15(%rip), %rsi      # 0x163c0
movq 0xea16(%rip), %rdx      # 0x163c8
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0xf868
leaq 0x978f(%rip), %rsi      # 0x11157
leaq -0xa8(%rbp), %rdi
callq 0x3640
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x30f0
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a0b
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x7a16
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x97b8(%rip), %rsi      # 0x111f0
callq 0x3640
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x7a5d
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x7a68
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x7a8d
callq 0x32f0
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0x7a9e
callq 0x32f0
movq -0x48(%rbp), %rdi
leaq 0x9be2(%rip), %rsi      # 0x1168b
callq 0x33c0
testq %rax, %rax
je 0x7abb
movq %rax, %rdi
callq 0x3330
leaq -0xd8(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0xe8b3(%rip), %rsi      # 0x16380
movq 0xe8b4(%rip), %rdx      # 0x16388
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0xf868
leaq -0xb8(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0xf868
leaq 0xe8d4(%rip), %rsi      # 0x163e0
leaq 0x9644(%rip), %rdx      # 0x11157
leaq -0x68(%rbp), %rdi
callq 0x8888
leaq -0x108(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x8c31
leaq -0xe8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0x50d0
leaq -0x108(%rbp), %rdi
callq 0x3688
leaq -0x68(%rbp), %rdi
callq 0x3688
leaq -0xc8(%rbp), %rdi
callq 0x3688
leaq -0xe8(%rbp), %rdi
callq 0x3688
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x33e0
movq %rax, %rbx
leaq -0xf8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7ba1
callq 0x32f0
jmp 0x7ba1
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x7bb4
callq 0x32f0
jmp 0x7bb4
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x7bd1
callq 0x32f0
jmp 0x7bd1
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r13, %rdi
je 0x7be7
callq 0x32f0
jmp 0x7be7
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
jne 0x7c18
jmp 0x7c24
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x7c0c
callq 0x32f0
jmp 0x7c0c
jmp 0x7c09
jmp 0x7c21
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0x7c24
callq 0x32f0
jmp 0x7c24
jmp 0x7c21
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x7c35
callq 0x32f0
movq %rbx, %rdi
callq 0x35b0