// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/workbook.c
// Function: workbook_close
lxw_error
workbook_close(lxw_workbook *self)
{
    lxw_sheet *sheet = NULL;
    lxw_worksheet *worksheet = NULL;
    lxw_packager *packager = NULL;
    lxw_error error = LXW_NO_ERROR;
    char codename[LXW_MAX_SHEETNAME_LENGTH] = { 0 };

    /* Add a default worksheet if non have been added. */
    if (!self->num_sheets)
        workbook_add_worksheet(self, NULL);

    /* Ensure that at least one worksheet has been selected. */
    if (self->active_sheet == 0) {
        sheet = STAILQ_FIRST(self->sheets);
        if (!sheet->is_chartsheet) {
            worksheet = sheet->u.worksheet;
            worksheet->selected = LXW_TRUE;
            worksheet->hidden = 0;
        }
    }

    /* Set the active sheet and check if a metadata file is needed. */
    STAILQ_FOREACH(sheet, self->sheets, list_pointers) {
        if (sheet->is_chartsheet)
            continue;
        else
            worksheet = sheet->u.worksheet;

        if (worksheet->index == self->active_sheet)
            worksheet->active = LXW_TRUE;

        if (worksheet->has_dynamic_arrays)
            self->has_metadata = LXW_TRUE;
    }

    /* Set workbook and worksheet VBA codenames if a macro has been added. */
    if (self->vba_project) {
        if (!self->vba_codename)
            workbook_set_vba_name(self, "ThisWorkbook");

        STAILQ_FOREACH(sheet, self->sheets, list_pointers) {
            if (sheet->is_chartsheet)
                continue;
            else
                worksheet = sheet->u.worksheet;

            if (!worksheet->vba_codename) {
                lxw_snprintf(codename, LXW_MAX_SHEETNAME_LENGTH, "Sheet%d",
                             worksheet->index + 1);

                worksheet_set_vba_name(worksheet, codename);
            }
        }
    }

    /* Prepare the worksheet VML elements such as comments. */
    _prepare_vml(self);

    /* Set the defined names for the worksheets such as Print Titles. */
    _prepare_defined_names(self);

    /* Prepare the drawings, charts and images. */
    _prepare_drawings(self);

    /* Add cached data to charts. */
    _add_chart_cache_data(self);

    /* Set the table ids for the worksheet tables. */
    _prepare_tables(self);

    /* Create a packager object to assemble sub-elements into a zip file. */
    packager = lxw_packager_new(self->filename,
                                self->options.tmpdir,
                                self->options.use_zip64);

    /* If the packager fails it is generally due to a zip permission error. */
    if (packager == NULL) {
        LXW_PRINTF(LXW_STDERR "[ERROR] workbook_close(): "
                   "Error creating '%s'. "
                   "System error = %s\n", self->filename, strerror(errno));

        error = LXW_ERROR_CREATING_XLSX_FILE;
        goto mem_error;
    }

    /* Set the workbook object in the packager. */
    packager->workbook = self;

    /* Assemble all the sub-files in the xlsx package. */
    error = lxw_create_package(packager);

    if (!self->filename) {
        *self->options.output_buffer = packager->output_buffer;
        *self->options.output_buffer_size = packager->output_buffer_size;
    }

    /* Error and non-error conditions fall through to the cleanup code. */
    if (error == LXW_ERROR_CREATING_TMPFILE) {
        LXW_PRINTF(LXW_STDERR "[ERROR] workbook_close(): "
                   "Error creating tmpfile(s) to assemble '%s'. "
                   "System error = %s\n", self->filename, strerror(errno));
    }

    /* If LXW_ERROR_ZIP_FILE_OPERATION then errno is set by zip. */
    if (error == LXW_ERROR_ZIP_FILE_OPERATION) {
        LXW_PRINTF(LXW_STDERR "[ERROR] workbook_close(): "
                   "Zip ZIP_ERRNO error while creating xlsx file '%s'. "
                   "System error = %s\n", self->filename, strerror(errno));
    }

    /* If LXW_ERROR_ZIP_PARAMETER_ERROR then errno is set by zip. */
    if (error == LXW_ERROR_ZIP_PARAMETER_ERROR) {
        LXW_PRINTF(LXW_STDERR "[ERROR] workbook_close(): "
                   "Zip ZIP_PARAMERROR error while creating xlsx file '%s'. "
                   "System error = %s\n", self->filename, strerror(errno));
    }

    /* If LXW_ERROR_ZIP_BAD_ZIP_FILE then errno is set by zip. */
    if (error == LXW_ERROR_ZIP_BAD_ZIP_FILE) {
        LXW_PRINTF(LXW_STDERR "[ERROR] workbook_close(): "
                   "Zip ZIP_BADZIPFILE error while creating xlsx file '%s'. "
                   "This may require the use_zip64 option for large files. "
                   "System error = %s\n", self->filename, strerror(errno));
    }

    /* If LXW_ERROR_ZIP_INTERNAL_ERROR then errno is set by zip. */
    if (error == LXW_ERROR_ZIP_INTERNAL_ERROR) {
        LXW_PRINTF(LXW_STDERR "[ERROR] workbook_close(): "
                   "Zip ZIP_INTERNALERROR error while creating xlsx file '%s'. "
                   "System error = %s\n", self->filename, strerror(errno));
    }

    /* The next 2 error conditions don't set errno. */
    if (error == LXW_ERROR_ZIP_FILE_ADD) {
        LXW_PRINTF(LXW_STDERR "[ERROR] workbook_close(): "
                   "Zip error adding file to xlsx file '%s'.\n",
                   self->filename);
    }

    if (error == LXW_ERROR_ZIP_CLOSE) {
        LXW_PRINTF(LXW_STDERR "[ERROR] workbook_close(): "
                   "Zip error closing xlsx file '%s'.\n", self->filename);
    }

mem_error:
    lxw_packager_free(packager);
    lxw_workbook_free(self);
    return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0xdf(%rsp)
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
cmpw $0x0, 0xb0(%rdi)
jne 0x2bbc4
movq %rbx, %rdi
xorl %esi, %esi
callq 0xcb80
movzwl 0xb8(%rbx), %eax
testw %ax, %ax
jne 0x2bbe9
movq 0x8(%rbx), %rcx
movq (%rcx), %rcx
cmpb $0x0, (%rcx)
jne 0x2bbe9
movq 0x8(%rcx), %rcx
movw $0x1, 0xd3(%rcx)
movq 0x8(%rbx), %rcx
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x2bc24
cmpb $0x0, (%rcx)
jne 0x2bc1e
movq 0x8(%rcx), %rdx
cmpw %ax, 0xd0(%rdx)
jne 0x2bc0e
movb $0x1, 0xd2(%rdx)
cmpb $0x0, 0x151(%rdx)
je 0x2bc1e
movb $0x1, 0xd5(%rbx)
movq 0x10(%rcx), %rcx
jmp 0x2bbf0
cmpq $0x0, 0xe8(%rbx)
je 0x2bcaa
cmpq $0x0, 0xf8(%rbx)
jne 0x2bc4b
leaq 0x19dcf(%rip), %rdi     # 0x45a0e
callq 0xcce0
movq %rax, 0xf8(%rbx)
movq 0x8(%rbx), %rax
movq (%rax), %r13
testq %r13, %r13
je 0x2bcaa
leaq 0x19d0e(%rip), %r14     # 0x4596c
leaq 0x70(%rsp), %r15
cmpb $0x0, (%r13)
jne 0x2bca1
movq 0x8(%r13), %r12
cmpq $0x0, 0x158(%r12)
jne 0x2bca1
movzwl 0xd0(%r12), %ecx
incl %ecx
movl $0x7f, %esi
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xc570
movq %r12, %rdi
movq %r15, %rsi
callq 0xcfb0
movq 0x10(%r13), %r13
testq %r13, %r13
jne 0x2bc63
movq 0x8(%rbx), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x2bd85
movl $0x1, %r15d
movl $0x0, 0x18(%rsp)
movl $0x400, %ebp            # imm = 0x400
xorl %r12d, %r12d
xorl %r8d, %r8d
cmpb $0x0, (%r14)
jne 0x2bd78
movq 0x8(%r14), %r13
cmpb $0x0, 0x2a0(%r13)
je 0x2bd3b
movb $0x1, 0xd3(%rbx)
cmpb $0x0, 0x2a1(%r13)
je 0x2bd0d
incw 0xc2(%rbx)
incl %r8d
movb $0x1, 0xd4(%rbx)
incl %r12d
movq %r13, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl %r12d, %ecx
movl %r8d, 0x8(%rsp)
callq 0xc6b0
addl $0x400, %eax            # imm = 0x400
movl %eax, %ecx
shrl $0xa, %ecx
addl %ecx, %r15d
andl $0xfffffc00, %eax       # imm = 0xFFFFFC00
addl %eax, %ebp
jmp 0x2bd4a
movl %r8d, 0x8(%rsp)
cmpb $0x0, 0x2a2(%r13)
je 0x2bd73
cmpb $0x0, 0x2a2(%r13)
je 0x2bd73
movb $0x1, 0xd3(%rbx)
incl %r12d
movl 0x18(%rsp), %esi
incl %esi
movq %r13, %rdi
movl %esi, 0x18(%rsp)
movl %r12d, %edx
callq 0xc5f0
movl 0x8(%rsp), %r8d
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x2bcd3
movq 0x8(%rbx), %rax
movq (%rax), %r12
testq %r12, %r12
je 0x2c154
leaq 0xf0(%rsp), %r15
leaq 0x170(%rsp), %rbp
leaq 0x50(%rsp), %r14
cmpb $0x0, (%r12)
jne 0x2c146
movq 0x8(%r12), %r13
cmpb $0x0, 0x1e4(%r13)
je 0x2be4e
movq 0xc0(%r13), %rcx
movl $0x80, %esi
movq %r15, %rdi
leaq 0x1a6ff(%rip), %rdx     # 0x464dd
xorl %eax, %eax
callq 0xc570
movzwl 0x1f0(%r13), %edx
movl 0x1e8(%r13), %esi
movl 0x1ec(%r13), %ecx
movzwl 0x1f2(%r13), %r8d
movq %r14, %rdi
callq 0xc430
movq 0xc0(%r13), %rcx
movl $0x80, %esi
movq %rbp, %rdi
leaq 0x1a6cf(%rip), %rdx     # 0x464f0
movq %r14, %r8
xorl %eax, %eax
callq 0xc570
movswl 0xd0(%r13), %r8d
movq %rbx, %rdi
leaq 0x1a6b9(%rip), %rsi     # 0x464f6
movq %r15, %rdx
movq %rbp, %rcx
movl $0x1, %r9d
callq 0x2c7b8
cmpb $0x0, 0x1d4(%r13)
je 0x2bf7e
movq 0xc0(%r13), %rcx
movl $0x80, %esi
movq %r15, %rdi
leaq 0x1a69a(%rip), %rdx     # 0x4650c
xorl %eax, %eax
callq 0xc570
movl 0x1d8(%r13), %eax
testl %eax, %eax
jne 0x2bee3
cmpl $0xfffff, 0x1dc(%r13) # imm = 0xFFFFF
jne 0x2bee3
movzwl 0x1e0(%r13), %esi
leaq 0x38(%rsp), %rdi
xorl %edx, %edx
callq 0xc580
movzwl 0x1e2(%r13), %esi
leaq 0x48(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0xc580
movl $0x1b, %esi
leaq 0x50(%rsp), %rdi
leaq 0x1a69a(%rip), %rdx     # 0x46567
leaq 0x38(%rsp), %rcx
movq %r14, %r8
leaq 0x50(%rsp), %r14
xorl %eax, %eax
callq 0xc570
jmp 0x2bf3e
movzwl 0x1e0(%r13), %edx
testw %dx, %dx
jne 0x2bf22
cmpw $0x3fff, 0x1e2(%r13)    # imm = 0x3FFF
jne 0x2bf22
incl %eax
movl 0x1dc(%r13), %r8d
incl %r8d
movl $0x1b, %esi
movq %r14, %rdi
leaq 0x1a632(%rip), %rdx     # 0x46549
movl %eax, %ecx
xorl %eax, %eax
callq 0xc570
jmp 0x2bf3e
movl 0x1dc(%r13), %ecx
movzwl 0x1e2(%r13), %r8d
movzwl %dx, %edx
movq %r14, %rdi
movl %eax, %esi
callq 0xc430
movq 0xc0(%r13), %rcx
movl $0x80, %esi
movq %rbp, %rdi
leaq 0x1a59c(%rip), %rdx     # 0x464f0
movq %r14, %r8
xorl %eax, %eax
callq 0xc570
movswl 0xd0(%r13), %r8d
movq %rbx, %rdi
leaq 0x1a5aa(%rip), %rsi     # 0x4651a
movq %r15, %rdx
movq %rbp, %rcx
xorl %r9d, %r9d
callq 0x2c7b8
movb 0x1c0(%r13), %al
movb 0x1cc(%r13), %cl
testb %al, %al
je 0x2c03d
testb %cl, %cl
je 0x2c046
movq 0xc0(%r13), %rcx
movl $0x80, %esi
movq %r15, %rdi
leaq 0x1a579(%rip), %rdx     # 0x4652b
xorl %eax, %eax
callq 0xc570
movzwl 0x1ce(%r13), %esi
leaq 0x38(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0xc580
movzwl 0x1d0(%r13), %esi
leaq 0x48(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0xc580
movq 0xc0(%r13), %rcx
movl 0x1c4(%r13), %r10d
incl %r10d
movl 0x1c8(%r13), %r11d
incl %r11d
subq $0x8, %rsp
movl $0x80, %esi
movq %rbp, %rdi
leaq 0x1a526(%rip), %rdx     # 0x4653b
movq %r14, %r8
leaq 0x58(%rsp), %r14
movq %r15, %r9
leaq 0xf8(%rsp), %r15
xorl %eax, %eax
pushq %r11
pushq %r10
pushq %rcx
callq 0xc570
addq $0x20, %rsp
jmp 0x2c126
testb %cl, %cl
jne 0x2c09d
jmp 0x2c146
testb %al, %al
je 0x2c09d
movq 0xc0(%r13), %rcx
movl $0x80, %esi
movq %r15, %rdi
leaq 0x1a4cb(%rip), %rdx     # 0x4652b
xorl %eax, %eax
callq 0xc570
movq 0xc0(%r13), %rcx
movl 0x1c4(%r13), %r8d
incl %r8d
movl 0x1c8(%r13), %r9d
incl %r9d
movl $0x80, %esi
movq %rbp, %rdi
leaq 0x1a4b5(%rip), %rdx     # 0x46546
xorl %eax, %eax
callq 0xc570
jmp 0x2c126
cmpb $0x0, 0x1cc(%r13)
je 0x2c146
movq 0xc0(%r13), %rcx
movl $0x80, %esi
movq %r15, %rdi
leaq 0x1a46a(%rip), %rdx     # 0x4652b
xorl %eax, %eax
callq 0xc570
movzwl 0x1ce(%r13), %esi
leaq 0x38(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0xc580
movzwl 0x1d0(%r13), %esi
leaq 0x48(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0xc580
movq 0xc0(%r13), %rcx
movl $0x80, %esi
movq %rbp, %rdi
leaq 0x1a458(%rip), %rdx     # 0x46564
movq %r14, %r8
leaq 0x50(%rsp), %r14
movq %r15, %r9
leaq 0xf0(%rsp), %r15
xorl %eax, %eax
callq 0xc570
movswl 0xd0(%r13), %r8d
movq %rbx, %rdi
leaq 0x1a419(%rip), %rsi     # 0x46551
movq %r15, %rdx
movq %rbp, %rcx
xorl %r9d, %r9d
callq 0x2c7b8
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x2bdaa
movq 0x8(%rbx), %rax
movq (%rax), %rax
xorl %r12d, %r12d
testq %rax, %rax
je 0x2c589
movq $0x0, 0x8(%rsp)
xorl %ebp, %ebp
xorl %r13d, %r13d
movq %rbx, 0x30(%rsp)
cmpb $0x0, (%rax)
movq %rax, 0x40(%rsp)
je 0x2c190
movq 0x8(%rax), %rax
movb $0x1, %cl
movl %ecx, 0x2c(%rsp)
jmp 0x2c198
movl $0x0, 0x2c(%rsp)
movq 0x8(%rax), %r14
movq 0x60(%r14), %rax
cmpq $0x0, (%rax)
jne 0x2c1c8
movq 0x68(%r14), %rax
cmpq $0x0, (%rax)
jne 0x2c1c8
cmpb $0x0, 0x2a2(%r14)
jne 0x2c1c8
cmpb $0x0, 0x2a3(%r14)
je 0x2c577
cmpb $0x0, 0x2a3(%r14)
movq %r14, 0x18(%rsp)
je 0x2c2c9
movq 0x3a8(%r14), %rdx
movzbl 0x50(%rdx), %eax
decl %eax
cmpl $0x3, %eax
ja 0x2c21f
leaq 0x19714(%rip), %rcx     # 0x45908
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, 0xcf(%rbx)
jmp 0x2c21f
movb $0x1, 0xd1(%rbx)
jmp 0x2c21f
movb $0x1, 0xd2(%rbx)
jmp 0x2c21f
movb $0x1, 0xd0(%rbx)
movq 0xa0(%rdx), %r15
testq %r15, %r15
movq 0x8(%rsp), %rax
movq %rdx, 0x20(%rsp)
je 0x2c253
movq %r15, 0xf8(%rsp)
movq 0x40(%rbx), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x2d3a7
movq 0x20(%rsp), %rdx
testq %rax, %rax
movq %rax, 0x8(%rsp)
je 0x2c268
movl (%rax), %esi
movb $0x1, 0x98(%rdx)
jmp 0x2c2c1
testq %r15, %r15
sete %bl
incl %ebp
movl $0x1, %edi
movl $0x30, %esi
callq 0xc7f0
movq %rax, %r14
testq %rax, %rax
sete %al
orb %bl, %al
je 0x2c295
movl %ebp, %esi
movq 0x30(%rsp), %rbx
jmp 0x2c2b7
movl %ebp, (%r14)
movq %r15, %rdi
callq 0xcce0
movq %rax, 0x8(%r14)
movq 0x30(%rsp), %rbx
movq 0x40(%rbx), %rdi
movq %r14, %rsi
callq 0x2d3e9
movl %ebp, %esi
movq 0x18(%rsp), %r14
movq 0x20(%rsp), %rdx
movq %r14, %rdi
callq 0xcbc0
incl %r12d
movq 0x60(%r14), %rax
movq (%rax), %r15
testq %r15, %r15
movq %r12, 0x20(%rsp)
je 0x2c3ea
movl %r13d, 0x14(%rsp)
cmpb $0x0, 0x99(%r15)
jne 0x2c3da
movzbl 0x50(%r15), %eax
decl %eax
cmpl $0x3, %eax
ja 0x2c332
leaq 0x19611(%rip), %rcx     # 0x45918
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, 0xcf(%rbx)
jmp 0x2c332
movb $0x1, 0xd1(%rbx)
jmp 0x2c332
movb $0x1, 0xd2(%rbx)
jmp 0x2c332
movb $0x1, 0xd0(%rbx)
movq 0xa0(%r15), %r14
testq %r14, %r14
movq 0x8(%rsp), %rax
je 0x2c35c
movq %r14, 0xf8(%rsp)
movq 0x30(%rbx), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x2d3a7
testq %rax, %rax
movq %rax, 0x8(%rsp)
je 0x2c372
movl (%rax), %esi
movb $0x1, 0x98(%r15)
jmp 0x2c3c7
testq %r14, %r14
sete %r12b
incl %ebp
movl $0x1, %edi
movl $0x30, %esi
callq 0xc7f0
movl %ebp, %r13d
movq %rax, %rbp
testq %rax, %rax
sete %al
orb %r12b, %al
jne 0x2c3b7
movl %r13d, (%rbp)
movq %r14, %rdi
callq 0xcce0
movq %rax, 0x8(%rbp)
movq 0x30(%rbx), %rdi
movq %rbp, %rsi
callq 0x2d3e9
movl %r13d, %esi
movq 0x20(%rsp), %r12
movl %r13d, %ebp
movl 0x14(%rsp), %r13d
movq 0x18(%rsp), %r14
movq %r14, %rdi
movl %r12d, %edx
movq %r15, %rcx
callq 0xc680
movq 0xb8(%r15), %r15
testq %r15, %r15
jne 0x2c2e6
movq 0x68(%r14), %rax
movq (%rax), %r14
testq %r14, %r14
movl $0x170, %r15d           # imm = 0x170
je 0x2c458
incl %r13d
movzbl 0x2c(%rsp), %r8d
movq 0x18(%rsp), %rdi
movl %r13d, %esi
movl %r12d, %edx
movq %r14, %rcx
callq 0xcee0
movq 0x90(%r14), %rax
testq %rax, %rax
je 0x2c44c
movq $0x0, 0x170(%rax)
movq 0x50(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %rax, (%rcx)
movq 0x90(%r14), %rax
addq %r15, %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0xb8(%r14), %r14
testq %r14, %r14
jne 0x2c3fc
movl $0x69, %r12d
movq 0x18(%rsp), %r14
movl %r13d, 0x14(%rsp)
movq (%r14,%r12,8), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x2c565
movzbl 0x50(%r15), %eax
decl %eax
cmpl $0x3, %eax
ja 0x2c4b6
leaq 0x1949d(%rip), %rcx     # 0x45928
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, 0xcf(%rbx)
jmp 0x2c4b6
movb $0x1, 0xd1(%rbx)
jmp 0x2c4b6
movb $0x1, 0xd2(%rbx)
jmp 0x2c4b6
movb $0x1, 0xd0(%rbx)
movq 0xa0(%r15), %r14
testq %r14, %r14
movq 0x8(%rsp), %rax
je 0x2c4e0
movq %r14, 0xf8(%rsp)
movq 0x38(%rbx), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x2d3a7
testq %rax, %rax
movq %rax, 0x8(%rsp)
je 0x2c4f6
movl (%rax), %esi
movb $0x1, 0x98(%r15)
jmp 0x2c555
testq %r14, %r14
sete %r13b
incl %ebp
movl $0x1, %edi
movl $0x30, %esi
callq 0xc7f0
movl %ebp, %ebx
movq %rax, %rbp
testq %rax, %rax
sete %al
orb %r13b, %al
je 0x2c529
movl %ebx, %esi
movl %ebx, %ebp
movq 0x30(%rsp), %rbx
jmp 0x2c550
movl %ebx, (%rbp)
movq %r14, %rdi
callq 0xcce0
movq %rax, 0x8(%rbp)
movq 0x30(%rsp), %r14
movq 0x38(%r14), %rdi
movq %rbp, %rsi
callq 0x2d3e9
movl %ebx, %esi
movl %ebx, %ebp
movq %r14, %rbx
movl 0x14(%rsp), %r13d
movq 0x18(%rsp), %r14
movq %r14, %rdi
movq %r15, %rdx
callq 0xcd90
incq %r12
cmpq $0x6f, %r12
jne 0x2c468
movq 0x20(%rsp), %r12
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x2c17a
movw %r12w, 0xc0(%rbx)
movq 0x50(%rbx), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x2c64f
movq 0x50(%r14), %rsi
movq %rbx, %rdi
callq 0x2d641
movq 0x20(%r14), %rax
movq 0x20(%rax), %rsi
movq %rbx, %rdi
callq 0x2d641
movq 0x28(%r14), %rax
movq 0x20(%rax), %rsi
movq %rbx, %rdi
callq 0x2d641
movq 0x128(%r14), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x2c643
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x2d641
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x2d641
movq 0x30(%r15), %rsi
movq %rbx, %rdi
callq 0x2d641
cmpw $0x0, 0x92(%r15)
je 0x2c63a
movl $0x30, %r12d
xorl %r13d, %r13d
movq 0x88(%r15), %rax
movq (%rax,%r12), %rsi
movq %rbx, %rdi
callq 0x2d641
incq %r13
movzwl 0x92(%r15), %eax
addq $0x60, %r12
cmpq %rax, %r13
jb 0x2c613
movq 0x110(%r15), %r15
jmp 0x2c5d7
movq 0x170(%r14), %r14
jmp 0x2c598
movq 0x8(%rbx), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x2c68b
xorl %r15d, %r15d
cmpb $0x0, (%r14)
jne 0x2c682
movq 0x8(%r14), %rdi
movzwl 0xa0(%rdi), %ebp
testl %ebp, %ebp
je 0x2c682
leal 0x1(%r15), %esi
callq 0xc240
addl %r15d, %ebp
movl %ebp, %r15d
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x2c65e
leaq 0x80(%rbx), %r15
movq 0x80(%rbx), %rdi
movq 0x90(%rbx), %rsi
movzbl 0x98(%rbx), %edx
callq 0xcd80
movq %rax, %r14
testq %rax, %rax
je 0x2c726
movq %rbx, 0x8(%r14)
movq %r14, %rdi
callq 0xc5c0
movl %eax, %ebp
cmpq $0x0, 0x80(%rbx)
jne 0x2c6e8
movq 0x68(%r14), %rax
movq 0xa0(%rbx), %rcx
movq %rax, (%rcx)
movq 0x18(%r14), %rax
movq 0xa8(%rbx), %rcx
movq %rax, (%rcx)
movl %ebp, %eax
addl $-0x3, %eax
cmpl $0x7, %eax
ja 0x2c702
leaq 0x1923f(%rip), %rcx     # 0x45938
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0xcc50
movq %rbx, %rdi
callq 0xcb50
movl %ebp, %eax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0xe27d
movl $0x2, %ebp
jmp 0x2c702
movq %r15, %rdi
callq 0xe18d
jmp 0x2c702
movq %r15, %rdi
callq 0xe241
jmp 0x2c702
movq %r15, %rdi
callq 0xe1c9
jmp 0x2c702
movq %r15, %rdi
callq 0xe205
jmp 0x2c702
movq %r15, %rdi
callq 0xe12d
jmp 0x2c702
movq %r15, %rdi
callq 0xe109
movl $0xa, %ebp
jmp 0x2c702
movq %r15, %rdi
callq 0xe151
jmp 0x2c702