LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/ioapi.c
// Function: fopen_file_func
static voidpf ZCALLBACK fopen_file_func(voidpf opaque, const char* filename, int mode) {
    FILE* file = NULL;
    const char* mode_fopen = NULL;
    (void)opaque;
    if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ)
        mode_fopen = "rb";
    else
    if (mode & ZLIB_FILEFUNC_MODE_EXISTING)
        mode_fopen = "r+b";
    else
    if (mode & ZLIB_FILEFUNC_MODE_CREATE)
        mode_fopen = "wb";

    if ((filename!=NULL) && (mode_fopen != NULL))
        file = fopen(filename, mode_fopen);
    return file;
}

// Assembly:
movl %edx, %eax
andl $0x3, %eax
movb $0x1, %cl
cmpl $0x1, %eax
jne 0xfe6e
leaq 0x30194(%rip), %rax     # 0x40000
jmp 0xfe91
testb $0x4, %dl
jne 0xfe8a
shrl $0x3, %edx
xorl %eax, %eax
andl $0x1, %edx
leaq 0x30185(%rip), %rcx     # 0x40007
cmovneq %rcx, %rax
movl %edx, %ecx
jmp 0xfe91
leaq 0x30172(%rip), %rax     # 0x40003
testq %rsi, %rsi
sete %dl
xorb $0x1, %cl
orb %dl, %cl
jne 0xfea9
movq %rsi, %rdi
movq %rax, %rsi
jmp 0xcdc0
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/ioapi.c
// Function: fill_fopen64_filefunc
void fill_fopen64_filefunc(zlib_filefunc64_def* pzlib_filefunc_def) {
    pzlib_filefunc_def->zopen64_file = fopen64_file_func;
    pzlib_filefunc_def->zread_file = fread_file_func;
    pzlib_filefunc_def->zwrite_file = fwrite_file_func;
    pzlib_filefunc_def->ztell64_file = ftell64_file_func;
    pzlib_filefunc_def->zseek64_file = fseek64_file_func;
    pzlib_filefunc_def->zclose_file = fclose_file_func;
    pzlib_filefunc_def->zerror_file = ferror_file_func;
    pzlib_filefunc_def->opaque = NULL;
}

// Assembly:
leaq 0x4e(%rip), %rax        # 0xff6d
movq %rax, (%rdi)
leaq -0x7d(%rip), %rax       # 0xfeac
movq %rax, 0x8(%rdi)
leaq -0x72(%rip), %rax       # 0xfec2
movq %rax, 0x10(%rdi)
leaq 0x81(%rip), %rax        # 0xffc0
movq %rax, 0x18(%rdi)
leaq 0x7e(%rip), %rax        # 0xffc8
movq %rax, 0x20(%rdi)
leaq -0x4d(%rip), %rax       # 0xff08
movq %rax, 0x28(%rdi)
leaq -0x50(%rip), %rax       # 0xff10
movq %rax, 0x30(%rdi)
movq $0x0, 0x38(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/ioapi.c
// Function: fopen64_file_func
static voidpf ZCALLBACK fopen64_file_func(voidpf opaque, const void* filename, int mode) {
    FILE* file = NULL;
    const char* mode_fopen = NULL;
    (void)opaque;
    if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ)
        mode_fopen = "rb";
    else
    if (mode & ZLIB_FILEFUNC_MODE_EXISTING)
        mode_fopen = "r+b";
    else
    if (mode & ZLIB_FILEFUNC_MODE_CREATE)
        mode_fopen = "wb";

    if ((filename!=NULL) && (mode_fopen != NULL))
        file = FOPEN_FUNC((const char*)filename, mode_fopen);
    return file;
}

// Assembly:
movl %edx, %eax
andl $0x3, %eax
movb $0x1, %cl
cmpl $0x1, %eax
jne 0xff82
leaq 0x30080(%rip), %rax     # 0x40000
jmp 0xffa5
testb $0x4, %dl
jne 0xff9e
shrl $0x3, %edx
xorl %eax, %eax
andl $0x1, %edx
leaq 0x30071(%rip), %rcx     # 0x40007
cmovneq %rcx, %rax
movl %edx, %ecx
jmp 0xffa5
leaq 0x3005e(%rip), %rax     # 0x40003
testq %rsi, %rsi
sete %dl
xorb $0x1, %cl
orb %dl, %cl
jne 0xffbd
movq %rsi, %rdi
movq %rax, %rsi
jmp 0xc8c0
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/zip.c
// Function: zipOpen2_64
extern zipFile ZEXPORT zipOpen2_64(const void *pathname, int append, zipcharpc* globalcomment, zlib_filefunc64_def* pzlib_filefunc_def) {
    if (pzlib_filefunc_def != NULL)
    {
        zlib_filefunc64_32_def zlib_filefunc64_32_def_fill;
        zlib_filefunc64_32_def_fill.zfile_func64 = *pzlib_filefunc_def;
        zlib_filefunc64_32_def_fill.ztell32_file = NULL;
        zlib_filefunc64_32_def_fill.zseek32_file = NULL;
        return zipOpen3(pathname, append, globalcomment, &zlib_filefunc64_32_def_fill);
    }
    else
        return zipOpen3(pathname, append, globalcomment, NULL);
}

