// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: asg_arc_rest(asg_t*, asg_t*, unsigned int, unsigned int, ma_ug_t*, kvec_asg_arc_t_warp*, ma_hit_t_alloc*, ma_sub_t*, int, int, int, unsigned int*)
static inline void asg_arc_rest(asg_t *des, asg_t *src, uint32_t v0, uint32_t w0, ma_ug_t *ug, kvec_asg_arc_t_warp *ae, ma_hit_t_alloc* src_e, ma_sub_t *cov, int32_t max_hang, int32_t min_ovlp, int32_t gap_fuzz, uint32_t *n_insert)
{
    uint32_t v, w, i, nv, rv, rw; asg_arc_t *av, *arc, t;

    v = v0; w = w0;
    av = asg_arc_a(des, v); nv = asg_arc_n(des, v);
	for (i = 0; i < nv; ++i) {
        if (av[i].v == w) {
            av[i].del = 0; break;
        }
    }
    if(i < nv) {
        v = w0^1; w = v0^1;
        av = asg_arc_a(des, v); nv = asg_arc_n(des, v);
        for (i = 0; i < nv; ++i) {
            if (av[i].v == w) {
                av[i].del = 0; break;
            }
        }
        assert(i < nv);
        return;
    }

    ///replace a deleted arc
    // fprintf(stderr, "[M::%s] replace\n", __func__);
    v = v0; w = w0;
    av = asg_arc_a(src, v); nv = asg_arc_n(src, v);
	for (i = 0, arc = NULL; i < nv; ++i) {
        if (av[i].v == w) {
            av[i].del = 0; arc = &(av[i]); break;
        }
    }
    assert(arc);
    av = asg_arc_a(des, v); nv = asg_arc_n(des, v);
    assert(nv);
	for (i = 0; i < nv; ++i) assert(av[i].del);
    for (i = 0; i < nv && av[i].ul < arc->ul; ++i);
    if(i >= nv) i = nv - 1; av[i] = *arc;

    v = w0^1; w = v0^1;
    av = asg_arc_a(src, v); nv = asg_arc_n(src, v);
    for (i = 0, arc = NULL; i < nv; ++i) {
        if (av[i].v == w) {
            av[i].del = 0; arc = &(av[i]); break;
        }
    }
    assert(arc);
    av = asg_arc_a(des, v); nv = asg_arc_n(des, v);
    assert(nv);
	for (i = 0; i < nv; ++i) assert(av[i].del);
    for (i = 0; i < nv && av[i].ul < arc->ul; ++i);
    if(i >= nv) i = nv - 1; av[i] = *arc;


    rv = ((v0&1)?(Uc_beg(ug->u.a[v0>>1])^1):(Uc_end(ug->u.a[v0>>1])^1));
    rw = ((w0&1)?(Uc_end(ug->u.a[w0>>1])):(Uc_beg(ug->u.a[w0>>1])));
    assert(get_edge_from_source(src_e, cov, NULL, max_hang, min_ovlp, rv, rw, &t));
    kv_push(asg_arc_t, ae->a, t);

    assert(get_edge_from_source(src_e, cov, NULL, max_hang, min_ovlp, rw^1, rv^1, &t));
    kv_push(asg_arc_t, ae->a, t);

    (*n_insert) += 2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x38(%rbp), %rax
movl 0x30(%rbp), %eax
movl 0x28(%rbp), %eax
movl 0x20(%rbp), %eax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x13d16b
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpl -0x30(%rbp), %eax
jne 0x13d15e
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x0, %ecx
movl %ecx, 0xc(%rax)
jmp 0x13d16b
jmp 0x13d160
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x13d121
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x13d240
movl -0x18(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl -0x14(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x13d212
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpl -0x30(%rbp), %eax
jne 0x13d205
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x0, %ecx
movl %ecx, 0xc(%rax)
jmp 0x13d212
jmp 0x13d207
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x13d1c8
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x13d21c
jmp 0x13d23b
leaq 0x249aa7(%rip), %rdi    # 0x386cca
leaq 0x249693(%rip), %rsi    # 0x3868bd
movl $0x6793, %edx           # imm = 0x6793
leaq 0x24cc46(%rip), %rcx    # 0x389e7c
callq 0x2130
jmp 0x13d95e
movl -0x14(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%rbp)
movl $0x0, -0x34(%rbp)
movq $0x0, -0x50(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x13d2ef
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpl -0x30(%rbp), %eax
jne 0x13d2e2
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x0, %ecx
movl %ecx, 0xc(%rax)
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
jmp 0x13d2ef
jmp 0x13d2e4
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x13d293
cmpq $0x0, -0x50(%rbp)
je 0x13d2f8
jmp 0x13d317
leaq 0x25a584(%rip), %rdi    # 0x397883
leaq 0x2495b7(%rip), %rsi    # 0x3868bd
movl $0x67a0, %edx           # imm = 0x67A0
leaq 0x24cb6a(%rip), %rcx    # 0x389e7c
callq 0x2130
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%rbp)
cmpl $0x0, -0x38(%rbp)
je 0x13d357
jmp 0x13d376
leaq 0x249970(%rip), %rdi    # 0x386cce
leaq 0x249558(%rip), %rsi    # 0x3868bd
movl $0x67a2, %edx           # imm = 0x67A2
leaq 0x24cb0b(%rip), %rcx    # 0x389e7c
callq 0x2130
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x13d3cc
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x13d3a0
jmp 0x13d3bf
leaq 0x24cb74(%rip), %rdi    # 0x389f1b
leaq 0x24950f(%rip), %rsi    # 0x3868bd
movl $0x67a3, %edx           # imm = 0x67A3
leaq 0x24cac2(%rip), %rcx    # 0x389e7c
callq 0x2130
jmp 0x13d3c1
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x13d37d
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %ecx
xorl %eax, %eax
cmpl -0x38(%rbp), %ecx
movb %al, -0x69(%rbp)
jae 0x13d3fe
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rcx
cmpq (%rcx), %rax
setb %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
testb $0x1, %al
jne 0x13d407
jmp 0x13d414
jmp 0x13d409
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x13d3d3
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jb 0x13d425
movl -0x38(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movl -0x18(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl -0x14(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%rbp)
movl $0x0, -0x34(%rbp)
movq $0x0, -0x50(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x13d502
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpl -0x30(%rbp), %eax
jne 0x13d4f5
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x0, %ecx
movl %ecx, 0xc(%rax)
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
jmp 0x13d502
jmp 0x13d4f7
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x13d4a6
cmpq $0x0, -0x50(%rbp)
je 0x13d50b
jmp 0x13d52a
leaq 0x25a371(%rip), %rdi    # 0x397883
leaq 0x2493a4(%rip), %rsi    # 0x3868bd
movl $0x67ae, %edx           # imm = 0x67AE
leaq 0x24c957(%rip), %rcx    # 0x389e7c
callq 0x2130
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x2c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x2c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%rbp)
cmpl $0x0, -0x38(%rbp)
je 0x13d56a
jmp 0x13d589
leaq 0x24975d(%rip), %rdi    # 0x386cce
leaq 0x249345(%rip), %rsi    # 0x3868bd
movl $0x67b0, %edx           # imm = 0x67B0
leaq 0x24c8f8(%rip), %rcx    # 0x389e7c
callq 0x2130
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x13d5df
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x13d5b3
jmp 0x13d5d2
leaq 0x24c961(%rip), %rdi    # 0x389f1b
leaq 0x2492fc(%rip), %rsi    # 0x3868bd
movl $0x67b1, %edx           # imm = 0x67B1
leaq 0x24c8af(%rip), %rcx    # 0x389e7c
callq 0x2130
jmp 0x13d5d4
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x13d590
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %ecx
xorl %eax, %eax
cmpl -0x38(%rbp), %ecx
movb %al, -0x6a(%rbp)
jae 0x13d611
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rcx
cmpq (%rcx), %rax
setb %al
movb %al, -0x6a(%rbp)
movb -0x6a(%rbp), %al
testb $0x1, %al
jne 0x13d61a
jmp 0x13d627
jmp 0x13d61c
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x13d5e6
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jb 0x13d638
movl -0x38(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
movl -0x34(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movl -0x14(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x13d694
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x14(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq (%rax), %rax
shrq $0x20, %rax
xorl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x13d6dd
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x14(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x14(%rbp), %edx
shrl %edx
movl %edx, %edx
imulq $0x28, %rdx, %rdx
addq %rdx, %rcx
movl 0x10(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
xorl $0x1, %eax
xorl $0x1, %eax
movl %eax, -0x70(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x18(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x13d736
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x18(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x18(%rbp), %edx
shrl %edx
movl %edx, %edx
imulq $0x28, %rdx, %rdx
addq %rdx, %rcx
movl 0x10(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
xorl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x13d75a
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x18(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movl %eax, -0x40(%rbp)
movq 0x10(%rbp), %rdi
movq 0x18(%rbp), %rsi
movl 0x20(%rbp), %ecx
movl 0x28(%rbp), %r8d
movl -0x3c(%rbp), %r9d
movl -0x40(%rbp), %r10d
xorl %eax, %eax
movl %eax, %edx
leaq -0x68(%rbp), %rax
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xe9560
cmpl $0x0, %eax
je 0x13d794
jmp 0x13d7b3
leaq 0x24c78a(%rip), %rdi    # 0x389f25
leaq 0x24911b(%rip), %rsi    # 0x3868bd
movl $0x67b8, %edx           # imm = 0x67B8
leaq 0x24c6ce(%rip), %rcx    # 0x389e7c
callq 0x2130
jmp 0x13d7b5
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x13d81a
movq -0x28(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x13d7e2
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x80(%rbp)
jmp 0x13d7ed
movl $0x2, %eax
movq %rax, -0x80(%rbp)
jmp 0x13d7ed
movq -0x80(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x28(%rbp), %rax
imulq $0x18, 0x8(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rdi
movq 0x18(%rbp), %rsi
movl 0x20(%rbp), %ecx
movl 0x28(%rbp), %r8d
movl -0x40(%rbp), %r9d
xorl $0x1, %r9d
movl -0x3c(%rbp), %r10d
xorl $0x1, %r10d
xorl %eax, %eax
movl %eax, %edx
leaq -0x68(%rbp), %rax
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xe9560
cmpl $0x0, %eax
je 0x13d88d
jmp 0x13d8ac
leaq 0x24c6d8(%rip), %rdi    # 0x389f6c
leaq 0x249022(%rip), %rsi    # 0x3868bd
movl $0x67bb, %edx           # imm = 0x67BB
leaq 0x24c5d5(%rip), %rcx    # 0x389e7c
callq 0x2130
jmp 0x13d8ae
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x13d91c
movq -0x28(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x13d8de
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x88(%rbp)
jmp 0x13d8ec
movl $0x2, %eax
movq %rax, -0x88(%rbp)
jmp 0x13d8ec
movq -0x88(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x28(%rbp), %rax
imulq $0x18, 0x8(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x28(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x58(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq 0x38(%rbp), %rax
movl (%rax), %ecx
addl $0x2, %ecx
movl %ecx, (%rax)
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)