// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]oatk/path_finder.c
// Function: pathfinder_minicircle
int pathfinder_minicircle(char *asg_file, char *mini_annot, scg_meta_t *scg_meta, int min_len, int min_ext_g, 
        int max_copy, int max_path, double max_eval, double min_score, double min_cf, double seq_cf,
        int no_trn, int no_rrn, int do_graph_clean, int bubble_size, int tip_size, double weak_cross,
        int out_opt, char *out_pref, int n_threads, int VERBOSE)
{
    asg_t *asg;
    hmm_annot_db_t *annot_db;
    og_component_v *og_components;
    double *seg_annot_score;
    int ret = 0;

    asg = 0;
    annot_db = 0;
    og_components = 0;
    seg_annot_score = 0;

    asg = asg_read(asg_file);
    if (asg == 0) {
        fprintf(stderr, "[E::%s] failed to read the graph: %s\n", __func__, asg_file);
        ret = 1;
        goto do_clean;
    }

    annot_db = hmm_annot_read(mini_annot, annot_db, OG_MINI);
    if (annot_db == 0) {
        fprintf(stderr, "[E::%s] failed to read the annotation file\n", __func__);
        ret = 1;
        goto do_clean;
    }

    if (VERBOSE > 2) hmm_annot_db_print(annot_db, stderr);

    seg_annot_score = get_sequence_annot_score(annot_db, asg, no_trn, no_rrn, max_eval, 0, VERBOSE);
    og_components = annot_subgraph_og_type(annot_db, asg, no_trn, no_rrn, max_eval, 0, min_len, min_score, 1, VERBOSE);
    if (!og_components) {
        fprintf(stderr, "[E::%s] no organelle component found\n", __func__);
        ret = 1;
        goto do_clean;
    }
    if (VERBOSE > 1) print_og_classification_summary(asg, annot_db, og_components, stderr);

    parse_organelle_minicircle(asg, annot_db, og_components, seg_annot_score, scg_meta, n_threads, out_pref, out_opt, max_eval, seq_cf, VERBOSE);

do_clean:
    asg_destroy(asg);
    hmm_annot_db_destroy(annot_db);
    og_component_v_destroy(og_components);
    free(seg_annot_score);

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl 0x58(%rbp), %eax
movl 0x50(%rbp), %eax
movq 0x48(%rbp), %rax
movl 0x40(%rbp), %eax
movl 0x38(%rbp), %eax
movl 0x30(%rbp), %eax
movl 0x28(%rbp), %eax
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl %r9d, -0x24(%rbp)
movsd %xmm0, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movsd %xmm2, -0x40(%rbp)
movsd %xmm3, -0x48(%rbp)
movsd %xmm4, -0x50(%rbp)
movl $0x0, -0x74(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x8(%rbp), %rdi
callq 0x32930
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
jne 0x74e4
movq 0x4fb3c(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
movq -0x8(%rbp), %rcx
leaq 0x44fb6(%rip), %rsi     # 0x4c480
leaq 0x44fd5(%rip), %rdx     # 0x4c4a6
movb $0x0, %al
callq 0x3320
movl $0x1, -0x74(%rbp)
jmp 0x7633
movq -0x10(%rbp), %rdi
movq -0x60(%rbp), %rsi
movl $0x3, %edx
callq 0xc1a0
movq %rax, -0x60(%rbp)
cmpq $0x0, -0x60(%rbp)
jne 0x752c
movq 0x4faf0(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x44faa(%rip), %rsi     # 0x4c4bc
leaq 0x44f8d(%rip), %rdx     # 0x4c4a6
movb $0x0, %al
callq 0x3320
movl $0x1, -0x74(%rbp)
jmp 0x7633
cmpl $0x2, 0x58(%rbp)
jle 0x7545
movq -0x60(%rbp), %rdi
movq 0x4fabb(%rip), %rax     # 0x56ff8
movq (%rax), %rsi
callq 0xcc30
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
movl 0x18(%rbp), %edx
movl 0x20(%rbp), %ecx
movsd -0x30(%rbp), %xmm0
movl 0x58(%rbp), %r9d
xorl %r8d, %r8d
callq 0x33fc0
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
movl 0x18(%rbp), %edx
movl 0x20(%rbp), %ecx
movsd -0x30(%rbp), %xmm0
movl -0x1c(%rbp), %r9d
cvttsd2si -0x38(%rbp), %r10d
movl 0x58(%rbp), %eax
xorl %r8d, %r8d
movl %r10d, (%rsp)
movl $0x1, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x35240
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
jne 0x75d3
movq 0x4fa46(%rip), %rax     # 0x56ff8
movq (%rax), %rdi
leaq 0x44f2c(%rip), %rsi     # 0x4c4e8
leaq 0x44ee3(%rip), %rdx     # 0x4c4a6
movb $0x0, %al
callq 0x3320
movl $0x1, -0x74(%rbp)
jmp 0x7633
cmpl $0x1, 0x58(%rbp)
jle 0x75f4
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq 0x4fa0c(%rip), %rax     # 0x56ff8
movq (%rax), %rcx
callq 0x399a0
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x70(%rbp), %rcx
movq -0x18(%rbp), %r8
movl 0x50(%rbp), %r9d
movq 0x48(%rbp), %r11
movl 0x40(%rbp), %r10d
movsd -0x30(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
movl 0x58(%rbp), %eax
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x7670
movq -0x58(%rbp), %rdi
callq 0x317a0
movq -0x60(%rbp), %rdi
callq 0xbfe0
movq -0x68(%rbp), %rdi
callq 0x33f40
movq -0x70(%rbp), %rdi
callq 0x3060
movl -0x74(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)