// Assembly:
testq %rcx, %rcx
je 0x10a3f
subq $0x58, %rsp
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups 0x30(%rcx), %xmm3
movq %rsp, %rcx
movaps %xmm3, 0x30(%rcx)
movaps %xmm2, 0x20(%rcx)
movaps %xmm1, 0x10(%rcx)
movaps %xmm0, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rcx)
callq 0xc820
addq $0x58, %rsp
retq
xorl %ecx, %ecx
jmp 0xc820
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/zip.c
// Function: add_data_in_datablock
local int add_data_in_datablock(linkedlist_data* ll, const void* buf, uLong len) {
    linkedlist_datablock_internal* ldi;
    const unsigned char* from_copy;

    if (ll==NULL)
        return ZIP_INTERNALERROR;

    if (ll->last_block == NULL)
    {
        ll->first_block = ll->last_block = allocate_new_datablock();
        if (ll->first_block == NULL)
            return ZIP_INTERNALERROR;
    }

    ldi = ll->last_block;
    from_copy = (const unsigned char*)buf;

    while (len>0)
    {
        uInt copy_this;
        uInt i;
        unsigned char* to_copy;

        if (ldi->avail_in_this_block==0)
        {
            ldi->next_datablock = allocate_new_datablock();
            if (ldi->next_datablock == NULL)
                return ZIP_INTERNALERROR;
            ldi = ldi->next_datablock ;
            ll->last_block = ldi;
        }

        if (ldi->avail_in_this_block < len)
            copy_this = (uInt)ldi->avail_in_this_block;
        else
            copy_this = (uInt)len;

        to_copy = &(ldi->data[ldi->filled_in_this_block]);

        for (i=0;i<copy_this;i++)
            *(to_copy+i)=*(from_copy+i);

        ldi->filled_in_this_block += copy_this;
        ldi->avail_in_this_block -= copy_this;
        from_copy += copy_this ;
        len -= copy_this;
    }
    return ZIP_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0xffffff98, %ebx       # imm = 0xFFFFFF98
testq %rdi, %rdi
je 0x12075
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq 0x8(%rdi), %r13
testq %r13, %r13
jne 0x11fd7
movl $0x1010, %edi           # imm = 0x1010
callq 0xca50
testq %rax, %rax
je 0x12090
movq %rax, %r13
xorl %eax, %eax
movq %rax, (%r13)
movq %rax, 0x10(%r13)
movq $0xff0, 0x8(%r13)       # imm = 0xFF0
movq %r13, 0x8(%r14)
movq %r13, (%r14)
testq %r15, %r15
je 0x12073
movq 0x8(%r13), %rcx
xorl %ebp, %ebp
testq %rcx, %rcx
je 0x11ff1
movq 0x10(%r13), %rdx
jmp 0x12025
movl $0x1010, %edi           # imm = 0x1010
callq 0xca50
testq %rax, %rax
je 0x12086
movq %rbp, (%rax)
movq %rbp, 0x10(%rax)
movq $0xff0, 0x8(%rax)       # imm = 0xFF0
movq %rax, (%r13)
movq %rax, 0x8(%r14)
movl $0xff0, %ecx            # imm = 0xFF0
xorl %edx, %edx
movq %rax, %r13
cmpq %r15, %rcx
movq %r15, %rax
cmovbq %rcx, %rax
testl %eax, %eax
je 0x12057
leaq (%rdx,%r13), %rcx
addq $0x20, %rcx
movl %eax, %edx
xorl %esi, %esi
movb (%r12,%rsi), %dil
movb %dil, (%rcx,%rsi)
incq %rsi
cmpq %rsi, %rdx
jne 0x1203f
movq 0x8(%r13), %rcx
movq 0x10(%r13), %rdx
movl %eax, %eax
addq %rax, %rdx
movq %rdx, 0x10(%r13)
subq %rax, %rcx
movq %rcx, 0x8(%r13)
addq %rax, %r12
subq %rax, %r15
jne 0x11fe6
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, (%r13)
jmp 0x12075
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
jmp 0x12075
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/zip.c
// Function: zipRemoveExtraInfoBlock
extern int ZEXPORT zipRemoveExtraInfoBlock(char* pData, int* dataLen, short sHeader) {
  char* p = pData;
  int size = 0;
  char* pNewHeader;
  char* pTmp;
  short header;
  short dataSize;

  int retVal = ZIP_OK;

  if(pData == NULL || dataLen == NULL || *dataLen < 4)
    return ZIP_PARAMERROR;

  pNewHeader = (char*)ALLOC((unsigned)*dataLen);
  pTmp = pNewHeader;

  while(p < (pData + *dataLen))
  {
    header = *(short*)p;
    dataSize = *(((short*)p)+1);

    if( header == sHeader ) // Header found.
    {
      p += dataSize + 4; // skip it. do not copy to temp buffer
    }
    else
    {
      // Extra Info block should not be removed, So copy it to the temp buffer.
      memcpy(pTmp, p, dataSize + 4);
      p += dataSize + 4;
      size += dataSize + 4;
    }

  }

  if(size < *dataLen)
  {
    // clean old extra info block.
    memset(pData,0, *dataLen);

    // copy the new extra info block over the old
    if(size > 0)
      memcpy(pData, pNewHeader, size);

    // set the new extra info size
    *dataLen = size;

    retVal = ZIP_OK;
  }
  else
    retVal = ZIP_ERRNO;

  free(pNewHeader);

  return retVal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
movl $0xffffff9a, %r13d      # imm = 0xFFFFFF9A
jne 0x127fa
movslq (%rsi), %rbx
cmpq $0x4, %rbx
jl 0x127fa
movl %edx, %ebp
movq %rdi, %r15
movq %rsi, 0x18(%rsp)
movq %rbx, %rdi
callq 0xca50
movq %rax, 0x8(%rsp)
movq %rbx, 0x20(%rsp)
leaq (%r15,%rbx), %r14
xorl %ebx, %ebx
movq %r15, 0x10(%rsp)
movq %r15, %r13
movswq 0x2(%r13), %r12
cmpw %bp, (%r13)
jne 0x1278c
addq $0x4, %r12
jmp 0x127ad
leal 0x4(%r12), %eax
movslq %eax, %r15
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xc900
addl %r12d, %ebx
addl $0x4, %ebx
movq %r15, %r12
addq %r12, %r13
cmpq %r14, %r13
jb 0x1277a
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq 0x20(%rsp), %rdx
cmpl %edx, %ebx
jge 0x127f0
xorl %r13d, %r13d
movq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0xc640
testl %ebx, %ebx
jle 0x127e9
movl %ebx, %edx
movq %r14, %rdi
movq 0x8(%rsp), %rsi
callq 0xc900
movq 0x18(%rsp), %rax
movl %ebx, (%rax)
movq 0x8(%rsp), %rdi
callq 0xc0c0
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/zip.c
// Function: zip64local_getLong
local int zip64local_getLong(const zlib_filefunc64_32_def* pzlib_filefunc_def, voidpf filestream, uLong* pX) {
    uLong x ;
    int i = 0;
    int err;

    err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
    x = (uLong)i;

    if (err==ZIP_OK)
        err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
    x += ((uLong)i)<<8;

    if (err==ZIP_OK)
        err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
    x += ((uLong)i)<<16;

    if (err==ZIP_OK)
        err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
    x += ((uLong)i)<<24;

    if (err==ZIP_OK)
        *pX = x;
    else
        *pX = 0;
    return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0xc(%rsp), %rdx
movl $0x0, (%rdx)
callq 0x12a89
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x1286a
leaq 0xc(%rsp), %rdx
movslq (%rdx), %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x12a89
testl %eax, %eax
jne 0x1286a
leaq 0xc(%rsp), %rdx
movslq (%rdx), %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x12a89
testl %eax, %eax
je 0x12880
xorl %eax, %eax
movq %rax, (%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc(%rsp), %rcx
movslq (%rcx), %rax
shlq $0x10, %rax
movq %rax, 0x10(%rsp)
shlq $0x8, %r13
addq %r12, %r13
movq %r15, %rdi
movq %r14, %rsi
movq %rcx, %r14
movq %rcx, %rdx
callq 0x12a89
movl %eax, %ebp
movslq (%r14), %rcx
shlq $0x18, %rcx
addq 0x10(%rsp), %rcx
addq %r13, %rcx
xorl %eax, %eax
testl %ebp, %ebp
cmoveq %rcx, %rax
jmp 0x1286c
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/zip.c
// Function: zip64local_getLong64
local int zip64local_getLong64(const zlib_filefunc64_32_def* pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX) {
  ZPOS64_T x;
  int i = 0;
  int err;

  err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
  x = (ZPOS64_T)i;

  if (err==ZIP_OK)
    err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
  x += ((ZPOS64_T)i)<<8;

  if (err==ZIP_OK)
    err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
  x += ((ZPOS64_T)i)<<16;

  if (err==ZIP_OK)
    err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
  x += ((ZPOS64_T)i)<<24;

  if (err==ZIP_OK)
    err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
  x += ((ZPOS64_T)i)<<32;

  if (err==ZIP_OK)
    err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
  x += ((ZPOS64_T)i)<<40;

  if (err==ZIP_OK)
    err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
  x += ((ZPOS64_T)i)<<48;

  if (err==ZIP_OK)
    err = zip64local_getByte(pzlib_filefunc_def,filestream,&i);
  x += ((ZPOS64_T)i)<<56;

  if (err==ZIP_OK)
    *pX = x;
  else
    *pX = 0;

  return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
callq 0x12a89
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x12999
leaq 0x4(%rsp), %rdx
movslq (%rdx), %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x12a89
testl %eax, %eax
jne 0x12999
leaq 0x4(%rsp), %rdx
movslq (%rdx), %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x12a89
testl %eax, %eax
jne 0x12999
movq %r13, 0x20(%rsp)
leaq 0x4(%rsp), %rdx
movslq (%rdx), %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x12a89
testl %eax, %eax
jne 0x12999
movq %r13, 0x18(%rsp)
leaq 0x4(%rsp), %rdx
movslq (%rdx), %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x12a89
testl %eax, %eax
jne 0x12999
movq %r13, 0x10(%rsp)
leaq 0x4(%rsp), %rdx
movslq (%rdx), %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x12a89
testl %eax, %eax
jne 0x12999
leaq 0x4(%rsp), %rdx
movl (%rdx), %eax
movq %rax, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x12a89
testl %eax, %eax
je 0x129af
xorl %eax, %eax
movq %rax, (%rbx)
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %rdx
shlq $0x8, %rdx
addq %r12, %rdx
movq 0x18(%rsp), %rcx
shlq $0x10, %rcx
movq 0x10(%rsp), %rax
shlq $0x18, %rax
addq %rcx, %rax
addq %rdx, %rax
shlq $0x20, %r13
movq 0x8(%rsp), %rcx
shlq $0x28, %rcx
addq %r13, %rcx
leaq 0x4(%rsp), %r12
movl (%r12), %r13d
shlq $0x30, %r13
addq %rcx, %r13
addq %rax, %r13
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x12a89
movl %eax, %ebp
movl (%r12), %ecx
shlq $0x38, %rcx
addq %r13, %rcx
xorl %eax, %eax
testl %ebp, %ebp
cmoveq %rcx, %rax
jmp 0x1299b
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/minizip/zip.c
// Function: zip64local_getByte
local int zip64local_getByte(const zlib_filefunc64_32_def* pzlib_filefunc_def, voidpf filestream, int* pi) {
    unsigned char c;
    int err = (int)ZREAD64(*pzlib_filefunc_def,filestream,&c,1);
    if (err==1)
    {
        *pi = (int)c;
        return ZIP_OK;
    }
    else
    {
        if (ZERROR64(*pzlib_filefunc_def,filestream))
            return ZIP_ERRNO;
        else
            return ZIP_EOF;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
leaq 0xf(%rsp), %rdx
movl $0x1, %ecx
callq *0x8(%rbx)
cmpl $0x1, %eax
jne 0x12abd
movzbl 0xf(%rsp), %eax
movl %eax, (%r15)
xorl %eax, %eax
jmp 0x12acf
movq 0x38(%rbx), %rdi
movq %r14, %rsi
callq *0x30(%rbx)
movl %eax, %ecx
xorl %eax, %eax
negl %ecx
sbbl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/tmpfileplus/tmpfileplus.c
// Function: tmpfileplus_f
FILE *tmpfileplus_f(const char *dir, const char *prefix, char *pathnamebuf, size_t pathsize, int keep)
{
	char *tmpbuf = NULL;
	FILE *fp;

	/* If no buffer provided, do the normal way */
	if (!pathnamebuf || (int)pathsize <= 0) {
		return tmpfileplus(dir, prefix, NULL, keep);
	}
	/* Call with a temporary buffer */
	fp = tmpfileplus(dir, prefix, &tmpbuf, keep);
	if (fp && strlen(tmpbuf) > pathsize - 1) {
		/* Succeeded but not enough room in output buffer, so clean up and return an error */
		pathnamebuf[0] = 0;
		fclose(fp);
		if (keep) remove(tmpbuf);
		free(tmpbuf);
		errno = E2BIG;
		return NULL;
	}
	/* Copy name into buffer */
	strcpy(pathnamebuf, tmpbuf);
	free(tmpbuf);

	return fp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r8d, %ebx
movq %rcx, %r12
movq $0x0, 0x8(%rsp)
testq %rdx, %rdx
setne %al
testl %r12d, %r12d
setg %cl
testb %cl, %al
jne 0x12ddf
xorl %edx, %edx
movl %ebx, %ecx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xc090
movq %rdx, %r14
leaq 0x8(%rsp), %r13
movq %r13, %rdx
movl %ebx, %ecx
callq 0xc090
movq %rax, %r15
movq (%r13), %r13
testq %rax, %rax
je 0x12e41
movq %r13, %rdi
callq 0xc480
decq %r12
cmpq %r12, %rax
jbe 0x12e41
movb $0x0, (%r14)
movq %r15, %rdi
callq 0xc420
testl %ebx, %ebx
je 0x12e27
movq 0x8(%rsp), %rdi
callq 0xc190
movq 0x8(%rsp), %rdi
callq 0xc0c0
callq 0xc150
movl $0x7, (%rax)
xorl %r15d, %r15d
jmp 0x12e54
movq %r14, %rdi
movq %r13, %rsi
callq 0xc230
movq %r13, %rdi
callq 0xc0c0
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/third_party/md5/md5.c
// Function: MD5_Update
void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
{
	MD5_u32plus saved_lo;
	unsigned long used, available;

	saved_lo = ctx->lo;
	if ((ctx->lo = (saved_lo + size) & 0x1fffffff) < saved_lo)
		ctx->hi++;
	ctx->hi += size >> 29;

	used = saved_lo & 0x3f;

	if (used) {
		available = 64 - used;

		if (size < available) {
			memcpy(&ctx->buffer[used], data, size);
			return;
		}

		memcpy(&ctx->buffer[used], data, available);
		data = (const unsigned char *)data + available;
		size -= available;
		body(ctx, ctx->buffer, 64);
	}

	if (size >= 64) {
		data = body(ctx, data, size & ~(unsigned long)0x3f);
		size &= 0x3f;
	}

	memcpy(ctx->buffer, data, size);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %eax
leal (%rdx,%rax), %ecx
andl $0x1fffffff, %ecx       # imm = 0x1FFFFFFF
movl %ecx, (%rdi)
movq %rdx, %rdi
shrq $0x1d, %rdi
cmpl %eax, %ecx
adcl %edi, 0x4(%rbx)
movq %rsi, %r14
andq $0x3f, %rax
je 0x12ecd
movl $0x40, %r12d
subq %rax, %r12
movq %rdx, %r15
leaq (%rbx,%rax), %rdi
addq $0x18, %rdi
subq %r12, %r15
jae 0x12ed2
movq %r14, %rsi
jmp 0x12f20
movq %rdx, %r15
jmp 0x12ef4
leaq 0x18(%rbx), %r13
movq %r14, %rsi
movq %r12, %rdx
callq 0xc900
addq %r12, %r14
movl $0x40, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x12f2e
cmpq $0x40, %r15
jb 0x12f13
movq %r15, %rdx
andq $-0x40, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12f2e
movq %rax, %r14
andl $0x3f, %r15d
addq $0x18, %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xc900
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/app.c
// Function: lxw_app_new
lxw_app *
lxw_app_new(void)
{
    lxw_app *app = calloc(1, sizeof(lxw_app));
    GOTO_LABEL_ON_MEM_ERROR(app, mem_error);

    app->heading_pairs = calloc(1, sizeof(struct lxw_heading_pairs));
    GOTO_LABEL_ON_MEM_ERROR(app->heading_pairs, mem_error);
    STAILQ_INIT(app->heading_pairs);

    app->part_names = calloc(1, sizeof(struct lxw_part_names));
    GOTO_LABEL_ON_MEM_ERROR(app->part_names, mem_error);
    STAILQ_INIT(app->part_names);

    return app;

mem_error:
    lxw_app_free(app);
    return NULL;
}

// Assembly:
pushq %rbx
movl $0x1, %edi
movl $0x30, %esi
callq 0xc7f0
movq %rax, %rbx
testq %rax, %rax
je 0x13905
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x1390c
movq %rax, 0x8(%rax)
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x13913
movq %rax, 0x8(%rax)
movq %rbx, %rax
popq %rbx
retq
movl $0x1f, %edi
jmp 0x13918
movl $0x22, %edi
jmp 0x13918
movl $0x26, %edi
movq %rbx, %rsi
callq 0xd120
xorl %ebx, %ebx
jmp 0x13900
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/app.c
// Function: lxw_app_free
void
lxw_app_free(lxw_app *app)
{
    lxw_heading_pair *heading_pair;
    lxw_part_name *part_name;

    if (!app)
        return;

    /* Free the lists in the App object. */
    if (app->heading_pairs) {
        while (!STAILQ_EMPTY(app->heading_pairs)) {
            heading_pair = STAILQ_FIRST(app->heading_pairs);
            STAILQ_REMOVE_HEAD(app->heading_pairs, list_pointers);
            free(heading_pair->key);
            free(heading_pair->value);
            free(heading_pair);
        }
        free(app->heading_pairs);
    }

    if (app->part_names) {
        while (!STAILQ_EMPTY(app->part_names)) {
            part_name = STAILQ_FIRST(app->part_names);
            STAILQ_REMOVE_HEAD(app->part_names, list_pointers);
            free(part_name->name);
            free(part_name);
        }
        free(app->part_names);
    }

    free(app);
}

// Assembly:
testq %rdi, %rdi
je 0x139c4
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
jne 0x1396c
jmp 0x13979
movq 0x10(%r14), %rax
movq %rax, (%rdi)
testq %rax, %rax
jne 0x1394f
movq %rdi, 0x8(%rdi)
movq (%r14), %rdi
callq 0xc0c0
movq 0x8(%r14), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0xc0c0
movq 0x8(%rbx), %rdi
movq (%rdi), %r14
testq %r14, %r14
jne 0x1393f
callq 0xc0c0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
jne 0x139a8
jmp 0x139b5
movq 0x8(%r14), %rax
movq %rax, (%rdi)
testq %rax, %rax
jne 0x13994
movq %rdi, 0x8(%rdi)
movq (%r14), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0xc0c0
movq 0x10(%rbx), %rdi
movq (%rdi), %r14
testq %r14, %r14
jne 0x13984
callq 0xc0c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/app.c
// Function: lxw_app_add_part_name
void
lxw_app_add_part_name(lxw_app *self, const char *name)
{
    lxw_part_name *part_name;

    if (!name)
        return;

    part_name = calloc(1, sizeof(lxw_part_name));
    GOTO_LABEL_ON_MEM_ERROR(part_name, mem_error);

    part_name->name = lxw_strdup(name);
    GOTO_LABEL_ON_MEM_ERROR(part_name->name, mem_error);

    STAILQ_INSERT_TAIL(self->part_names, part_name, list_pointers);
    self->num_part_names++;

    return;

mem_error:
    if (part_name) {
        free(part_name->name);
        free(part_name);
    }
}

// Assembly:
testq %rsi, %rsi
je 0x13ea2
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
testq %rax, %rax
je 0x13ea3
movq %rax, %r14
movq %r15, %rdi
callq 0xcce0
movq %rax, (%r14)
testq %rax, %rax
je 0x13eaa
movq %r14, %rax
addq $0x8, %rax
movq 0x10(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r14, (%rcx)
movq 0x10(%rbx), %rcx
movq %rax, 0x8(%rcx)
incl 0x24(%rbx)
popq %rbx
popq %r14
popq %r15
retq
callq 0xd17f
jmp 0x13e9d
movq %r14, %rdi
callq 0xd14e
jmp 0x13e9d
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/app.c
// Function: lxw_app_add_heading_pair
void
lxw_app_add_heading_pair(lxw_app *self, const char *key, const char *value)
{
    lxw_heading_pair *heading_pair;

    if (!key || !value)
        return;

    heading_pair = calloc(1, sizeof(lxw_heading_pair));
    GOTO_LABEL_ON_MEM_ERROR(heading_pair, mem_error);

    heading_pair->key = lxw_strdup(key);
    GOTO_LABEL_ON_MEM_ERROR(heading_pair->key, mem_error);

    heading_pair->value = lxw_strdup(value);
    GOTO_LABEL_ON_MEM_ERROR(heading_pair->value, mem_error);

    STAILQ_INSERT_TAIL(self->heading_pairs, heading_pair, list_pointers);
    self->num_heading_pairs++;

    return;

mem_error:
    if (heading_pair) {
        free(heading_pair->key);
        free(heading_pair->value);
        free(heading_pair);
    }
}

// Assembly:
testq %rsi, %rsi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x13f38
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl $0x1, %edi
movl $0x18, %esi
callq 0xc7f0
testq %rax, %rax
je 0x13f39
movq %rax, %r14
movq %r12, %rdi
callq 0xcce0
movq %rax, %r12
movq %rax, (%r14)
testq %rax, %rax
je 0x13f40
movq %r15, %rdi
callq 0xcce0
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x13f47
movq %r14, %rax
addq $0x10, %rax
movq 0x8(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %r14, (%rcx)
movq 0x8(%rbx), %rcx
movq %rax, 0x8(%rcx)
incl 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0xd1e5
jmp 0x13f2d
movl $0x1ae, %edi            # imm = 0x1AE
jmp 0x13f4c
movl $0x1b1, %edi            # imm = 0x1B1
movq %r12, %rsi
movq %r14, %rdx
callq 0xd1a3
jmp 0x13f2d
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_free
STATIC void
_chart_series_free(lxw_chart_series *series)
{
    if (!series)
        return;

    free(series->title.name);
    free(series->line);
    free(series->fill);
    free(series->pattern);
    free(series->label_num_format);
    free(series->label_line);
    free(series->label_fill);
    free(series->label_pattern);

    _chart_free_font(series->label_font);

    if (series->marker) {
        free(series->marker->line);
        free(series->marker->fill);
        free(series->marker->pattern);
        free(series->marker);
    }

    _chart_free_range(series->categories);
    _chart_free_range(series->values);
    _chart_free_range(series->title.range);
    _chart_free_points(series);
    _chart_free_data_labels(series);

    if (series->x_error_bars) {
        free(series->x_error_bars->line);
        free(series->x_error_bars);
    }

    if (series->y_error_bars) {
        free(series->y_error_bars->line);
        free(series->y_error_bars);
    }

    free(series->trendline_line);
    free(series->trendline_name);

    free(series);
}

// Assembly:
testq %rdi, %rdi
je 0x14318
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0xc0c0
movq 0x60(%rbx), %rdi
callq 0xc0c0
movq 0x68(%rbx), %rdi
callq 0xc0c0
movq 0x70(%rbx), %rdi
callq 0xc0c0
movq 0xa0(%rbx), %rdi
callq 0xc0c0
movq 0xb0(%rbx), %rdi
callq 0xc0c0
movq 0xb8(%rbx), %rdi
callq 0xc0c0
movq 0xc0(%rbx), %rdi
callq 0xc0c0
movq 0xa8(%rbx), %rdi
callq 0x14319
movq 0x78(%rbx), %rax
testq %rax, %rax
je 0x1428b
movq 0x8(%rax), %rdi
callq 0xc0c0
movq 0x78(%rbx), %rax
movq 0x10(%rax), %rdi
callq 0xc0c0
movq 0x78(%rbx), %rax
movq 0x18(%rax), %rdi
callq 0xc0c0
movq 0x78(%rbx), %rdi
callq 0xc0c0
movq (%rbx), %rdi
callq 0x14334
movq 0x8(%rbx), %rdi
callq 0x14334
movq 0x30(%rbx), %rdi
callq 0x14334
movq %rbx, %rdi
callq 0x15d3b
movq %rbx, %rdi
callq 0x15f78
movq 0xc8(%rbx), %rax
testq %rax, %rax
je 0x142d6
movq 0x10(%rax), %rdi
callq 0xc0c0
movq 0xc8(%rbx), %rdi
callq 0xc0c0
movq 0xd0(%rbx), %rax
testq %rax, %rax
je 0x142f7
movq 0x10(%rax), %rdi
callq 0xc0c0
movq 0xd0(%rbx), %rdi
callq 0xc0c0
movq 0x100(%rbx), %rdi
callq 0xc0c0
movq 0xf8(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
popq %rbx
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_free_range
STATIC void
_chart_free_range(lxw_series_range *range)
{
    struct lxw_series_data_point *data_point;

    if (!range)
        return;

    if (range->data_cache) {
        while (!STAILQ_EMPTY(range->data_cache)) {
            data_point = STAILQ_FIRST(range->data_cache);
            free(data_point->string);
            STAILQ_REMOVE_HEAD(range->data_cache, list_pointers);

            free(data_point);
        }
        free(range->data_cache);
    }

    free(range->formula);
    free(range->sheetname);
    free(range);
}

// Assembly:
testq %rdi, %rdi
je 0x143a4
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
jne 0x14377
jmp 0x14384
movq 0x10(%r14), %rdi
callq 0xc0c0
movq 0x20(%rbx), %rax
movq (%rax), %rcx
movq 0x20(%rcx), %rcx
movq %rcx, (%rax)
testq %rcx, %rcx
jne 0x1436b
movq %rax, 0x8(%rax)
movq %r14, %rdi
callq 0xc0c0
movq 0x20(%rbx), %rdi
movq (%rdi), %r14
testq %r14, %r14
jne 0x1434b
callq 0xc0c0
movq (%rbx), %rdi
callq 0xc0c0
movq 0x8(%rbx), %rdi
callq 0xc0c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc0c0
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_init_data_cache
STATIC lxw_error
_chart_init_data_cache(lxw_series_range *range)
{
    /* Initialize the series range data cache. */
    range->data_cache = calloc(1, sizeof(struct lxw_series_data_points));
    RETURN_ON_MEM_ERROR(range->data_cache, LXW_ERROR_MEMORY_MALLOC_FAILED);
    STAILQ_INIT(range->data_cache);

    return LXW_NO_ERROR;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x148da
movq %rax, 0x8(%rax)
xorl %eax, %eax
popq %rbx
retq
callq 0xd22a
movl $0x1, %eax
jmp 0x148d8
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: lxw_chart_add_data_cache
lxw_error
lxw_chart_add_data_cache(lxw_series_range *range, uint8_t *data,
                         uint16_t rows, uint8_t cols, uint8_t col)
{
    struct lxw_series_data_point *data_point;
    uint16_t i;

    range->ignore_cache = LXW_TRUE;
    range->num_data_points = rows;

    /* Initialize the series range data cache. */
    for (i = 0; i < rows; i++) {
        data_point = calloc(1, sizeof(struct lxw_series_data_point));
        RETURN_ON_MEM_ERROR(data_point, LXW_ERROR_MEMORY_MALLOC_FAILED);
        STAILQ_INSERT_TAIL(range->data_cache, data_point, list_pointers);
        data_point->number = data[i * cols + col];
    }

    return LXW_NO_ERROR;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movb $0x1, 0x1c(%rdi)
movw %dx, 0x1e(%rdi)
xorl %ebx, %ebx
testl %edx, %edx
je 0x15624
movq %rsi, %r14
movq %rdi, %r15
movzbl %cl, %r12d
movzbl %r8b, %eax
addq %rax, %r14
movzwl %dx, %r13d
movl $0x1, %edi
movl $0x28, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15630
movq %rax, %rcx
addq $0x20, %rcx
movq $0x0, 0x20(%rax)
movq 0x20(%r15), %rdx
movq 0x8(%rdx), %rdx
movq %rax, (%rdx)
movq 0x20(%r15), %rdx
movq %rcx, 0x8(%rdx)
movzbl (%r14), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x8(%rax)
addq %r12, %r14
decq %r13
jne 0x155d6
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0xd24e
movl $0x1, %ebx
jmp 0x15624
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_name
void
chart_series_set_name(lxw_chart_series *series, const char *name)
{
    if (!name)
        return;

    if (name[0] == '=')
        series->title.range->formula = lxw_strdup(name + 1);
    else
        series->title.name = lxw_strdup(name);
}

// Assembly:
testq %rsi, %rsi
je 0x1587b
pushq %rbx
movq %rdi, %rbx
cmpb $0x3d, (%rsi)
jne 0x1586e
incq %rsi
movq %rsi, %rdi
callq 0xcce0
movq 0x30(%rbx), %rcx
movq %rax, (%rcx)
jmp 0x1587a
movq %rsi, %rdi
callq 0xcce0
movq %rax, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_convert_line_args
STATIC lxw_chart_line *
_chart_convert_line_args(lxw_chart_line *user_line)
{
    lxw_chart_line *line;

    if (!user_line)
        return NULL;

    line = calloc(1, sizeof(struct lxw_chart_line));
    RETURN_ON_MEM_ERROR(line, NULL);

    /* Copy the user supplied properties. */
    line->color = user_line->color;
    line->none = user_line->none;
    line->width = user_line->width;
    line->dash_type = user_line->dash_type;
    line->transparency = user_line->transparency;

    if (line->transparency > 100)
        line->transparency = 0;

    return line;
}

// Assembly:
testq %rdi, %rdi
je 0x159d0
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0xc7f0
testq %rax, %rax
je 0x159d3
movl (%rbx), %ecx
movl %ecx, (%rax)
movb 0x4(%rbx), %cl
movb %cl, 0x4(%rax)
movss 0x8(%rbx), %xmm0
movss %xmm0, 0x8(%rax)
movb 0xc(%rbx), %cl
movb %cl, 0xc(%rax)
movzbl 0xd(%rbx), %ecx
xorl %edx, %edx
cmpb $0x65, %cl
cmovbl %ecx, %edx
movb %dl, 0xd(%rax)
popq %rbx
retq
xorl %eax, %eax
retq
callq 0xd303
xorl %eax, %eax
jmp 0x159ce
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_convert_fill_args
STATIC lxw_chart_fill *
_chart_convert_fill_args(lxw_chart_fill *user_fill)
{
    lxw_chart_fill *fill;

    if (!user_fill)
        return NULL;

    fill = calloc(1, sizeof(struct lxw_chart_fill));
    RETURN_ON_MEM_ERROR(fill, NULL);

    /* Copy the user supplied properties. */
    fill->color = user_fill->color;
    fill->none = user_fill->none;
    fill->transparency = user_fill->transparency;

    if (fill->transparency > 100)
        fill->transparency = 0;

    return fill;
}

// Assembly:
testq %rdi, %rdi
je 0x15a40
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x8, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15a43
movl (%rbx), %ecx
movl %ecx, (%rax)
movb 0x4(%rbx), %cl
movb %cl, 0x4(%rax)
movzbl 0x5(%rbx), %ecx
xorl %edx, %edx
cmpb $0x65, %cl
cmovbl %ecx, %edx
movb %dl, 0x5(%rax)
popq %rbx
retq
xorl %eax, %eax
retq
callq 0xd327
xorl %eax, %eax
jmp 0x15a3e
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_convert_pattern_args
STATIC lxw_chart_pattern *
_chart_convert_pattern_args(lxw_chart_pattern *user_pattern)
{
    lxw_chart_pattern *pattern;

    if (!user_pattern)
        return NULL;

    if (!user_pattern->type) {
        LXW_WARN("chart_xxx_set_pattern: 'type' must be specified");
        return NULL;
    }

    if (!user_pattern->fg_color) {
        LXW_WARN("chart_xxx_set_pattern: 'fg_color' must be specified");
        return NULL;
    }

    pattern = calloc(1, sizeof(struct lxw_chart_pattern));
    RETURN_ON_MEM_ERROR(pattern, NULL);

    /* Copy the user supplied properties. */
    pattern->fg_color = user_pattern->fg_color;
    pattern->bg_color = user_pattern->bg_color;
    pattern->type = user_pattern->type;

    if (!pattern->bg_color) {
        /* Default background color in Excel is white, when unspecified. */
        pattern->bg_color = LXW_COLOR_WHITE;
    }

    return pattern;
}

// Assembly:
testq %rdi, %rdi
je 0x15acb
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movb 0x8(%rdi), %bpl
testb %bpl, %bpl
je 0x15ace
movl (%rbx), %r14d
testl %r14d, %r14d
je 0x15ad5
movl $0x1, %edi
movl $0xc, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15adc
movl %r14d, (%rax)
movl 0x4(%rbx), %ecx
movl %ecx, 0x4(%rax)
movb %bpl, 0x8(%rax)
testl %ecx, %ecx
jne 0x15ae3
movl $0xffffff, 0x4(%rax)    # imm = 0xFFFFFF
jmp 0x15ae3
xorl %eax, %eax
retq
callq 0xd38b
jmp 0x15ae1
callq 0xd36f
jmp 0x15ae1
callq 0xd34b
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_type
void
chart_series_set_marker_type(lxw_chart_series *series, uint8_t type)
{
    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    series->marker->type = type;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq 0x78(%rdi), %rax
testq %rax, %rax
jne 0x15b12
movq %rdi, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15b1c
movq %rax, 0x78(%r14)
movb %bl, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0xd3a7
jmp 0x15b14
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_size
void
chart_series_set_marker_size(lxw_chart_series *series, uint8_t size)
{
    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    series->marker->size = size;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq 0x78(%rdi), %rax
testq %rax, %rax
jne 0x15b4d
movq %rdi, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15b58
movq %rax, 0x78(%r14)
movb %bl, 0x1(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0xd3cb
jmp 0x15b50
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_line
void
chart_series_set_marker_line(lxw_chart_series *series, lxw_chart_line *line)
{
    if (!line)
        return;

    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    /* Free any previously allocated resource. */
    free(series->marker->line);

    series->marker->line = _chart_convert_line_args(line);
}

// Assembly:
testq %rsi, %rsi
je 0x15baf
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x78(%rdi), %rax
testq %rax, %rax
jne 0x15b8f
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15bb0
movq %rax, 0x78(%rbx)
movq 0x8(%rax), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x15988
movq 0x78(%rbx), %rcx
movq %rax, 0x8(%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0xd3ef
jmp 0x15ba8
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_fill
void
chart_series_set_marker_fill(lxw_chart_series *series, lxw_chart_fill *fill)
{
    if (!fill)
        return;

    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    /* Free any previously allocated resource. */
    free(series->marker->fill);

    series->marker->fill = _chart_convert_fill_args(fill);
}

// Assembly:
testq %rsi, %rsi
je 0x15c07
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x78(%rdi), %rax
testq %rax, %rax
jne 0x15be7
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15c08
movq %rax, 0x78(%rbx)
movq 0x10(%rax), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x15a08
movq 0x78(%rbx), %rcx
movq %rax, 0x10(%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0xd413
jmp 0x15c00
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_marker_pattern
void
chart_series_set_marker_pattern(lxw_chart_series *series,
                                lxw_chart_pattern *pattern)
{
    if (!pattern)
        return;

    if (!series->marker) {
        lxw_chart_marker *marker = calloc(1, sizeof(struct lxw_chart_marker));
        RETURN_VOID_ON_MEM_ERROR(marker);
        series->marker = marker;
    }

    /* Free any previously allocated resource. */
    free(series->marker->pattern);

    series->marker->pattern = _chart_convert_pattern_args(pattern);
}

// Assembly:
testq %rsi, %rsi
je 0x15c5f
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x78(%rdi), %rax
testq %rax, %rax
jne 0x15c3f
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x15c60
movq %rax, 0x78(%rbx)
movq 0x18(%rax), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x15a80
movq 0x78(%rbx), %rcx
movq %rax, 0x18(%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0xd437
jmp 0x15c58
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_points
lxw_error
chart_series_set_points(lxw_chart_series *series, lxw_chart_point *points[])
{
    uint16_t i = 0;
    uint16_t point_count = 0;

    if (points == NULL)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    while (points[point_count])
        point_count++;

    if (point_count == 0)
        return LXW_ERROR_NULL_PARAMETER_IGNORED;

    /* Free any existing resource. */
    _chart_free_points(series);

    series->points = calloc(point_count, sizeof(lxw_chart_point));
    RETURN_ON_MEM_ERROR(series->points, LXW_ERROR_MEMORY_MALLOC_FAILED);

    for (i = 0; i < point_count; i++) {
        lxw_chart_point *src_point = points[i];
        lxw_chart_point *dst_point = &series->points[i];

        dst_point->line = _chart_convert_line_args(src_point->line);
        dst_point->fill = _chart_convert_fill_args(src_point->fill);
        dst_point->pattern = _chart_convert_pattern_args(src_point->pattern);
    }

    series->point_count = point_count;

    return LXW_NO_ERROR;
}

// Assembly:
movl $0xc, %eax
testq %rsi, %rsi
je 0x15d2e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0xffff, %bp            # imm = 0xFFFF
incl %ebp
movzwl %bp, %r15d
cmpq $0x0, (%r14,%r15,8)
jne 0x15c8a
testw %bp, %bp
je 0x15d20
movq %rbx, %rdi
callq 0x15d3b
movl $0x18, %esi
movq %r15, %rdi
callq 0xc7f0
movq %rax, 0x80(%rbx)
testq %rax, %rax
je 0x15d2f
shll $0x3, %r15d
leaq (%r15,%r15,2), %rax
movq %rax, (%rsp)
xorl %r12d, %r12d
movq (%r14), %r13
movq %rbx, %r15
movq 0x80(%rbx), %rbx
movq (%r13), %rdi
callq 0x15988
movq %rax, (%rbx,%r12)
movq 0x8(%r13), %rdi
callq 0x15a08
movq %rax, 0x8(%rbx,%r12)
movq 0x10(%r13), %rdi
callq 0x15a80
movq %rax, 0x10(%rbx,%r12)
movq %r15, %rbx
addq $0x8, %r14
addq $0x18, %r12
cmpq %r12, (%rsp)
jne 0x15cd0
movw %bp, 0x90(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xd45b
movl $0x1, %eax
jmp 0x15d20
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_free_points
STATIC void
_chart_free_points(lxw_chart_series *series)
{
    uint16_t index;

    for (index = 0; index < series->point_count; index++) {
        lxw_chart_point *point = &series->points[index];

        free(point->line);
        free(point->fill);
        free(point->pattern);
    }

    series->point_count = 0;
    free(series->points);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x90(%rdi)
je 0x15d90
movl $0x10, %r14d
xorl %r15d, %r15d
movq 0x80(%rbx), %r12
movq -0x10(%r12,%r14), %rdi
callq 0xc0c0
movq -0x8(%r12,%r14), %rdi
callq 0xc0c0
movq (%r12,%r14), %rdi
callq 0xc0c0
incq %r15
movzwl 0x90(%rbx), %eax
addq $0x18, %r14
cmpq %rax, %r15
jb 0x15d59
movw $0x0, 0x90(%rbx)
movq 0x80(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc0c0
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_free_data_labels
STATIC void
_chart_free_data_labels(lxw_chart_series *series)
{
    uint16_t index;

    for (index = 0; index < series->data_label_count; index++) {
        lxw_chart_custom_label *data_label = &series->data_labels[index];

        free(data_label->value);
        _chart_free_range(data_label->range);
        _chart_free_font(data_label->font);
        free(data_label->line);
        free(data_label->fill);
        free(data_label->pattern);
    }

    series->data_label_count = 0;
    free(series->data_labels);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x92(%rdi)
je 0x15feb
movl $0x30, %r14d
xorl %r15d, %r15d
movq 0x88(%rbx), %r12
movq -0x30(%r12,%r14), %rdi
callq 0xc0c0
movq (%r12,%r14), %rdi
callq 0x14334
movq -0x20(%r12,%r14), %rdi
callq 0x14319
movq -0x18(%r12,%r14), %rdi
callq 0xc0c0
movq -0x10(%r12,%r14), %rdi
callq 0xc0c0
movq -0x8(%r12,%r14), %rdi
callq 0xc0c0
incq %r15
movzwl 0x92(%rbx), %eax
addq $0x60, %r14
cmpq %rax, %r15
jb 0x15f96
movw $0x0, 0x92(%rbx)
movq 0x88(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc0c0
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_convert_font_args
STATIC lxw_chart_font *
_chart_convert_font_args(lxw_chart_font *user_font)
{
    lxw_chart_font *font;

    if (!user_font)
        return NULL;

    font = calloc(1, sizeof(struct lxw_chart_font));
    RETURN_ON_MEM_ERROR(font, NULL);

    /* Copy the user supplied properties. */
    font->name = lxw_strdup(user_font->name);
    font->size = user_font->size;
    font->bold = user_font->bold;
    font->italic = user_font->italic;
    font->underline = user_font->underline;
    font->rotation = user_font->rotation;
    font->color = user_font->color;
    font->pitch_family = user_font->pitch_family;
    font->charset = user_font->charset;
    font->baseline = user_font->baseline;

    /* Convert font size units. */
    if (font->size > 0.0)
        font->size = font->size * 100.0;

    /* Convert rotation into 60,000ths of a degree. */
    if (font->rotation)
        font->rotation = font->rotation * 60000;

    return font;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x160ae
movq %rdi, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0xc7f0
testq %rax, %rax
je 0x160a9
movq %rax, %rbx
movq (%r14), %rdi
callq 0xcce0
movq %rax, (%rbx)
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movb 0x10(%r14), %al
movb %al, 0x10(%rbx)
movb 0x11(%r14), %al
movb %al, 0x11(%rbx)
movb 0x12(%r14), %al
movb %al, 0x12(%rbx)
movq 0x14(%r14), %rax
movq %rax, %xmm1
movq %rax, 0x14(%rbx)
movb 0x1c(%r14), %al
movb %al, 0x1c(%rbx)
movb 0x1d(%r14), %al
movb %al, 0x1d(%rbx)
movb 0x1e(%r14), %al
movb %al, 0x1e(%rbx)
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
jbe 0x16096
mulsd 0x2a43f(%rip), %xmm0    # 0x404d0
movsd %xmm0, 0x8(%rbx)
movd %xmm1, %eax
testl %eax, %eax
je 0x160b0
imull $0xea60, %eax, %eax     # imm = 0xEA60
movl %eax, 0x14(%rbx)
jmp 0x160b0
callq 0xd4c7
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_error_bars
void
chart_series_set_error_bars(lxw_series_error_bars *error_bars,
                            uint8_t type, double value)
{
    if (_chart_check_error_bars(error_bars, ""))
        return;

    error_bars->type = type;
    error_bars->value = value;
    error_bars->has_value = LXW_TRUE;
    error_bars->is_set = LXW_TRUE;

    if (type == LXW_CHART_ERROR_BAR_TYPE_STD_ERROR)
        error_bars->has_value = LXW_FALSE;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movsd %xmm0, (%rsp)
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x33391(%rip), %rsi     # 0x49739
callq 0xc8e0
testl %eax, %eax
jne 0x163cd
movb %bpl, (%rbx)
movsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rbx)
movw $0x101, 0x3(%rbx)       # imm = 0x101
testb %bpl, %bpl
jne 0x163cd
movb $0x0, 0x3(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_series_set_error_bars_line
void
chart_series_set_error_bars_line(lxw_series_error_bars *error_bars,
                                 lxw_chart_line *line)
{
    if (_chart_check_error_bars(error_bars, "_line"))
        return;

    if (!line)
        return;

    /* Free any previously allocated resource. */
    free(error_bars->line);

    error_bars->line = _chart_convert_line_args(line);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2a78d(%rip), %rsi     # 0x40bbc
callq 0xc8e0
testq %r14, %r14
je 0x16452
testl %eax, %eax
jne 0x16452
movq 0x10(%rbx), %rdi
callq 0xc0c0
movq %r14, %rdi
callq 0x15988
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_axis_set_name
void
chart_axis_set_name(lxw_chart_axis *axis, const char *name)
{
    if (!name)
        return;

    if (name[0] == '=')
        axis->title.range->formula = lxw_strdup(name + 1);
    else
        axis->title.name = lxw_strdup(name);
}

// Assembly:
testq %rsi, %rsi
je 0x164aa
pushq %rbx
movq %rdi, %rbx
cmpb $0x3d, (%rsi)
jne 0x1649e
incq %rsi
movq %rsi, %rdi
callq 0xcce0
movq 0x20(%rbx), %rcx
movq %rax, (%rcx)
jmp 0x164a9
movq %rsi, %rdi
callq 0xcce0
movq %rax, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/Paxa[P]fast_excel/libxlsxwriter/src/chart.c
// Function: chart_axis_set_log_base
void
chart_axis_set_log_base(lxw_chart_axis *axis, uint16_t log_base)
{
    LXW_WARN_VALUE_AXIS_ONLY("chart_axis_set_log_base");

    /* Excel log range is 2-1000. */
    if (log_base >= 2 && log_base <= 1000)
        axis->log_base = log_base;
}

// Assembly:
cmpb $0x0, 0xaa(%rdi)
je 0x166c8
leal -0x2(%rsi), %eax
movzwl %ax, %eax
cmpl $0x3e6, %eax            # imm = 0x3E6
ja 0x166c7
movw %si, 0xf4(%rdi)
retq
pushq %rax
callq 0xd659
addq $0x8, %rsp
retq