// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/test/test_view.c
// Function: main
int main(int argc, char *argv[])
{
    htsFile *in, *out;
    char moder[8];
    char modew[800];
    int c, exit_code = EXIT_SUCCESS;
    hts_opt *in_opts = NULL, *out_opts = NULL;
    char *out_fn = "-";

    struct opts opts;
    opts.fn_ref = NULL;
    opts.flag = 0;
    opts.clevel = -1;
    opts.ignore_sam_err = 0;
    opts.nreads = 0;
    opts.extra_hdr_nuls = 0;
    opts.benchmark = 0;
    opts.nthreads = 0; // shared pool
    opts.multi_reg = 0;
    opts.index = NULL;
    opts.min_shift = 0;

    while ((c = getopt(argc, argv, "DSIt:i:bzCfFul:o:N:BZ:@:Mx:m:p:v")) >= 0) {
        switch (c) {
        case 'D': opts.flag |= READ_CRAM; break;
        case 'S': opts.flag |= READ_COMPRESSED; break;
        case 'I': opts.ignore_sam_err = 1; break;
        case 't': opts.fn_ref = optarg; break;
        case 'i': if (hts_opt_add(&in_opts, optarg)) return 1; break;
        case 'b': opts.flag |= WRITE_BINARY_COMP; break;
        case 'z': opts.flag |= WRITE_COMPRESSED; break;
        case 'C': opts.flag |= WRITE_CRAM; break;
        case 'f': opts.flag |= WRITE_FASTQ; break;
        case 'F': opts.flag |= WRITE_FASTA; break;
        case 'u': opts.flag |= WRITE_UNCOMPRESSED; break; // eg u-BAM not SAM
        case 'l': opts.clevel = atoi(optarg); break;
        case 'o': if (hts_opt_add(&out_opts, optarg)) return 1; break;
        case 'N': opts.nreads = atoi(optarg); break;
        case 'B': opts.benchmark = 1; break;
        case 'Z': opts.extra_hdr_nuls = atoi(optarg); break;
        case 'M': opts.multi_reg = 1; break;
        case '@': opts.nthreads = atoi(optarg); break;
        case 'x': opts.index = optarg; break;
        case 'm': opts.min_shift = atoi(optarg); break;
        case 'p': out_fn = optarg; break;
        case 'v': hts_verbose++; break;
        }
    }
    if (argc == optind) {
        fprintf(stderr, "Usage: test_view [-DSI] [-t fn_ref] [-i option=value] [-bC] [-l level] [-o option=value] [-N num_reads] [-B] [-Z hdr_nuls] [-@ num_threads] [-x index_fn] [-m min_shift] [-p out] [-v] <in.bam>|<in.sam>|<in.cram> [region]\n");
        fprintf(stderr, "\n");
        fprintf(stderr, "-D: read CRAM format (mode 'c')\n");
        fprintf(stderr, "-S: read compressed BCF, BAM, FAI (mode 'b')\n");
        fprintf(stderr, "-I: ignore SAM parsing errors\n");
        fprintf(stderr, "-t: fn_ref: load CRAM references from the specified fasta file instead of @SQ headers when writing a CRAM file\n");
        fprintf(stderr, "-i: option=value: set an option for CRAM input\n");
        fprintf(stderr, "\n");
        fprintf(stderr, "-b: write binary compressed BCF, BAM, FAI (mode 'b')\n");
        fprintf(stderr, "-z: write text compressed VCF.gz, SAM.gz or FASTQ.gz (mode 'z')\n");
        fprintf(stderr, "-C: write CRAM format (mode 'c')\n");
        fprintf(stderr, "-f: write FASTQ format (mode 'f')\n");
        fprintf(stderr, "-l 0-9: set zlib compression level\n");
        fprintf(stderr, "-o option=value: set an option for CRAM output\n");
        fprintf(stderr, "-N: num_reads: limit the output to the first num_reads reads\n");
        fprintf(stderr, "\n");
        fprintf(stderr, "-B: enable benchmarking\n");
        fprintf(stderr, "-M: use hts_itr_multi iterator\n");
        fprintf(stderr, "-Z hdr_nuls: append specified number of null bytes to the SAM header\n");
        fprintf(stderr, "-@ num_threads: use thread pool with specified number of threads\n\n");
        fprintf(stderr, "-x fn: write index to fn\n");
        fprintf(stderr, "-m min_shift: specifies BAI/CSI bin size; 0 is BAI(BAM) or TBI(VCF), 14 is CSI default\n");
        fprintf(stderr, "-p out_fn: output to out_fn instead of stdout\n");
        fprintf(stderr, "-v: increase verbosity\n");
        fprintf(stderr, "The region list entries should be specified as 'reg:beg-end', with intervals of a region being disjunct and sorted by the starting coordinate.\n");
        return 1;
    }
    strcpy(moder, "r");
    if (opts.flag & READ_CRAM) strcat(moder, "c");
    else if ((opts.flag & READ_COMPRESSED) == 0) strcat(moder, "b");

    in = hts_open(argv[optind], moder);
    if (in == NULL) {
        fprintf(stderr, "Error opening \"%s\"\n", argv[optind]);
        return EXIT_FAILURE;
    }

    strcpy(modew, "w");
    if (opts.clevel >= 0 && opts.clevel <= 9)
        snprintf(modew + 1, sizeof(modew) - 1, "%d", opts.clevel);
    if (opts.flag & WRITE_CRAM) strcat(modew, "c");
    else if (opts.flag & WRITE_BINARY_COMP) strcat(modew, "b");
    else if (opts.flag & WRITE_COMPRESSED) strcat(modew, "z");
    else if (opts.flag & WRITE_UNCOMPRESSED) strcat(modew, "bu");
    if (opts.flag & WRITE_FASTQ) strcat(modew, "f");
    else if (opts.flag & WRITE_FASTA) strcat(modew, "F");
    out = hts_open(out_fn, modew);
    if (out == NULL) {
        fprintf(stderr, "Error opening standard output\n");
        return EXIT_FAILURE;
    }

    // Process any options; currently cram only.
    if (hts_opt_apply(in, in_opts))
        return EXIT_FAILURE;
    hts_opt_free(in_opts);

    if (hts_opt_apply(out, out_opts))
        return EXIT_FAILURE;
    hts_opt_free(out_opts);

    // Create and share the thread pool
    htsThreadPool p = {NULL, 0};
    if (opts.nthreads > 0) {
        p.pool = hts_tpool_init(opts.nthreads);
        if (!p.pool) {
            fprintf(stderr, "Error creating thread pool\n");
            exit_code = 1;
        } else {
            hts_set_opt(in,  HTS_OPT_THREAD_POOL, &p);
            hts_set_opt(out, HTS_OPT_THREAD_POOL, &p);
        }
    }

    int ret;
    switch (hts_get_format(in)->category) {
    case sequence_data:
        ret = sam_loop(argc, argv, optind, &opts, in, out);
        break;

    case variant_data:
        ret = vcf_loop(argc, argv, optind, &opts, in, out);
        break;

    default:
        fprintf(stderr, "Unsupported or unknown category of data in input file\n");
        return EXIT_FAILURE;
    }

    if (ret != 0)
        exit_code = EXIT_FAILURE;

    ret = hts_close(out);
    if (ret < 0) {
        fprintf(stderr, "Error closing output.\n");
        exit_code = EXIT_FAILURE;
    }
    ret = hts_close(in);
    if (ret < 0) {
        fprintf(stderr, "Error closing input.\n");
        exit_code = EXIT_FAILURE;
    }

    if (p.pool)
        hts_tpool_destroy(p.pool);

    if (fclose(stdout) != 0 && errno != EBADF) {
        fprintf(stderr, "Error closing standard output.\n");
        exit_code = EXIT_FAILURE;
    }

    return exit_code;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3d0, %rsp            # imm = 0x3D0
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x358(%rbp)
movq $0x0, -0x360(%rbp)
movq $0x0, -0x368(%rbp)
leaq 0x100cb8(%rip), %rax    # 0x107318
movq %rax, -0x370(%rbp)
movq $0x0, -0x3a8(%rbp)
movl $0x0, -0x3a0(%rbp)
movl $0xffffffff, -0x39c(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x398(%rbp)
movl $0x0, -0x394(%rbp)
movl $0x0, -0x390(%rbp)
movl $0x0, -0x38c(%rbp)
movl $0x0, -0x388(%rbp)
movl $0x0, -0x384(%rbp)
movq $0x0, -0x380(%rbp)
movl $0x0, -0x378(%rbp)
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0xfdb7c(%rip), %rdx     # 0x104261
callq 0x40c0
movl %eax, -0x354(%rbp)
cmpl $0x0, %eax
jl 0x691e
movl -0x354(%rbp), %eax
addl $-0x40, %eax
movl %eax, %ecx
movq %rcx, -0x3c8(%rbp)
subl $0x3a, %eax
ja 0x6919
movq -0x3c8(%rbp), %rax
leaq 0xfd8e2(%rip), %rcx     # 0x104004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x3a0(%rbp), %eax
orl $0x4, %eax
movl %eax, -0x3a0(%rbp)
jmp 0x6919
movl -0x3a0(%rbp), %eax
orl $0x1, %eax
movl %eax, -0x3a0(%rbp)
jmp 0x6919
movl $0x1, -0x398(%rbp)
jmp 0x6919
movq 0x12084f(%rip), %rax    # 0x126fb8
movq (%rax), %rax
movq %rax, -0x3a8(%rbp)
jmp 0x6919
movq 0x120839(%rip), %rax    # 0x126fb8
movq (%rax), %rsi
leaq -0x360(%rbp), %rdi
callq 0xae10
cmpl $0x0, %eax
je 0x679f
movl $0x1, -0x4(%rbp)
jmp 0x7010
jmp 0x6919
movl -0x3a0(%rbp), %eax
orl $0x2, %eax
movl %eax, -0x3a0(%rbp)
jmp 0x6919
movl -0x3a0(%rbp), %eax
orl $0x20, %eax
movl %eax, -0x3a0(%rbp)
jmp 0x6919
movl -0x3a0(%rbp), %eax
orl $0x8, %eax
movl %eax, -0x3a0(%rbp)
jmp 0x6919
movl -0x3a0(%rbp), %eax
orl $0x40, %eax
movl %eax, -0x3a0(%rbp)
jmp 0x6919
movl -0x3a0(%rbp), %eax
orl $0x80, %eax
movl %eax, -0x3a0(%rbp)
jmp 0x6919
movl -0x3a0(%rbp), %eax
orl $0x10, %eax
movl %eax, -0x3a0(%rbp)
jmp 0x6919
movq 0x120793(%rip), %rax    # 0x126fb8
movq (%rax), %rdi
callq 0x47f0
movl %eax, -0x39c(%rbp)
jmp 0x6919
movq 0x120779(%rip), %rax    # 0x126fb8
movq (%rax), %rsi
leaq -0x368(%rbp), %rdi
callq 0xae10
cmpl $0x0, %eax
je 0x685f
movl $0x1, -0x4(%rbp)
jmp 0x7010
jmp 0x6919
movq 0x12074d(%rip), %rax    # 0x126fb8
movq (%rax), %rdi
callq 0x47f0
movl %eax, -0x394(%rbp)
jmp 0x6919
movl $0x1, -0x38c(%rbp)
jmp 0x6919
movq 0x120724(%rip), %rax    # 0x126fb8
movq (%rax), %rdi
callq 0x47f0
movl %eax, -0x390(%rbp)
jmp 0x6919
movl $0x1, -0x384(%rbp)
jmp 0x6919
movq 0x120701(%rip), %rax    # 0x126fb8
movq (%rax), %rdi
callq 0x47f0
movl %eax, -0x388(%rbp)
jmp 0x6919
movq 0x1206ea(%rip), %rax    # 0x126fb8
movq (%rax), %rax
movq %rax, -0x380(%rbp)
jmp 0x6919
movq 0x1206d7(%rip), %rax    # 0x126fb8
movq (%rax), %rdi
callq 0x47f0
movl %eax, -0x378(%rbp)
jmp 0x6919
movq 0x1206c0(%rip), %rax    # 0x126fb8
movq (%rax), %rax
movq %rax, -0x370(%rbp)
jmp 0x6919
leaq 0x120c05(%rip), %rax    # 0x127510
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x120bf9(%rip), %rax    # 0x127510
movl %ecx, (%rax)
jmp 0x66d7
movl -0x8(%rbp), %eax
movq 0x1206b0(%rip), %rcx    # 0x126fd8
cmpl (%rcx), %eax
jne 0x6b94
movq 0x120699(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfd941(%rip), %rsi     # 0x104282
movb $0x0, %al
callq 0x4700
movq 0x120681(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdd22(%rip), %rsi     # 0x10467b
movb $0x0, %al
callq 0x4700
movq 0x120669(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfd9ee(%rip), %rsi     # 0x10435f
movb $0x0, %al
callq 0x4700
movq 0x120651(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfd9f7(%rip), %rsi     # 0x104380
movb $0x0, %al
callq 0x4700
movq 0x120639(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfda0d(%rip), %rsi     # 0x1043ae
movb $0x0, %al
callq 0x4700
movq 0x120621(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfda14(%rip), %rsi     # 0x1043cd
movb $0x0, %al
callq 0x4700
movq 0x120609(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfda6c(%rip), %rsi     # 0x10443d
movb $0x0, %al
callq 0x4700
movq 0x1205f1(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdc92(%rip), %rsi     # 0x10467b
movb $0x0, %al
callq 0x4700
movq 0x1205d9(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfda6c(%rip), %rsi     # 0x10446d
movb $0x0, %al
callq 0x4700
movq 0x1205c1(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfda8a(%rip), %rsi     # 0x1044a3
movb $0x0, %al
callq 0x4700
movq 0x1205a9(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdab3(%rip), %rsi     # 0x1044e4
movb $0x0, %al
callq 0x4700
movq 0x120591(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdabd(%rip), %rsi     # 0x104506
movb $0x0, %al
callq 0x4700
movq 0x120579(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdac8(%rip), %rsi     # 0x104529
movb $0x0, %al
callq 0x4700
movq 0x120561(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdad4(%rip), %rsi     # 0x10454d
movb $0x0, %al
callq 0x4700
movq 0x120549(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdaec(%rip), %rsi     # 0x10457d
movb $0x0, %al
callq 0x4700
movq 0x120531(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdbd2(%rip), %rsi     # 0x10467b
movb $0x0, %al
callq 0x4700
movq 0x120519(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdafa(%rip), %rsi     # 0x1045bb
movb $0x0, %al
callq 0x4700
movq 0x120501(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdafb(%rip), %rsi     # 0x1045d4
movb $0x0, %al
callq 0x4700
movq 0x1204e9(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdb03(%rip), %rsi     # 0x1045f4
movb $0x0, %al
callq 0x4700
movq 0x1204d1(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdb31(%rip), %rsi     # 0x10463a
movb $0x0, %al
callq 0x4700
movq 0x1204b9(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdb5c(%rip), %rsi     # 0x10467d
movb $0x0, %al
callq 0x4700
movq 0x1204a1(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdb5e(%rip), %rsi     # 0x104697
movb $0x0, %al
callq 0x4700
movq 0x120489(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdb9e(%rip), %rsi     # 0x1046ef
movb $0x0, %al
callq 0x4700
movq 0x120471(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdbb5(%rip), %rsi     # 0x10471e
movb $0x0, %al
callq 0x4700
movq 0x120459(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfdbb5(%rip), %rsi     # 0x104736
movb $0x0, %al
callq 0x4700
movl $0x1, -0x4(%rbp)
jmp 0x7010
leaq -0x28(%rbp), %rdi
leaq 0x100e71(%rip), %rsi    # 0x107a10
callq 0x4460
movl -0x3a0(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x6bc4
leaq -0x28(%rbp), %rdi
leaq 0x104cfb(%rip), %rsi    # 0x10b8b8
callq 0x48f0
jmp 0x6be4
movl -0x3a0(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x6be2
leaq -0x28(%rbp), %rdi
leaq 0x105cb9(%rip), %rsi    # 0x10c896
callq 0x48f0
jmp 0x6be4
movq -0x10(%rbp), %rax
movq 0x1203e9(%rip), %rcx    # 0x126fd8
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
leaq -0x28(%rbp), %rsi
callq 0xade0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x6c40
movq 0x1203bf(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x1203b9(%rip), %rcx    # 0x126fd8
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0xfdb99(%rip), %rsi     # 0x1047c6
movb $0x0, %al
callq 0x4700
movl $0x1, -0x4(%rbp)
jmp 0x7010
leaq -0x350(%rbp), %rdi
leaq 0xfffde(%rip), %rsi     # 0x106c2c
callq 0x4460
cmpl $0x0, -0x39c(%rbp)
jl 0x6c89
cmpl $0x9, -0x39c(%rbp)
jg 0x6c89
leaq -0x350(%rbp), %rdi
addq $0x1, %rdi
movl -0x39c(%rbp), %ecx
movl $0x31f, %esi            # imm = 0x31F
leaq 0x109aa1(%rip), %rdx    # 0x110723
movb $0x0, %al
callq 0x4810
movl -0x3a0(%rbp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x6cac
leaq -0x350(%rbp), %rdi
leaq 0x104c13(%rip), %rsi    # 0x10b8b8
callq 0x48f0
jmp 0x6d19
movl -0x3a0(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x6ccf
leaq -0x350(%rbp), %rdi
leaq 0x105bce(%rip), %rsi    # 0x10c896
callq 0x48f0
jmp 0x6d17
movl -0x3a0(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x6cf2
leaq -0x350(%rbp), %rdi
leaq 0x1005a7(%rip), %rsi    # 0x107292
callq 0x48f0
jmp 0x6d15
movl -0x3a0(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x6d13
leaq -0x350(%rbp), %rdi
leaq 0xfdacc(%rip), %rsi     # 0x1047da
callq 0x48f0
jmp 0x6d15
jmp 0x6d17
jmp 0x6d19
movl -0x3a0(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x6d3c
leaq -0x350(%rbp), %rdi
leaq 0xfe977(%rip), %rsi     # 0x1056ac
callq 0x48f0
jmp 0x6d61
movl -0x3a0(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x6d5f
leaq -0x350(%rbp), %rdi
leaq 0x109b9a(%rip), %rsi    # 0x1108f4
callq 0x48f0
jmp 0x6d61
movq -0x370(%rbp), %rdi
leaq -0x350(%rbp), %rsi
callq 0xade0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x6da3
movq 0x12024a(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfda4d(%rip), %rsi     # 0x1047dd
movb $0x0, %al
callq 0x4700
movl $0x1, -0x4(%rbp)
jmp 0x7010
movq -0x18(%rbp), %rdi
movq -0x360(%rbp), %rsi
callq 0xabb0
cmpl $0x0, %eax
je 0x6dc4
movl $0x1, -0x4(%rbp)
jmp 0x7010
movq -0x360(%rbp), %rdi
callq 0xc540
movq -0x20(%rbp), %rdi
movq -0x368(%rbp), %rsi
callq 0xabb0
cmpl $0x0, %eax
je 0x6df1
movl $0x1, -0x4(%rbp)
jmp 0x7010
movq -0x368(%rbp), %rdi
callq 0xc540
leaq -0x3b8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x4250
cmpl $0x0, -0x388(%rbp)
jle 0x6e89
movl -0x388(%rbp), %edi
callq 0x3a6a0
movq %rax, -0x3b8(%rbp)
cmpq $0x0, -0x3b8(%rbp)
jne 0x6e59
movq 0x120194(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfd9b6(%rip), %rsi     # 0x1047fc
movb $0x0, %al
callq 0x4700
movl $0x1, -0x358(%rbp)
jmp 0x6e87
movq -0x18(%rbp), %rdi
movl $0x66, %esi
leaq -0x3b8(%rbp), %rdx
movb $0x0, %al
callq 0xbc10
movq -0x20(%rbp), %rdi
movl $0x66, %esi
leaq -0x3b8(%rbp), %rdx
movb $0x0, %al
callq 0xbc10
jmp 0x6e89
movq -0x18(%rbp), %rdi
callq 0xd410
movl (%rax), %eax
movl %eax, -0x3cc(%rbp)
subl $0x1, %eax
je 0x6eae
jmp 0x6ea1
movl -0x3cc(%rbp), %eax
subl $0x2, %eax
je 0x6eda
jmp 0x6f06
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
movq 0x12011c(%rip), %rax    # 0x126fd8
movl (%rax), %edx
movq -0x18(%rbp), %r8
movq -0x20(%rbp), %r9
leaq -0x3a8(%rbp), %rcx
callq 0x5ae0
movl %eax, -0x3bc(%rbp)
jmp 0x6f2a
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
movq 0x1200f0(%rip), %rax    # 0x126fd8
movl (%rax), %edx
movq -0x18(%rbp), %r8
movq -0x20(%rbp), %r9
leaq -0x3a8(%rbp), %rcx
callq 0x61d0
movl %eax, -0x3bc(%rbp)
jmp 0x6f2a
movq 0x1200c3(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfd901(%rip), %rsi     # 0x104818
movb $0x0, %al
callq 0x4700
movl $0x1, -0x4(%rbp)
jmp 0x7010
cmpl $0x0, -0x3bc(%rbp)
je 0x6f3d
movl $0x1, -0x358(%rbp)
movq -0x20(%rbp), %rdi
callq 0xcf00
movl %eax, -0x3bc(%rbp)
cmpl $0x0, -0x3bc(%rbp)
jge 0x6f77
movq 0x120074(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfd8e9(%rip), %rsi     # 0x10484f
movb $0x0, %al
callq 0x4700
movl $0x1, -0x358(%rbp)
movq -0x18(%rbp), %rdi
callq 0xcf00
movl %eax, -0x3bc(%rbp)
cmpl $0x0, -0x3bc(%rbp)
jge 0x6fb1
movq 0x12003a(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfd8c6(%rip), %rsi     # 0x104866
movb $0x0, %al
callq 0x4700
movl $0x1, -0x358(%rbp)
cmpq $0x0, -0x3b8(%rbp)
je 0x6fc7
movq -0x3b8(%rbp), %rdi
callq 0x3b570
movq 0x11ffda(%rip), %rax    # 0x126fa8
movq (%rax), %rdi
callq 0x44b0
cmpl $0x0, %eax
je 0x7007
callq 0x4050
cmpl $0x9, (%rax)
je 0x7007
movq 0x11ffe4(%rip), %rax    # 0x126fd0
movq (%rax), %rdi
leaq 0xfd886(%rip), %rsi     # 0x10487c
movb $0x0, %al
callq 0x4700
movl $0x1, -0x358(%rbp)
movl -0x358(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x3d0, %rsp            # imm = 0x3D0
popq %rbp
retq
nopl (%rax)