// File: /workspace/github_cpp_makefile_star2_O2/lvandeve[P]lodepng/lodepng.cpp
// Function: lodepng_info_copy(LodePNGInfo*, LodePNGInfo const*)
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) {
    dest->iccp_defined = 0; /*the memcpy above set this to 1 while it shouldn't*/
    CERROR_TRY_RETURN(lodepng_set_icc(dest, source->iccp_name, source->iccp_profile, source->iccp_profile_size));
  }
  if(source->exif_defined) {
    dest->exif_defined = 0; /*the memcpy above set this to 1 while it shouldn't*/
    CERROR_TRY_RETURN(lodepng_set_exif(dest, source->exif, source->exif_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 0x515b
movl $0x1a8, %edx            # imm = 0x1A8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4a08
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 0x49a4
testl %eax, %eax
jne 0x52f5
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r14)
andq $0x0, 0x58(%r14)
xorl %r12d, %r12d
cmpq 0x48(%rbx), %r12
je 0x5248
movq 0x50(%rbx), %rax
movq 0x58(%rbx), %rcx
movq (%rax,%r12,8), %rsi
movq (%rcx,%r12,8), %rdx
movq %r14, %rdi
callq 0x4be3
incq %r12
testl %eax, %eax
je 0x521e
jmp 0x52f5
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%r14)
movups %xmm0, 0x60(%r14)
andq $0x0, 0x80(%r14)
xorl %r12d, %r12d
cmpq 0x60(%rbx), %r12
je 0x529a
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 %r14, %rdi
callq 0x4d97
incq %r12
testl %eax, %eax
je 0x5260
jmp 0x52f5
cmpl $0x0, 0xfc(%rbx)
je 0x52cb
andl $0x0, 0xfc(%r14)
movq 0x100(%rbx), %rsi
movq 0x108(%rbx), %rdx
movl 0x110(%rbx), %ecx
movq %r14, %rdi
callq 0x4f09
testl %eax, %eax
jne 0x52f5
cmpl $0x0, 0x88(%rbx)
je 0x530a
andl $0x0, 0x88(%r14)
movq 0x90(%rbx), %rsi
movl 0x98(%rbx), %edx
movq %r14, %rdi
callq 0x5002
testl %eax, %eax
je 0x530a
movl %eax, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x512e
movq %r14, %rdi
callq 0x518e
xorl %r15d, %r15d
pushq $0x53
popq %rbp
xorl %r13d, %r13d
cmpq $0x3, %r13
je 0x52f8
movq 0x190(%rbx,%r13,8), %r12
movq %r12, 0x190(%r14,%r13,8)
movq %r12, %rdi
callq 0x2280
movq %rax, 0x178(%r14,%r13,8)
testq %rax, %rax
sete %al
testq %r12, %r12
setne %cl
testb %al, %cl
jne 0x5388
xorl %eax, %eax
cmpq %r12, %rax
jae 0x5383
movq 0x178(%rbx,%r13,8), %rcx
movb (%rcx,%rax), %cl
movq 0x178(%r14,%r13,8), %rdx
movb %cl, (%rdx,%rax)
incq %rax
movq 0x190(%rbx,%r13,8), %r12
jmp 0x535b
incq %r13
jmp 0x5323
movl %ebp, %r15d
jmp 0x52f8