// File: jimmiebergmann[P]fbx-file/miniz.c
// Function: mz_zip_reader_extract_iter_free
mz_bool mz_zip_reader_extract_iter_free(mz_zip_reader_extract_iter_state* pState)
{
    int status;

    /* Argument sanity check */
    if ((!pState) || (!pState->pZip) || (!pState->pZip->m_pState))
        return MZ_FALSE;

    /* Was decompression completed and requested? */
    if ((pState->status == TINFL_STATUS_DONE) && (!(pState->flags & MZ_ZIP_FLAG_COMPRESSED_DATA)))
    {
        /* Make sure the entire file was decompressed, and check its CRC. */
        if (pState->out_buf_ofs != pState->file_stat.m_uncomp_size)
        {
            mz_zip_set_error(pState->pZip, MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE);
            pState->status = TINFL_STATUS_FAILED;
        }
#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
        else if (pState->file_crc32 != pState->file_stat.m_crc32)
        {
            mz_zip_set_error(pState->pZip, MZ_ZIP_DECOMPRESSION_FAILED);
            pState->status = TINFL_STATUS_FAILED;
        }
#endif
    }

    /* Free buffers */
    if (!pState->pZip->m_pState->m_pMem)
        pState->pZip->m_pFree(pState->pZip->m_pAlloc_opaque, pState->pRead_buf);
    if (pState->pWrite_buf)
        pState->pZip->m_pFree(pState->pZip->m_pAlloc_opaque, pState->pWrite_buf);

    /* Save status */
    status = pState->status;

    /* Free context */
    pState->pZip->m_pFree(pState->pZip->m_pAlloc_opaque, pState);

    return status == TINFL_STATUS_DONE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x10a3b
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
je 0x10a3b
movq -0x28(%rbp), %rax
movq (%rax), %rax
cmpq $0x0, 0x68(%rax)
jne 0x10a47
movl $0x0, -0x20(%rbp)
jmp 0x10b8c
movq -0x28(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0x10aee
movq -0x28(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
jne 0x10aee
movq -0x28(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x28(%rbp), %rcx
cmpq 0x78(%rcx), %rax
je 0x10aac
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x8(%rbp)
movl $0xd, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x10a9f
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x28(%rbp), %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
jmp 0x10aec
movq -0x28(%rbp), %rax
movl 0x10(%rax), %eax
movq -0x28(%rbp), %rcx
cmpl 0x68(%rcx), %eax
je 0x10aea
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movl $0xb, -0x1c(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x10adf
movl -0x1c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x28(%rbp), %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
jmp 0x10aec
jmp 0x10aee
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq 0x68(%rax), %rax
cmpq $0x0, 0x80(%rax)
jne 0x10b26
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
movq 0x40(%rcx), %rdi
movq -0x28(%rbp), %rcx
movq 0x4a0(%rcx), %rsi
callq *%rax
movq -0x28(%rbp), %rax
cmpq $0x0, 0x4a8(%rax)
je 0x10b57
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
movq 0x40(%rcx), %rdi
movq -0x28(%rbp), %rcx
movq 0x4a8(%rcx), %rsi
callq *%rax
movq -0x28(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %rax
movq -0x28(%rbp), %rcx
movq (%rcx), %rcx
movq 0x40(%rcx), %rdi
movq -0x28(%rbp), %rsi
callq *%rax
cmpl $0x0, -0x2c(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)