// File: /workspace/github_c_makefile_star2_O2/AK6DN[P]dec-utilities-for-pdp/d8tape/main.c
// Function: optproc
static void
optproc (int argc, char **argv)
{
    int     opt;
    int     got_any;
    int     fd;
    int     i;
    struct  stat statbuf;
    int     sts;

    if (!argc) {
        usageError ();
    }

    // clear out option values to defaults
    optb = optr = optT = 0;

    // handle command line options
    got_any = 0;
    while ((opt = getopt (argc, argv, "bdrTv")) != -1) {
        switch (opt) {
        case    'b':
            optb++;
            break;
        case    'd':
            optd++;
            break;
        case    'r':
            optr++;
            break;
        case    'T':
            optT++;
            break;
        case    'v':
            optv++;
            if (optv > 1) {
                fprintf (stderr, "Verbosity is %d\n", optv);
            }
            break;
        default:
            usageError ();
            break;
        }
    }

    // handle command line arguments
    for (; optind < argc; optind++) {
        got_any++;
        tapename = argv [optind];               // snap tapename to global

        // open the tape
        fd = open (tapename, O_RDONLY);
        if (fd == -1) {
            fprintf (stderr, "%s:  couldn't open %s for O_RDONLY, errno %d\n", progname, tapename, errno);
            perror (NULL);
            exit (EXIT_FAILURE);
        }
        fstat (fd, &statbuf);                   // get the size, so we can read it into memory

        tape = calloc (1, statbuf.st_size);
        if (tape == NULL) {
            fprintf (stderr, "%s:  can't allocate %ld bytes during processing of %s, errno %d (%s)\n", progname, (unsigned long)statbuf.st_size, tapename, errno, strerror (errno));
            exit (EXIT_FAILURE);
        }

        // initialize data areas
        memset (core, 0xff, sizeof (core));     // set to -1 -- since we are only using 12 bits of each 16 bit word, -1 isn't a valid PDP-8 core value
        memset (tags, 0, sizeof (tags));        // reset tags
        nsegments = 0;
        segments = NULL;

        read (fd, tape, statbuf.st_size);
        close (fd);

        // dump the tape (this also reads the tape into "core" and disassembles)
        sts = dumptape (tape, statbuf.st_size);

        free (tape);

        if (!sts) {
            continue;                           // skip tape
        }

        // convert to RIM/BIN if required (-b and/or -r)
        if (optb || optr) {
            // see if there is any data there at all..
            if (blank (core, CORE_SIZE)) {
                fprintf (stderr, "%s:  tape image from %s is empty, not creating a BIN version\n", progname, tapename);
                return;
            }
            if (optb) {
                writebin ();
            }
            if (optr) {
                writerim ();
            }
        }
    }

    // if no arguments given, dump usage message
    if (optT) {
        memset (core, 0xff, sizeof (core));     // set to -1 (assumption; all 0xff's in an int is -1; pretty safe)
        for (i = 0; i < 07600; i++) {
            core [i] = ((i & 07700) >> 6) + ((i & 00077) << 6);
        }
        tapename = "test";
        if (optb) {
            writebin ();
        }
        if (optr) {
            writerim ();
        }
    } else {
        if (!got_any) {
            usageError ();
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
testl %edi, %edi
je 0x3d2b
movq %rsi, %rbx
movl %edi, %ebp
andl $0x0, 0x9c0e(%rip)      # 0xcf2c
andl $0x0, 0x9c03(%rip)      # 0xcf28
andl $0x0, 0x9bf4(%rip)      # 0xcf20
leaq 0x2d1b(%rip), %r14      # 0x604e
leaq 0x2d1a(%rip), %r15      # 0x6054
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3190
cmpl $0x54, %eax
je 0x3399
cmpl $0x62, %eax
je 0x33a1
cmpl $0x64, %eax
je 0x3389
cmpl $0x72, %eax
je 0x3391
cmpl $0x76, %eax
jne 0x33a9
movl 0x9bca(%rip), %eax      # 0xcf30
leal 0x1(%rax), %edx
movl %edx, 0x9bc1(%rip)      # 0xcf30
testl %eax, %eax
jle 0x333a
movq 0x8c7e(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x333a
incl 0x9b95(%rip)            # 0xcf24
jmp 0x333a
incl 0x9b91(%rip)            # 0xcf28
jmp 0x333a
incl 0x9b8d(%rip)            # 0xcf2c
jmp 0x333a
incl 0x9b79(%rip)            # 0xcf20
jmp 0x333a
cmpl $-0x1, %eax
jne 0x3d2b
movq 0x8c1f(%rip), %rax      # 0xbfd8
movl (%rax), %eax
leaq 0x9b7e(%rip), %r14      # 0xcf40
movl $0x0, 0x34(%rsp)
movq %rbx, 0x20(%rsp)
movl %ebp, 0x14(%rsp)
cmpl %ebp, %eax
jge 0x3c55
cltq
movq (%rbx,%rax,8), %rdi
movq %rdi, 0xdb68(%rip)      # 0x10f50
xorl %esi, %esi
xorl %eax, %eax
callq 0x3160
cmpl $-0x1, %eax
je 0x3d30
movl %eax, %r12d
movl %eax, %edi
leaq 0x38(%rsp), %rsi
callq 0x31e0
movq 0x68(%rsp), %r15
pushq $0x1
popq %rdi
movq %r15, %rsi
callq 0x3110
movq %rax, 0x9b18(%rip)      # 0xcf38
testq %rax, %rax
movl $0x0, %ebp
je 0x3d70
movq %rax, %r13
incl 0x34(%rsp)
movl $0x2000, %edx           # imm = 0x2000
movq %r14, %rdi
movl $0xff, %esi
callq 0x30d0
movl $0x2000, %edx           # imm = 0x2000
leaq 0xbaed(%rip), %rdi      # 0xef40
xorl %esi, %esi
callq 0x30d0
andl $0x0, 0xdae7(%rip)      # 0x10f48
andq $0x0, 0xdad7(%rip)      # 0x10f40
movl %r12d, %edi
movq %r13, %rsi
movq %r15, %rdx
callq 0x3100
movl %r12d, %edi
callq 0x30e0
movq 0x9ab2(%rip), %r14      # 0xcf38
testl %r15d, %r15d
movl $0x0, %r12d
cmovgl %r15d, %r12d
xorl %eax, %eax
cmpq %rax, %r12
je 0x34a8
cmpb (%r14,%rax), %bpl
jo 0x34a5
incq %rax
jmp 0x3495
movl %eax, %r12d
cmpl %r15d, %r12d
je 0x3aa5
movl %r12d, %eax
movslq %r15d, %rcx
cmovlel %r15d, %r12d
cmpq %rcx, %rax
jge 0x34cf
cmpb $0x0, (%r14,%rax)
jns 0x34cc
incq %rax
jmp 0x34bb
movl %eax, %r12d
movl %r15d, %r13d
subl %r12d, %r13d
je 0x3ac6
cmpl $0x3, %r13d
jle 0x3ae7
cmpl $0x0, 0x9a44(%rip)      # 0xcf30
jne 0x3b2a
movl %r12d, %ebx
leaq (%r14,%rbx), %r11
movl %r13d, %r12d
xorl %r15d, %r15d
movq %r11, 0x8(%rsp)
cmpq %r15, %r12
je 0x384f
cmpb (%r11,%r15), %bpl
jo 0x3518
incq %r15
jmp 0x3504
cmpl %r15d, %r12d
je 0x384f
pushq $0x1
popq %rbp
cmpl $0x3, 0x9a05(%rip)      # 0xcf30
jl 0x3557
movq 0x8bdc(%rip), %rsi      # 0xc110
movq 0xda15(%rip), %rdx      # 0x10f50
subl %r15d, %r13d
leaq 0x3005(%rip), %rdi      # 0x654a
movl %r13d, %ecx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x30c0
movq 0x8(%rsp), %r11
movl %r15d, %r12d
testb $0x3, %r15b
je 0x359d
cmpl $0x3, 0x99c9(%rip)      # 0xcf30
leaq 0x99d2(%rip), %r14      # 0xcf40
jl 0x3630
movq 0x8b95(%rip), %rsi      # 0xc110
movq 0xd9ce(%rip), %rdx      # 0x10f50
leaq 0x3055(%rip), %rdi      # 0x65de
movl %r15d, %ecx
xorl %eax, %eax
callq 0x30c0
movq 0x8(%rsp), %r11
jmp 0x3630
leaq (%r14,%rbx), %rax
addq $0x3, %rax
xorl %ecx, %ecx
leaq 0x9992(%rip), %r14      # 0xcf40
cmpq %r12, %rcx
jae 0x38cc
movzbl -0x3(%rax,%rcx), %r8d
movl %r8d, %edx
andb $-0x40, %dl
cmpb $0x40, %dl
jne 0x35e2
cmpb $0x3f, -0x2(%rax,%rcx)
ja 0x35e2
cmpb $0x3f, -0x1(%rax,%rcx)
ja 0x35e2
cmpb $0x40, (%rax,%rcx)
jae 0x35e2
addq $0x4, %rcx
jmp 0x35ae
cmpl $0x3, 0x9947(%rip)      # 0xcf30
jl 0x3630
movq 0x8b1e(%rip), %rsi      # 0xc110
movq 0xd957(%rip), %rdx      # 0x10f50
movl %ecx, %eax
andl $-0x4, %eax
movzbl 0x1(%r11,%rax), %r9d
movzbl 0x2(%r11,%rax), %r10d
movq 0x8(%rsp), %rdi
movzbl 0x3(%rdi,%rax), %r11d
leaq 0x3009(%rip), %rdi      # 0x6625
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x30c0
movq 0x18(%rsp), %r11
addq $0x10, %rsp
testb $0x1, %r15b
jne 0x3b69
movzbl (%r11), %ecx
movl %ecx, %eax
andb $-0x40, %al
cmpb $0x40, %al
jne 0x3899
cmpb $0x40, 0x1(%r11)
jae 0x3899
cmpl $0x3, %r15d
jbe 0x3bd7
addl $-0x2, %r15d
movzbl (%r11,%r15), %eax
andl $0x3f, %eax
shll $0x6, %eax
movzbl -0x1(%r11,%r12), %r12d
andl $0x3f, %r12d
orl %eax, %r12d
cmpl $0x2, 0x98ae(%rip)      # 0xcf30
jl 0x36a8
movq 0x8a85(%rip), %rsi      # 0xc110
movq 0xd8be(%rip), %rdx      # 0x10f50
leaq 0x31b9(%rip), %rdi      # 0x6852
movl %r12d, %ecx
xorl %eax, %eax
callq 0x30c0
movq 0x8(%rsp), %r11
xorl %eax, %eax
xorl %r13d, %r13d
cmpq %rax, %r15
je 0x36bf
movzbl (%r11,%rax), %ecx
addl %ecx, %r13d
incq %rax
jmp 0x36ad
andl $0xfff, %r13d           # imm = 0xFFF
cmpl $0x2, 0x9863(%rip)      # 0xcf30
jl 0x36f3
movq 0x8a3a(%rip), %rsi      # 0xc110
movq 0xd873(%rip), %rdx      # 0x10f50
leaq 0x3194(%rip), %rdi      # 0x6878
movl %r13d, %ecx
xorl %eax, %eax
callq 0x30c0
movq 0x8(%rsp), %r11
cmpl %r13d, %r12d
jne 0x3c24
xorl %r13d, %r13d
pushq $0xc
popq %rsi
xorl %r12d, %r12d
movl %ebp, %r14d
movl %eax, 0x18(%rsp)
movq %r15, 0x28(%rsp)
movl %r13d, %eax
xorl %edx, %edx
pushq $0xd
popq %rcx
divl %ecx
movl 0x980f(%rip), %ecx      # 0xcf30
cmpq %r12, %r15
je 0x3a0b
cmpl $0x3, %ecx
jl 0x3789
movq %r13, %r15
movq %r14, %r13
movq %rbx, %r14
imull $0xd, %eax, %ebx
addl %esi, %ebx
movl %esi, %ebp
movzbl (%r11,%r12), %esi
leaq 0x2f63(%rip), %rdi      # 0x66ae
xorl %eax, %eax
callq 0x30c0
movq 0x8877(%rip), %rax      # 0xbfd0
movq (%rax), %rdi
callq 0x3140
movl %ebp, %esi
movq 0x8(%rsp), %r11
testl %ebx, %ebx
movq %r14, %rbx
movq %r13, %r14
movq %r15, %r13
movq 0x28(%rsp), %r15
jne 0x3789
pushq $0xa
popq %rdi
callq 0x3040
movl %ebp, %esi
movq 0x8(%rsp), %r11
leal -0x1(%r14), %eax
cmpl $0x3, %eax
ja 0x3835
leaq 0x2877(%rip), %rcx      # 0x6014
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl (%r11,%r12), %eax
testb $0x40, %al
jne 0x3842
pushq $0x1
jmp 0x3831
movzbl (%r11,%r12), %eax
movl %eax, %ecx
andl $0x3f, %ecx
shll $0x6, %ecx
xorl %edx, %edx
testb $0x40, %al
sete %dl
leal 0x2(%rdx,%rdx), %r14d
cmovnel %ecx, %ebx
movl 0x18(%rsp), %eax
cmovel %ecx, %eax
movl %eax, 0x18(%rsp)
jmp 0x3835
movzbl (%r11,%r12), %eax
andl $0x3f, %eax
movl 0x18(%rsp), %edx
addl %eax, %edx
movzwl %bx, %eax
leaq 0x9748(%rip), %rcx      # 0xcf40
movl %edx, 0x18(%rsp)
movw %dx, (%rcx,%rax,2)
movl %esi, %ebp
callq 0x4250
movl %ebp, %esi
movq 0x8(%rsp), %r11
incl %ebx
jmp 0x382f
movzbl (%r11,%r12), %eax
andl $0x3f, %eax
addl %eax, %ebx
movzwl %bx, %edi
movl %esi, %ebp
xorl %esi, %esi
callq 0x42ae
movl %ebp, %esi
movq 0x8(%rsp), %r11
pushq $0x3
popq %rax
movl %eax, %r14d
incq %r12
decl %esi
incl %r13d
jmp 0x3711
movzwl %ax, %ebx
andl $0x3f, %ebx
shll $0x6, %ebx
pushq $0x2
jmp 0x3831
movq 0x87a2(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x88b0(%rip), %rdx      # 0xc110
movq 0xd6e9(%rip), %rcx      # 0x10f50
leaq 0x2cab(%rip), %rsi      # 0x6519
xorl %eax, %eax
callq 0x3120
movq 0x8(%rsp), %r11
xorl %r15d, %r15d
pushq $0x1
popq %rbp
cmpq %r15, %r12
je 0x3b22
cmpb $0x0, (%r11,%r15)
js 0x3524
incq %r15
jmp 0x3880
cmpl $0x3, 0x9690(%rip)      # 0xcf30
jl 0x3b96
movq 0x8863(%rip), %rsi      # 0xc110
movq 0xd69c(%rip), %rdx      # 0x10f50
movzbl 0x1(%r11), %r8d
leaq 0x2efd(%rip), %rdi      # 0x67bd
xorl %eax, %eax
callq 0x30c0
jmp 0x3b91
movw $0xffff, %ax            # imm = 0xFFFF
movl %eax, 0x30(%rsp)
xorl %r15d, %r15d
pushq $0xc
popq %r14
xorl %r13d, %r13d
movl %ebp, %ebx
movq %rax, 0x18(%rsp)
movl %eax, 0x28(%rsp)
movl %r15d, %eax
xorl %edx, %edx
pushq $0xd
popq %rcx
divl %ecx
movl 0x9637(%rip), %ecx      # 0xcf30
cmpq %r13, %r12
je 0x3a0b
cmpl $0x3, %ecx
jl 0x3948
imull $0xd, %eax, %ebp
addl %r14d, %ebp
movzbl (%r11,%r13), %esi
leaq 0x2d95(%rip), %rdi      # 0x66ae
xorl %eax, %eax
callq 0x30c0
movq 0x86a9(%rip), %rax      # 0xbfd0
movq (%rax), %rdi
callq 0x3140
movq 0x8(%rsp), %r11
testl %ebp, %ebp
pushq $0x1
popq %rbp
jne 0x3948
pushq $0xa
popq %rdi
callq 0x3040
movq 0x8(%rsp), %r11
leal -0x1(%rbx), %eax
cmpl $0x3, %eax
ja 0x39fd
leaq 0x26a9(%rip), %rcx      # 0x6004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl (%r11,%r13), %eax
testb $0x40, %al
jne 0x39ea
movl %ebp, %ebx
jmp 0x39fd
movzbl (%r11,%r13), %eax
andl $0x3f, %eax
shll $0x6, %eax
movl %eax, 0x28(%rsp)
pushq $0x4
jmp 0x39fa
movzbl (%r11,%r13), %eax
andl $0x3f, %eax
movl 0x28(%rsp), %ecx
orl %eax, %ecx
movzwl 0x18(%rsp), %edi
leaq 0x959f(%rip), %rax      # 0xcf40
movw %cx, (%rax,%rdi,2)
cmpw 0x30(%rsp), %di
movl %ecx, 0x28(%rsp)
jne 0x39cf
callq 0x4250
jmp 0x39d6
movzbl (%r11,%r13), %eax
andl $0x3f, %eax
movq 0x18(%rsp), %rcx
orl %eax, %ecx
movq %rcx, 0x18(%rsp)
pushq $0x3
jmp 0x39fa
movl %ebp, %esi
callq 0x42ae
movq 0x18(%rsp), %rax
incl %eax
movl %eax, 0x30(%rsp)
movl %ebp, %ebx
movq 0x8(%rsp), %r11
jmp 0x39fd
movzwl %ax, %eax
andl $0x3f, %eax
shll $0x6, %eax
movq %rax, 0x18(%rsp)
pushq $0x2
popq %rax
movl %eax, %ebx
incq %r13
decl %r14d
incl %r15d
jmp 0x38e9
cmpl $0x2, %ecx
jle 0x3a18
pushq $0xa
popq %rdi
callq 0x3040
cmpl $0x0, 0x9505(%rip)      # 0xcf24
movq 0x20(%rsp), %rbx
movl 0x14(%rsp), %ebp
leaq 0x9511(%rip), %r14      # 0xcf40
jne 0x3a47
callq 0x5680
callq 0x544b
leaq 0x2f84(%rip), %rdi      # 0x69c6
callq 0x3090
movq 0x94ea(%rip), %rdi      # 0xcf38
callq 0x3030
movl 0x94c7(%rip), %ecx      # 0xcf20
movl 0x94c9(%rip), %eax      # 0xcf28
movl %ecx, %edx
orl %eax, %edx
je 0x3c12
xorl %edx, %edx
cmpq $0x2000, %rdx           # imm = 0x2000
je 0x3cdb
cmpw $-0x1, (%rdx,%r14)
leaq 0x2(%rdx), %rdx
je 0x3a6b
testl %ecx, %ecx
je 0x3a93
callq 0x3dc6
movl 0x9495(%rip), %eax      # 0xcf28
testl %eax, %eax
je 0x3c12
callq 0x3fc7
jmp 0x3c12
movq 0x854c(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x865a(%rip), %rdx      # 0xc110
movq 0xd493(%rip), %rcx      # 0x10f50
leaq 0x2955(%rip), %rsi      # 0x6419
jmp 0x3b06
movq 0x852b(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x8639(%rip), %rdx      # 0xc110
movq 0xd472(%rip), %rcx      # 0x10f50
leaq 0x296f(%rip), %rsi      # 0x6454
jmp 0x3b06
movq 0x850a(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x8618(%rip), %rdx      # 0xc110
movq 0xd451(%rip), %rcx      # 0x10f50
leaq 0x2995(%rip), %rsi      # 0x649b
xorl %eax, %eax
callq 0x3120
movq 0x20(%rsp), %rbx
movl 0x14(%rsp), %ebp
leaq 0x9423(%rip), %r14      # 0xcf40
jmp 0x3c06
movl %r13d, %r15d
jmp 0x3524
movq 0x84c7(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x85d5(%rip), %rdx      # 0xc110
movq 0xd40e(%rip), %rcx      # 0x10f50
subq $0x8, %rsp
leaq 0x2977(%rip), %rsi      # 0x64c4
movl %r12d, %r8d
movl %r12d, %r9d
xorl %eax, %eax
pushq %r13
pushq %r15
pushq %r12
callq 0x3120
addq $0x20, %rsp
jmp 0x34f2
cmpl $0x3, 0x93c0(%rip)      # 0xcf30
jl 0x3b96
movq 0x8597(%rip), %rsi      # 0xc110
movq 0xd3d0(%rip), %rdx      # 0x10f50
leaq 0x2bf0(%rip), %rdi      # 0x6777
movl %r15d, %ecx
xorl %eax, %eax
callq 0x30c0
movq 0x8(%rsp), %r11
movq 0x845b(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x8569(%rip), %rdx      # 0xc110
movq 0xd3a2(%rip), %rcx      # 0x10f50
movzbl (%r11), %r8d
movzbl 0x1(%r11), %r9d
movzbl 0x2(%r11), %r10d
movzbl 0x3(%r11), %r11d
leaq 0x29c2(%rip), %rsi      # 0x658a
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x3120
popq %rcx
popq %rdx
jmp 0x3bfd
movq 0x841a(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x8528(%rip), %rdx      # 0xc110
movq 0xd361(%rip), %rcx      # 0x10f50
leaq 0x2c33(%rip), %rsi      # 0x6829
xorl %eax, %eax
callq 0x3120
movq 0x20(%rsp), %rbx
movl 0x14(%rsp), %ebp
movq 0x932b(%rip), %rdi      # 0xcf38
callq 0x3030
movq 0x83bf(%rip), %rcx      # 0xbfd8
movl (%rcx), %eax
incl %eax
movl %eax, (%rcx)
jmp 0x33d3
movq 0x83cd(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x84db(%rip), %rdx      # 0xc110
movq 0xd314(%rip), %rcx      # 0x10f50
leaq 0x2c5d(%rip), %rsi      # 0x68a0
movl %r13d, %r8d
movl %r12d, %r9d
xorl %eax, %eax
callq 0x3120
jmp 0x3b0d
cmpl $0x0, 0x92d0(%rip)      # 0xcf2c
je 0x3d12
movl $0x2000, %edx           # imm = 0x2000
movq %r14, %rdi
movl $0xff, %esi
callq 0x30d0
xorl %eax, %eax
xorl %ecx, %ecx
cmpq $0xf80, %rcx            # imm = 0xF80
je 0x3ca0
movl %ecx, %edx
shrl $0x6, %edx
movl %eax, %esi
andl $0xfc0, %esi            # imm = 0xFC0
orl %edx, %esi
movw %si, (%r14)
incq %rcx
addl $0x40, %eax
addq $0x2, %r14
jmp 0x3c78
leaq 0x2470(%rip), %rax      # 0x6117
movq %rax, 0xd2a2(%rip)      # 0x10f50
cmpl $0x0, 0x926b(%rip)      # 0xcf20
je 0x3cbc
callq 0x3dc6
cmpl $0x0, 0x9265(%rip)      # 0xcf28
je 0x3d19
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3fc7
movq 0x8316(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x8424(%rip), %rdx      # 0xc110
movq 0xd25d(%rip), %rcx      # 0x10f50
leaq 0x23df(%rip), %rsi      # 0x60d9
xorl %eax, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3120
cmpl $0x0, 0x34(%rsp)
je 0x3d2b
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x40fa
movq 0x82c1(%rip), %rax      # 0xbff8
movq (%rax), %rbx
movq 0x83cf(%rip), %r14      # 0xc110
movq 0xd208(%rip), %r15      # 0x10f50
callq 0x3060
movl (%rax), %r8d
leaq 0x230e(%rip), %rsi      # 0x6065
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x3120
xorl %edi, %edi
callq 0x3180
jmp 0x3dbe
movq 0x8281(%rip), %rax      # 0xbff8
movq (%rax), %rbx
movq 0x838f(%rip), %r14      # 0xc110
movq 0xd1c8(%rip), %r12      # 0x10f50
callq 0x3060
movl (%rax), %ebp
movl %ebp, %edi
callq 0x31d0
movq %rax, %r10
subq $0x8, %rsp
leaq 0x22ef(%rip), %rsi      # 0x6093
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
movl %ebp, %r9d
xorl %eax, %eax
pushq %r10
callq 0x3120
popq %rcx
popq %rdx
pushq $0x1
popq %rdi
callq 0x31b0