// File: /workspace/github_c_makefile_star2_O1/tditlu[P]shadetabler/src/lodepng/lodepng.c
// Function: lodepng_info_copy
unsigned lodepng_info_copy(LodePNGInfo* dest, const LodePNGInfo* source) {
  lodepng_info_cleanup(dest);
  lodepng_memcpy(dest, source, sizeof(LodePNGInfo));
  lodepng_color_mode_init(&dest->color);
  CERROR_TRY_RETURN(lodepng_color_mode_copy(&dest->color, &source->color));

#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
  CERROR_TRY_RETURN(LodePNGText_copy(dest, source));
  CERROR_TRY_RETURN(LodePNGIText_copy(dest, source));
  if(source->iccp_defined) {
    CERROR_TRY_RETURN(lodepng_assign_icc(dest, source->iccp_name, source->iccp_profile, source->iccp_profile_size));
  }

  LodePNGUnknownChunks_init(dest);
  CERROR_TRY_RETURN(LodePNGUnknownChunks_copy(dest, source));
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5ec1
movl $0x138, %edx            # imm = 0x138
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1130
leaq 0x10(%r14), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%r14)
movabsq $0x800000006, %rax      # imm = 0x800000006
movq %rax, 0x10(%r14)
movups %xmm0, 0x18(%r14)
leaq 0x10(%rbx), %rsi
callq 0x572f
movl %eax, %ebp
testl %eax, %eax
jne 0x607c
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r14)
movq $0x0, 0x58(%r14)
cmpq $0x0, 0x48(%rbx)
je 0x5ff3
xorl %r12d, %r12d
movq 0x50(%rbx), %rax
movq 0x58(%rbx), %rcx
movq (%rax,%r12,8), %rsi
movq (%rcx,%r12,8), %rdx
movq $-0x1, %rcx
cmpb $0x0, 0x1(%rdx,%rcx)
leaq 0x1(%rcx), %rcx
jne 0x5fcf
movq %r14, %rdi
callq 0x59b7
testl %eax, %eax
cmovnel %eax, %r15d
jne 0x5ff6
incq %r12
cmpq 0x48(%rbx), %r12
jne 0x5fb8
xorl %r15d, %r15d
testl %r15d, %r15d
cmovnel %r15d, %ebp
jne 0x607c
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%r14)
movups %xmm0, 0x60(%r14)
movq $0x0, 0x80(%r14)
cmpq $0x0, 0x60(%rbx)
je 0x6070
xorl %r12d, %r12d
movq 0x68(%rbx), %rax
movq 0x70(%rbx), %rcx
movq (%rax,%r12,8), %rsi
movq (%rcx,%r12,8), %rdx
movq 0x78(%rbx), %rax
movq (%rax,%r12,8), %rcx
movq 0x80(%rbx), %rax
movq (%rax,%r12,8), %r8
movq $-0x1, %r9
cmpb $0x0, 0x1(%r8,%r9)
leaq 0x1(%r9), %r9
jne 0x604b
movq %r14, %rdi
callq 0x5bb1
testl %eax, %eax
cmovnel %eax, %r15d
jne 0x6073
incq %r12
cmpq 0x60(%rbx), %r12
jne 0x6021
xorl %r15d, %r15d
testl %r15d, %r15d
cmovnel %r15d, %ebp
je 0x608d
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0xe8(%rbx)
je 0x60b9
movq 0xf0(%rbx), %rsi
movq 0xf8(%rbx), %rdx
movl 0x100(%rbx), %ecx
movq %r14, %rdi
callq 0x5dcf
testl %eax, %eax
cmovnel %eax, %ebp
jne 0x607c
leaq 0x108(%r14), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x128(%r14)
movups %xmm0, 0x118(%r14)
movups %xmm0, 0x108(%r14)
xorl %r15d, %r15d
movq (%r12,%r15,8), %rdi
callq 0x1030
incq %r15
cmpq $0x3, %r15
jne 0x60de
xorl %r13d, %r13d
movq 0x120(%rbx,%r13,8), %rbp
movq %rbp, 0x120(%r14,%r13,8)
movq 0x120(%rbx,%r13,8), %r15
movq %r15, %rdi
callq 0x1140
movq %rax, 0x108(%r14,%r13,8)
testq %rax, %rax
setne %al
testq %rbp, %rbp
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x6164
testq %r15, %r15
je 0x6154
xorl %eax, %eax
movq 0x108(%rbx,%r13,8), %rcx
movb (%rcx,%rax), %cl
movq (%r12,%r13,8), %rdx
movb %cl, (%rdx,%rax)
incq %rax
cmpq 0x120(%rbx,%r13,8), %rax
jb 0x6135
incq %r13
xorl %ebp, %ebp
cmpq $0x3, %r13
jne 0x60f3
jmp 0x607c
movl $0x53, %ebp
jmp 0x607c