// File: /workspace/github_c_makefile_star2_O1/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_get_ref
char *cram_get_ref(cram_fd *fd, int id, int start, int end) {
    ref_entry *r;
    char *seq;
    int ostart = start;

    if (id == -1)
	return NULL;

    /* FIXME: axiomatic query of r->seq being true?
     * Or shortcut for unsorted data where we load once and never free?
     */

    //fd->shared_ref = 1; // hard code for now to simplify things

    pthread_mutex_lock(&fd->ref_lock);

    RP("%d cram_get_ref on fd %p, id %d, range %d..%d\n", gettid(), fd, id, start, end);

    /*
     * Unsorted data implies we want to fetch an entire reference at a time.
     * We just deal with this at the moment by claiming we're sharing
     * references instead, which has the same requirement.
     */
    if (fd->unsorted)
	fd->shared_ref = 1;


    /* Sanity checking: does this ID exist? */
    if (id >= fd->refs->nref) {
	fprintf(stderr, "No reference found for id %d\n", id);
	pthread_mutex_unlock(&fd->ref_lock);
	return NULL;
    }

    if (!fd->refs || !fd->refs->ref_id[id]) {
	fprintf(stderr, "No reference found for id %d\n", id);
	pthread_mutex_unlock(&fd->ref_lock);
	return NULL;
    }

    if (!(r = fd->refs->ref_id[id])) {
	fprintf(stderr, "No reference found for id %d\n", id);
	pthread_mutex_unlock(&fd->ref_lock);
	return NULL;
    }


    /*
     * It has an entry, but may not have been populated yet.
     * Any manually loaded .fai files have their lengths known.
     * A ref entry computed from @SQ lines (M5 or UR field) will have
     * r->length == 0 unless it's been loaded once and verified that we have
     * an on-disk filename for it.
     *
     * 19 Sep 2013: Moved the lock here as the cram_populate_ref code calls
     * open_path_mfile and libcurl, which isn't multi-thread safe unless I
     * rewrite my code to have one curl handle per thread.
     */
    pthread_mutex_lock(&fd->refs->lock);
    if (r->length == 0) {
	if (cram_populate_ref(fd, id, r) == -1) {
	    fprintf(stderr, "Failed to populate reference for id %d\n", id);
	    pthread_mutex_unlock(&fd->refs->lock);
	    pthread_mutex_unlock(&fd->ref_lock);
	    return NULL;
	}
	r = fd->refs->ref_id[id];
	if (fd->unsorted)
	    cram_ref_incr_locked(fd->refs, id);
    }


    /*
     * We now know that we the filename containing the reference, so check
     * for limits. If it's over half the reference we'll load all of it in
     * memory as this will speed up subsequent calls.
     */
    if (end < 1)
	end = r->length;
    if (end >= r->length)
	end  = r->length; 
    assert(start >= 1);

    if (end - start >= 0.5*r->length || fd->shared_ref) {
	start = 1;
	end = r->length;
    }
    
    /*
     * Maybe we have it cached already? If so use it.
     *
     * Alternatively if we don't have the sequence but we're sharing
     * references and/or are asking for the entire length of it, then
     * load the full reference into the refs structure and return
     * a pointer to that one instead.
     */
    if (fd->shared_ref || r->seq || (start == 1 && end == r->length)) {
	char *cp;

	if (id >= 0) {
	    if (r->seq) {
		cram_ref_incr_locked(fd->refs, id);
	    } else {
		ref_entry *e;
		if (!(e = cram_ref_load(fd->refs, id, r->is_md5))) {
		    pthread_mutex_unlock(&fd->refs->lock);
		    pthread_mutex_unlock(&fd->ref_lock);
		    return NULL;
		}

		/* unsorted data implies cache ref indefinitely, to avoid
		 * continually loading and unloading.
		 */
		if (fd->unsorted)
		    cram_ref_incr_locked(fd->refs, id);
	    }	    

	    fd->ref = NULL; /* We never access it directly */
	    fd->ref_start = 1;
	    fd->ref_end   = r->length;
	    fd->ref_id    = id;

	    cp = fd->refs->ref_id[id]->seq + ostart-1;
	} else {
	    fd->ref = NULL;
	    cp = NULL;
	}

	RP("%d cram_get_ref returning for id %d, count %d\n", gettid(), id, (int)r->count);

	pthread_mutex_unlock(&fd->refs->lock);
	pthread_mutex_unlock(&fd->ref_lock);
	return cp;
    }

    /*
     * Otherwise we're not sharing, we don't have a copy of it already and
     * we're only asking for a small portion of it.
     *
     * In this case load up just that segment ourselves, freeing any old
     * small segments in the process.
     */

    /* Unmapped ref ID */
    if (id < 0) {
	if (fd->ref_free) {
	    free(fd->ref_free);
	    fd->ref_free = NULL;
	}
	fd->ref = NULL;
	fd->ref_id = id;
	pthread_mutex_unlock(&fd->refs->lock);
	pthread_mutex_unlock(&fd->ref_lock);
	return NULL;
    }

    /* Open file if it's not already the current open reference */
    if (strcmp(fd->refs->fn, r->fn) || fd->refs->fp == NULL) {
	if (fd->refs->fp)
	    if (bgzf_close(fd->refs->fp) != 0)
		return NULL;
	fd->refs->fn = r->fn;
	if (!(fd->refs->fp = bgzf_open_ref(fd->refs->fn, "r", r->is_md5))) {
	    pthread_mutex_unlock(&fd->refs->lock);
	    pthread_mutex_unlock(&fd->ref_lock);
	    return NULL;
	}
    }

    if (!(fd->ref = load_ref_portion(fd->refs->fp, r, start, end))) {
	pthread_mutex_unlock(&fd->refs->lock);
	pthread_mutex_unlock(&fd->ref_lock);
	return NULL;
    }

    if (fd->ref_free)
	free(fd->ref_free);

    fd->ref_id    = id;
    fd->ref_start = start;
    fd->ref_end   = end;
    fd->ref_free = fd->ref;
    seq = fd->ref;

    pthread_mutex_unlock(&fd->refs->lock);
    pthread_mutex_unlock(&fd->ref_lock);

    return seq + ostart - start;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3048, %rsp           # imm = 0x3048
cmpl $-0x1, %esi
je 0x5899d
movl %ecx, %r13d
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %r15
leaq 0x8898(%rdi), %r12
movq %r12, %rdi
callq 0x6ae0
cmpl $0x0, 0x8854(%r15)
je 0x5810e
movl $0x1, 0x220(%r15)
movq 0x48(%r15), %rdi
cmpl %ebp, 0x18(%rdi)
jle 0x58390
movq %r12, 0x10(%rsp)
testq %rdi, %rdi
je 0x582fc
movq 0x10(%rdi), %rax
movslq %ebp, %rcx
movq %rcx, 0x20(%rsp)
movq (%rax,%rcx,8), %r12
testq %r12, %r12
je 0x582fc
leaq 0x48(%r15), %rax
movq %rax, (%rsp)
addq $0x38, %rdi
callq 0x6ae0
cmpq $0x0, 0x10(%r12)
je 0x58224
testl %r13d, %r13d
jg 0x58169
movl 0x10(%r12), %r13d
movslq %r13d, %rbx
movq 0x10(%r12), %rax
cmpq %rbx, %rax
cmovlel %eax, %ebx
testl %r14d, %r14d
jle 0x58a6c
movl %ebx, %ecx
movl %r14d, %r13d
subl %r14d, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
cvtsi2sd %rax, %xmm1
mulsd 0x36c0c(%rip), %xmm1    # 0x8eda8
ucomisd %xmm1, %xmm0
jae 0x581af
cmpl $0x0, 0x220(%r15)
movl %r13d, %r14d
je 0x581b7
movl $0x1, %r14d
movl %eax, %ebx
cmpl $0x0, 0x220(%r15)
jne 0x581df
cmpq $0x0, 0x30(%r12)
jne 0x581df
cmpl $0x1, %r14d
jne 0x583b1
movslq %ebx, %rcx
cmpq %rcx, %rax
jne 0x583b1
testl %ebp, %ebp
js 0x582a5
cmpq $0x0, 0x30(%r12)
movq (%rsp), %r14
movq (%r14), %rdi
je 0x582b8
movq 0x10(%rdi), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x30(%rax)
je 0x58339
cmpl %ebp, 0x68(%rdi)
jne 0x5821b
movl $0xffffffff, 0x68(%rdi) # imm = 0xFFFFFFFF
incq 0x28(%rax)
jmp 0x58339
leaq 0x8cfc(%r15), %rbx
movb $0x0, 0x9cfc(%r15)
cmpl $0x0, 0x1fc(%r15)
jne 0x58450
leaq 0x88fc(%r15), %rax
cmpb $0x0, (%rbx)
jne 0x584e0
leaq 0x40f93(%rip), %rbx     # 0x991eb
cmpb $0x0, (%rax)
jne 0x584e0
leaq 0x41011(%rip), %rdi     # 0x99279
callq 0x68f0
testq %rax, %rax
je 0x5827b
cmpb $0x0, (%rax)
jne 0x584a5
leaq 0x41001(%rip), %rdi     # 0x99283
callq 0x68f0
testq %rax, %rax
je 0x58472
cmpb $0x0, (%rax)
je 0x58472
leaq 0x40fe8(%rip), %r8      # 0x99288
jmp 0x584ac
movq $0x0, 0x50(%r15)
xorl %ebx, %ebx
movq (%rsp), %r14
jmp 0x58375
movl 0x40(%r12), %edx
movl %ebp, %esi
callq 0x57d62
movq %rax, %rbx
testq %rax, %rax
je 0x5831a
cmpl $0x0, 0x8854(%r15)
je 0x58330
movq (%r14), %rax
movq 0x10(%rax), %rcx
movl %ebp, %edx
movq (%rcx,%rdx,8), %rcx
cmpq $0x0, 0x30(%rcx)
je 0x58330
cmpl %ebp, 0x68(%rax)
jne 0x582f6
movl $0xffffffff, 0x68(%rax) # imm = 0xFFFFFFFF
incq 0x28(%rcx)
jmp 0x58330
movq 0x66cd5(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x40ba0(%rip), %rsi     # 0x98ead
xorl %ebx, %ebx
movl %ebp, %edx
xorl %eax, %eax
callq 0x6a90
jmp 0x58381
movq (%r14), %rdi
addq $0x38, %rdi
callq 0x64f0
movq 0x10(%rsp), %rdi
callq 0x64f0
testq %rbx, %rbx
je 0x5899d
movq $0x0, 0x50(%r15)
movl $0x1, 0x64(%r15)
movl 0x10(%r12), %eax
movl %eax, 0x68(%r15)
movl %ebp, 0x60(%r15)
movq 0x48(%r15), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x30(%rax), %rax
movl %r13d, %ecx
leaq (%rax,%rcx), %rbx
decq %rbx
movq (%r14), %rdi
addq $0x38, %rdi
callq 0x64f0
movq 0x10(%rsp), %rdi
callq 0x64f0
jmp 0x5899f
movq 0x66c41(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x40b0c(%rip), %rsi     # 0x98ead
xorl %ebx, %ebx
movl %ebp, %edx
xorl %eax, %eax
callq 0x6a90
movq %r12, %rdi
jmp 0x58386
testl %ebp, %ebp
js 0x58425
movq (%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rax), %rdi
movq 0x8(%r12), %rsi
callq 0x6a50
testl %eax, %eax
movq 0x20(%rsp), %rax
je 0x587dd
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x583f2
callq 0x68168
testl %eax, %eax
jne 0x5899d
movq 0x8(%r12), %rdi
movq (%rsp), %rax
movq (%rax), %rax
movq %rdi, 0x20(%rax)
movl 0x40(%r12), %esi
callq 0x57e94
movq (%rsp), %rcx
movq (%rcx), %rdi
movq %rax, 0x28(%rdi)
testq %rax, %rax
jne 0x587e8
jmp 0x5898a
movq 0x58(%r15), %rdi
testq %rdi, %rdi
je 0x5843b
callq 0x68a0
movq $0x0, 0x58(%r15)
movq $0x0, 0x50(%r15)
movl %ebp, 0x60(%r15)
movq 0x48(%r15), %rdi
jmp 0x5898a
movq 0x66b81(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x40d67(%rip), %rsi     # 0x991c8
movq %r15, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x6a90
jmp 0x58241
leaq 0x3afce(%rip), %rdi     # 0x93447
callq 0x68f0
testq %rax, %rax
je 0x58488
cmpb $0x0, (%rax)
jne 0x584a5
leaq 0x40e01(%rip), %rdi     # 0x99290
callq 0x68f0
testq %rax, %rax
je 0x5849e
cmpb $0x0, (%rax)
jne 0x584a5
leaq 0x3af87(%rip), %rax     # 0x9342c
leaq 0x3feb4(%rip), %r8      # 0x98360
leaq 0x40d60(%rip), %rdx     # 0x99213
leaq 0x2040(%rsp), %rdi
movl $0x1000, %esi           # imm = 0x1000
movq %rax, %rcx
xorl %eax, %eax
callq 0x6c20
cmpl $0x0, 0x1fc(%r15)
jne 0x58a10
leaq 0x2040(%rsp), %rax
movq (%r12), %rcx
testq %rcx, %rcx
je 0x586e8
movq %rax, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq 0x18(%r15), %rdi
leaq 0x41f86(%rip), %rsi     # 0x9a488
leaq 0x40afe(%rip), %rdx     # 0x99007
callq 0x62ab8
testq %rax, %rax
je 0x586e8
movq %rax, %rbx
movl %r13d, 0x8(%rsp)
movq 0x18(%r15), %rdi
leaq 0x40ae0(%rip), %rdx     # 0x9900a
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x6321d
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x585f0
cmpl $0x0, 0x1fc(%r15)
jne 0x58a01
movq 0x30(%rsp), %rsi
cmpb $0x0, (%rsi)
je 0x585a8
movl %r14d, 0xc(%rsp)
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdx
addq $0x3, %rdx
leaq 0x1040(%rsp), %r14
movq %r14, %rdi
callq 0x57aa7
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
callq 0x6630
movb $0x1, %r13b
testl %eax, %eax
je 0x58760
testb %r13b, %r13b
movl 0xc(%rsp), %r14d
movl 0x8(%rsp), %r13d
jne 0x585a8
jmp 0x586ed
movl %edx, 0x1c(%rsp)
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
addq $0x3, %rdi
movq 0x38(%rsp), %rsi
xorl %edx, %edx
callq 0x5f153
testq %rax, %rax
je 0x585f0
movq %rax, %r13
leaq 0x40(%rsp), %rsi
movq %rax, %rdi
callq 0x5e8cc
movq %rax, 0x30(%r12)
testq %rax, %rax
je 0x58854
xorl %r13d, %r13d
jmp 0x5885d
movq 0x18(%r15), %rdi
leaq 0x37ce3(%rip), %rdx     # 0x902de
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x6321d
testq %rax, %rax
je 0x5873f
movq 0x8(%rax), %rbx
leaq 0x3(%rbx), %r12
leaq 0x40c3e(%rip), %rsi     # 0x9925b
movl $0x5, %edx
movq %r12, %rdi
callq 0x6330
addq $0x8, %rbx
testl %eax, %eax
cmovneq %r12, %rbx
movq (%rsp), %rcx
movq (%rcx), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
movl 0x8(%rsp), %r13d
je 0x58665
callq 0x68168
testl %eax, %eax
jne 0x586e8
movq (%rsp), %rcx
movq (%rcx), %rax
movq $0x0, 0x28(%rax)
movq (%rcx), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x58b63
testq %rax, %rax
je 0x586e8
movq %rax, %rbx
movq %r15, %rdi
callq 0x58f7b
movq %rbx, 0x48(%r15)
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x586a7
callq 0x68168
testl %eax, %eax
jne 0x586e8
movq (%rsp), %rax
movq (%rax), %rax
movq $0x0, 0x28(%rax)
movq (%rsp), %rax
movq (%rax), %rdi
cmpq $0x0, 0x20(%rdi)
je 0x586e8
movq 0x18(%r15), %rsi
callq 0x575df
cmpl $-0x1, %eax
je 0x586e8
movq (%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x586ed
xorl %edx, %edx
movq 0x20(%rsp), %rcx
cmpq $0x1, (%rax,%rcx,8)
sbbl %edx, %edx
jmp 0x586ed
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpl $-0x1, %edx
je 0x5874b
movq 0x48(%r15), %rax
movq 0x10(%rax), %rcx
movq 0x20(%rsp), %rdx
movq (%rcx,%rdx,8), %r12
testl %ebp, %ebp
js 0x5815f
cmpl $0x0, 0x8854(%r15)
je 0x5815f
movl %ebp, %edx
movq (%rcx,%rdx,8), %rcx
cmpq $0x0, 0x30(%rcx)
je 0x5815f
cmpl %ebp, 0x68(%rax)
jne 0x58736
movl $0xffffffff, 0x68(%rax) # imm = 0xFFFFFFFF
incq 0x28(%rcx)
jmp 0x5815f
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl 0x8(%rsp), %r13d
jmp 0x586ed
movl %ebp, %edi
movq (%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x78dc
jmp 0x5899d
leaq 0x3d6c2(%rip), %rsi     # 0x95e29
leaq 0x1040(%rsp), %rdi
callq 0x66a24
testq %rax, %rax
je 0x58594
movq %rax, %r14
movq 0x70(%rsp), %rax
movq %rax, 0x10(%r12)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%r12)
movq (%rsp), %r13
movq (%r13), %rax
movq (%rax), %rdi
leaq 0x1040(%rsp), %rsi
callq 0x65194
movq %rax, 0x8(%r12)
movq (%r13), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x589b4
callq 0x68168
testl %eax, %eax
je 0x589b4
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %r13d, %r13d
jmp 0x58594
cmpq $0x0, 0x28(%rax)
je 0x583dc
movq 0x48(%r15), %rax
movq 0x28(%rax), %rdi
movq %r12, %rsi
movl %r14d, %edx
movl %ebx, %ecx
callq 0x57f69
movq %rax, 0x50(%r15)
testq %rax, %rax
je 0x58983
movq 0x58(%r15), %rdi
testq %rdi, %rdi
je 0x58818
callq 0x68a0
movl %ebp, 0x60(%r15)
movl %r14d, 0x64(%r15)
movl %ebx, 0x68(%r15)
movq 0x48(%r15), %rdi
movq 0x50(%r15), %r12
movq %r12, 0x58(%r15)
addq $0x38, %rdi
callq 0x64f0
movq 0x10(%rsp), %rdi
callq 0x64f0
movl %r13d, %ebx
addq %r12, %rbx
movl %r14d, %eax
subq %rax, %rbx
jmp 0x5899f
movq 0x8(%r13), %rax
movq %rax, 0x30(%r12)
movq 0x30(%rsp), %rsi
movq %r13, 0x38(%r12)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%r12)
movl $0x1, 0x40(%r12)
cmpb $0x0, (%rsi)
movl 0x8(%rsp), %r13d
je 0x589fa
movl %r14d, 0xc(%rsp)
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdx
addq $0x3, %rdx
leaq 0x1040(%rsp), %rdi
callq 0x57aa7
cmpl $0x0, 0x1fc(%r15)
jne 0x58a35
leaq 0x1040(%rsp), %rdi
movl $0x3ff, %esi            # imm = 0x3FF
callq 0x57be2
leaq 0x40(%rsp), %r14
xorl %r13d, %r13d
movq %r14, %rdi
leaq 0x40993(%rip), %rsi     # 0x9926c
leaq 0x1040(%rsp), %rdx
movl %r13d, %ecx
xorl %eax, %eax
callq 0x6170
movq %r14, %rdi
leaq 0x40981(%rip), %rsi     # 0x99276
callq 0x6880
movq %rax, %rbx
testq %rax, %rax
jne 0x5892a
incl %r13d
callq 0x6060
cmpl $0x11, (%rax)
je 0x588cf
leaq 0x40(%rsp), %rdi
callq 0x6590
xorl %edx, %edx
movl 0xc(%rsp), %r14d
movl 0x8(%rsp), %r13d
jmp 0x589f1
movq 0x10(%r12), %r14
movq 0x30(%r12), %rdi
movl $0x1, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x6e70
cmpq %rax, %r14
jne 0x58a5a
movq %rbx, %rdi
callq 0x5744f
cmpl $-0x1, %eax
movl 0xc(%rsp), %r14d
movl 0x8(%rsp), %r13d
je 0x58977
leaq 0x40(%rsp), %rdi
movl $0x124, %esi            # imm = 0x124
callq 0x6640
testl %eax, %eax
je 0x589db
leaq 0x40(%rsp), %rdi
callq 0x6320
jmp 0x589ed
movq (%rsp), %rax
movq (%rax), %rdi
addq $0x38, %rdi
callq 0x64f0
movq 0x10(%rsp), %rdi
callq 0x64f0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x3048, %rsp           # imm = 0x3048
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rax
movq (%rax), %rax
movq %r14, 0x28(%rax)
movq 0x8(%r12), %rcx
movq %rcx, 0x20(%rax)
movl $0x1, 0x40(%r12)
xorl %r13d, %r13d
xorl %edx, %edx
jmp 0x58594
leaq 0x40(%rsp), %rdi
leaq 0x1040(%rsp), %rsi
callq 0x6430
movl 0x1c(%rsp), %edx
testq %rbx, %rbx
je 0x586ed
xorl %edx, %edx
jmp 0x586ed
movq 0x28(%rsp), %rdi
callq 0x78b3
jmp 0x58550
movq 0x665c1(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x4080d(%rip), %rsi     # 0x9922e
leaq 0x2040(%rsp), %rdx
xorl %eax, %eax
callq 0x6a90
jmp 0x584d8
movq 0x6659c(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x4081b(%rip), %rsi     # 0x99261
leaq 0x1040(%rsp), %rdx
xorl %eax, %eax
callq 0x6a90
jmp 0x588b5
leaq 0x1040(%rsp), %rdi
callq 0x6590
jmp 0x5894d
leaq 0x40480(%rip), %rdi     # 0x98ef3
leaq 0x40254(%rip), %rsi     # 0x98cce
leaq 0x4047d(%rip), %rcx     # 0x98efe
movl $0xa85, %edx            # imm = 0xA85
callq 0x6460