// File: /workspace/github_cpp_makefile_star2_O1/Lut99[P]RayTracer/src/lib/LodePNG.cpp
// Function: lodepng_info_copy(LodePNGInfo*, LodePNGInfo const*)
unsigned lodepng_info_copy(LodePNGInfo* dest, const LodePNGInfo* source) {
  lodepng_info_cleanup(dest);
  *dest = *source;
  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 0x68a03
movl $0x138, %edx            # imm = 0x138
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3a3a0
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 0x682cc
movl %eax, %ebp
testl %eax, %eax
jne 0x68b99
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r14)
movq $0x0, 0x58(%r14)
cmpq $0x0, 0x48(%rbx)
je 0x68b23
xorl %r12d, %r12d
movq 0x50(%rbx), %rax
movq 0x58(%rbx), %rcx
movq (%rax,%r12,8), %rsi
movq (%rcx,%r12,8), %rdx
movq %r14, %rdi
callq 0x68551
testl %eax, %eax
cmovnel %eax, %r15d
jne 0x68b26
incq %r12
cmpq 0x48(%rbx), %r12
jne 0x68afa
xorl %r15d, %r15d
testl %r15d, %r15d
cmovnel %r15d, %ebp
jne 0x68b99
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%r14)
movups %xmm0, 0x60(%r14)
movq $0x0, 0x80(%r14)
cmpq $0x0, 0x60(%rbx)
je 0x68b8d
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 %r14, %rdi
callq 0x686e6
testl %eax, %eax
cmovnel %eax, %r15d
jne 0x68b90
incq %r12
cmpq 0x60(%rbx), %r12
jne 0x68b51
xorl %r15d, %r15d
testl %r15d, %r15d
cmovnel %r15d, %ebp
je 0x68baa
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0xe8(%rbx)
je 0x68bd6
movq 0xf0(%rbx), %rsi
movq 0xf8(%rbx), %rdx
movl 0x100(%rbx), %ecx
movq %r14, %rdi
callq 0x68911
testl %eax, %eax
cmovnel %eax, %ebp
jne 0x68b99
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 0x3a530
incq %r15
cmpq $0x3, %r15
jne 0x68bfb
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 0x3a5a0
movq %rax, 0x108(%r14,%r13,8)
testq %rax, %rax
setne %al
testq %rbp, %rbp
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x68c81
testq %r15, %r15
je 0x68c71
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 0x68c52
incq %r13
xorl %ebp, %ebp
cmpq $0x3, %r13
jne 0x68c10
jmp 0x68b99
movl $0x53, %ebp
jmp 0x68b99