// File: 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
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movl $0xfffffc19, -0x14(%rbp) # imm = 0xFFFFFC19
leaq -0x39(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0x4780
movq -0x158(%rbp), %rdx
leaq 0x1f716(%rip), %rsi     # 0x28522
leaq -0x38(%rbp), %rdi
callq 0x45d0
jmp 0x8e17
leaq -0x39(%rbp), %rdi
callq 0x44a0
cmpq $0x1, -0x10(%rbp)
jl 0x8e83
cmpq $0x16, -0x10(%rbp)
jg 0x8e83
movq -0x10(%rbp), %rsi
leaq -0x70(%rbp), %rdi
callq 0xaba0
jmp 0x8e3d
leaq -0x38(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x4510
leaq -0x70(%rbp), %rdi
callq 0x48b8
jmp 0x8eda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x39(%rbp), %rdi
callq 0x44a0
jmp 0x90fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x90f1
cmpq $0x17, -0x10(%rbp)
jne 0x8e9e
leaq 0x1f9a6(%rip), %rsi     # 0x28837
leaq -0x38(%rbp), %rdi
callq 0x45c0
jmp 0x8e9c
jmp 0x8ed8
cmpq $0x18, -0x10(%rbp)
jne 0x8eb9
leaq 0x1fa08(%rip), %rsi     # 0x288b4
leaq -0x38(%rbp), %rdi
callq 0x45c0
jmp 0x8eb7
jmp 0x8ed6
cmpq $0x19, -0x10(%rbp)
jne 0x8ed4
leaq 0x1f5ab(%rip), %rsi     # 0x28472
leaq -0x38(%rbp), %rdi
callq 0x45c0
jmp 0x8ed2
jmp 0x8ed4
jmp 0x8ed6
jmp 0x8ed8
jmp 0x8eda
leaq 0x2f5f7(%rip), %rsi     # 0x384d8
leaq 0x1f549(%rip), %rdx     # 0x28431
leaq -0xd0(%rbp), %rdi
callq 0xa410
jmp 0x8ef6
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0xad20
jmp 0x8f0f
leaq 0x1f5b4(%rip), %rdx     # 0x284ca
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xacd0
jmp 0x8f2b
leaq -0xb0(%rbp), %rdi
callq 0x48b8
leaq -0xd0(%rbp), %rdi
callq 0x48b8
leaq -0x90(%rbp), %rdi
callq 0xad70
movb %al, -0x159(%rbp)
jmp 0x8f57
movb -0x159(%rbp), %al
testb $0x1, %al
jne 0x8f66
jmp 0x90e3
leaq 0x2f52b(%rip), %rsi     # 0x38498
leaq -0xf0(%rbp), %rdi
callq 0x41f0
jmp 0x8f7b
leaq -0x110(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x41f0
jmp 0x8f90
leaq 0x2f561(%rip), %rsi     # 0x384f8
leaq 0x1f493(%rip), %rdx     # 0x28431
leaq -0x150(%rbp), %rdi
callq 0xa410
jmp 0x8fac
leaq -0x130(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0xad20
jmp 0x8fc5
leaq -0xf0(%rbp), %rdi
leaq -0x110(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0x6c40
movl %eax, -0x160(%rbp)
jmp 0x8fe7
movl -0x160(%rbp), %eax
movl %eax, -0x14(%rbp)
leaq -0x130(%rbp), %rdi
callq 0x48b8
leaq -0x150(%rbp), %rdi
callq 0x48b8
leaq -0x110(%rbp), %rdi
callq 0x48b8
leaq -0xf0(%rbp), %rdi
callq 0x48b8
cmpl $0x0, -0x14(%rbp)
je 0x90e1
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x44f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x905a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x48b8
leaq -0xd0(%rbp), %rdi
callq 0x48b8
jmp 0x90f1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x90e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x90d3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x90c7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x90bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x130(%rbp), %rdi
callq 0x48b8
leaq -0x150(%rbp), %rdi
callq 0x48b8
leaq -0x110(%rbp), %rdi
callq 0x48b8
leaq -0xf0(%rbp), %rdi
callq 0x48b8
jmp 0x90e5
jmp 0x90e3
ud2
leaq -0x90(%rbp), %rdi
callq 0x48b8
leaq -0x38(%rbp), %rdi
callq 0x48b8
movq -0x48(%rbp), %rdi
callq 0x4770
nopw %cs:(%rax,%rax)