// File: /workspace/github_cpp_makefile_star2_O1/lvandeve[P]lodepng/lodepng.cpp
// Function: addChunk_mDCV(ucvector*, LodePNGInfo const*)
static unsigned addChunk_mDCV(ucvector* out, const LodePNGInfo* info) {
  unsigned char* chunk;
  /* Allow up to 65535 since they are 16-bit ints. */
  if(info->mdcv_red_x > 65535) return 118;
  if(info->mdcv_red_y > 65535) return 118;
  if(info->mdcv_green_x > 65535) return 118;
  if(info->mdcv_green_y > 65535) return 118;
  if(info->mdcv_blue_x > 65535) return 118;
  if(info->mdcv_blue_y > 65535) return 118;
  if(info->mdcv_white_x > 65535) return 118;
  if(info->mdcv_white_y > 65535) return 118;
  CERROR_TRY_RETURN(lodepng_chunk_init(&chunk, out, 24, "mDCV"));
  chunk[8 + 0] = (unsigned char)((info->mdcv_red_x) >> 8u);
  chunk[8 + 1] = (unsigned char)(info->mdcv_red_x);
  chunk[8 + 2] = (unsigned char)((info->mdcv_red_y) >> 8u);
  chunk[8 + 3] = (unsigned char)(info->mdcv_red_y);
  chunk[8 + 4] = (unsigned char)((info->mdcv_green_x) >> 8u);
  chunk[8 + 5] = (unsigned char)(info->mdcv_green_x);
  chunk[8 + 6] = (unsigned char)((info->mdcv_green_y) >> 8u);
  chunk[8 + 7] = (unsigned char)(info->mdcv_green_y);
  chunk[8 + 8] = (unsigned char)((info->mdcv_blue_x) >> 8u);
  chunk[8 + 9] = (unsigned char)(info->mdcv_blue_x);
  chunk[8 + 10] = (unsigned char)((info->mdcv_blue_y) >> 8u);
  chunk[8 + 11] = (unsigned char)(info->mdcv_blue_y);
  chunk[8 + 12] = (unsigned char)((info->mdcv_white_x) >> 8u);
  chunk[8 + 13] = (unsigned char)(info->mdcv_white_x);
  chunk[8 + 14] = (unsigned char)((info->mdcv_white_y) >> 8u);
  chunk[8 + 15] = (unsigned char)(info->mdcv_white_y);
  lodepng_set32bitInt(chunk + 8 + 16, info->mdcv_max_luminance);
  lodepng_set32bitInt(chunk + 8 + 20, info->mdcv_min_luminance);
  lodepng_chunk_generate_crc(chunk);
  return 0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movl $0x76, %eax
cmpl $0xffff, 0x12c(%rsi)    # imm = 0xFFFF
ja 0xc09d
cmpl $0xffff, 0x130(%rbx)    # imm = 0xFFFF
ja 0xc09d
cmpl $0xffff, 0x134(%rbx)    # imm = 0xFFFF
ja 0xc09d
cmpl $0xffff, 0x138(%rbx)    # imm = 0xFFFF
ja 0xc09d
cmpl $0xffff, 0x13c(%rbx)    # imm = 0xFFFF
ja 0xc09d
cmpl $0xffff, 0x140(%rbx)    # imm = 0xFFFF
ja 0xc09d
cmpl $0xffff, 0x144(%rbx)    # imm = 0xFFFF
ja 0xc09d
cmpl $0xffff, 0x148(%rbx)    # imm = 0xFFFF
ja 0xc09d
movq %rdi, %rsi
leaq 0x687c5(%rip), %rcx     # 0x74799
leaq 0x8(%rsp), %rdi
movl $0x18, %edx
callq 0xe9f0
testl %eax, %eax
jne 0xc09d
movb 0x12d(%rbx), %al
movq 0x8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb 0x12c(%rbx), %al
movb %al, 0x9(%rdi)
movb 0x131(%rbx), %al
movb %al, 0xa(%rdi)
movb 0x130(%rbx), %al
movb %al, 0xb(%rdi)
movb 0x135(%rbx), %al
movb %al, 0xc(%rdi)
movb 0x134(%rbx), %al
movb %al, 0xd(%rdi)
movb 0x139(%rbx), %al
movb %al, 0xe(%rdi)
movb 0x138(%rbx), %al
movb %al, 0xf(%rdi)
movb 0x13d(%rbx), %al
movb %al, 0x10(%rdi)
movb 0x13c(%rbx), %al
movb %al, 0x11(%rdi)
movb 0x141(%rbx), %al
movb %al, 0x12(%rdi)
movb 0x140(%rbx), %al
movb %al, 0x13(%rdi)
movb 0x145(%rbx), %al
movb %al, 0x14(%rdi)
movb 0x144(%rbx), %al
movb %al, 0x15(%rdi)
movb 0x149(%rbx), %al
movb %al, 0x16(%rdi)
movb 0x148(%rbx), %al
movb %al, 0x17(%rdi)
movl 0x14c(%rbx), %eax
bswapl %eax
movl %eax, 0x18(%rdi)
movl 0x150(%rbx), %eax
bswapl %eax
movl %eax, 0x1c(%rdi)
callq 0x4f2f
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq