	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function validation_gamma
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x406fe00000000000              ## double 255
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_4:
	.quad	0x3fe5c28f5c28f5c3              ## double 0.68000000000000005
LCPI0_5:
	.quad	0x40efffe000000000              ## double 65535
LCPI0_6:
	.quad	0x3ef0000000000000              ## double 1.52587890625E-5
LCPI0_7:
	.quad	0x41f0000000000000              ## double 4294967296
LCPI0_8:
	.quad	0x409d6c0000000000              ## double 1883
LCPI0_9:
	.quad	0x3fe00029f16b11c7              ## double 0.50002000000000002
LCPI0_10:
	.quad	0x3fe0c49ba5e353f8              ## double 0.52400000000000002
LCPI0_11:
	.quad	0x3ff9eb851eb851ec              ## double 1.6200000000000001
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_validation_gamma
	.p2align	4, 0x90
_validation_gamma:                      ## @validation_gamma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, %edi
	jl	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %r14d
	incl	%r14d
	addq	$8, %rbx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r15
	leaq	L_.str.1(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	addq	$8, %rbx
	cmpl	$2, %r14d
	jbe	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.59:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	movl	$1, %r13d
	testq	%rax, %rax
	je	LBB0_4
## %bb.60:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %eax
	jmp	LBB0_61
LBB0_5:
	testl	%r13d, %r13d
	jne	LBB0_42
LBB0_6:
	xorl	%edi, %edi
	callq	_log
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_log
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_png_log8bit
	xorl	%edi, %edi
	callq	_png_log8bit
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	cltd
	idivl	%ebx
	shll	$16, %eax
	negl	%eax
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_png_log8bit
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_fprintf
LBB0_8:
	movl	$1, %ebx
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorpd	%xmm1, %xmm1
	movq	_stderr@GOTPCREL(%rip), %r13
	leaq	L_.str.3(%rip), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	andpd	LCPI0_2(%rip), %xmm0
	maxsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-96(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm2
	incl	%ebx
	movapd	%xmm0, %xmm1
	cmpl	$256, %ebx                      ## imm = 0x100
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	movsd	%xmm2, -96(%rbp)                ## 8-byte Spill
	movapd	%xmm2, %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_log
	movl	%eax, %r15d
	movl	$2, %edi
	callq	_log
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	shll	$16, %eax
	negl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_png_log8bit
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_png_log8bit
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	LCPI0_3(%rip), %xmm1
	roundsd	$9, %xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	jne	LBB0_10
	jnp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %r12d
	movl	%ebx, %edi
	callq	_png_log8bit
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_fprintf
	jmp	LBB0_11
LBB0_12:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	movb	$1, %al
	callq	_printf
LBB0_14:
	xorl	%edi, %edi
	callq	_log
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_log
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_png_log16bit
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_png_log16bit
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.15:
	shll	$16, %ebx
	negl	%ebx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r14d, %xmm1
	subsd	%xmm0, %xmm1
	ucomisd	LCPI0_4(%rip), %xmm1
	jbe	LBB0_17
## %bb.16:
	movl	(%r13), %ebx
	xorl	%edi, %edi
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	callq	_png_log16bit
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movb	$2, %al
	callq	_fprintf
LBB0_17:
	movl	$1, %ebx
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorpd	%xmm0, %xmm0
	leaq	L_.str.5(%rip), %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	andpd	LCPI0_2(%rip), %xmm0
	maxsd	-112(%rbp), %xmm0               ## 8-byte Folded Reload
	movsd	-96(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm1
	incl	%ebx
	cmpl	$65536, %ebx                    ## imm = 0x10000
	je	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -112(%rbp)               ## 8-byte Spill
	movsd	%xmm1, -96(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	divsd	LCPI0_5(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_log
	movl	%eax, %r15d
	movl	$2, %edi
	callq	_log
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	shll	$16, %eax
	negl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_png_log16bit
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movapd	%xmm0, -80(%rbp)                ## 16-byte Spill
	movl	%ebx, %edi
	callq	_png_log16bit
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	LCPI0_3(%rip), %xmm1
	roundsd	$9, %xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	movapd	-80(%rbp), %xmm0                ## 16-byte Reload
	jne	LBB0_19
	jnp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_18 Depth=1
	ucomisd	LCPI0_4(%rip), %xmm0
	jbe	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %r15d
	movl	%ebx, %edi
	callq	_png_log16bit
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	-80(%rbp), %xmm1                ## 16-byte Reload
	movb	$2, %al
	callq	_fprintf
	movapd	-80(%rbp), %xmm0                ## 16-byte Reload
	jmp	LBB0_21
LBB0_22:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.6(%rip), %rdi
	movb	$1, %al
	callq	_printf
LBB0_24:
	xorpd	%xmm1, %xmm1
	xorl	%r12d, %r12d
	leaq	L_.str.7(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	maxsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	incl	%ebx
	decl	%r12d
	movapd	%xmm0, %xmm1
	cmpl	$-1048576, %r12d                ## imm = 0xFFF00000
	je	LBB0_28
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	mulsd	LCPI0_6(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	$2, %edi
	callq	_log
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %edi
	callq	_exp
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_7(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_png_exp
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	subsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	movapd	%xmm1, %xmm0
	andpd	LCPI0_2(%rip), %xmm0
	ucomisd	LCPI0_8(%rip), %xmm0
	jbe	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	(%r13), %r15d
	movl	%ebx, %edi
	movapd	%xmm0, -96(%rbp)                ## 16-byte Spill
	movapd	%xmm1, -112(%rbp)               ## 16-byte Spill
	callq	_png_exp
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	-112(%rbp), %xmm1               ## 16-byte Reload
	movb	$2, %al
	callq	_fprintf
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	jmp	LBB0_27
LBB0_28:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.29:
	leaq	L_.str.8(%rip), %rdi
	movb	$1, %al
	callq	_printf
LBB0_30:
	xorpd	%xmm1, %xmm1
	xorl	%r12d, %r12d
	leaq	L_.str.9(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=1
	maxsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	incl	%ebx
	decl	%r12d
	movapd	%xmm0, %xmm1
	cmpl	$-1048576, %r12d                ## imm = 0xFFF00000
	je	LBB0_34
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	mulsd	LCPI0_6(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	$2, %edi
	callq	_log
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %edi
	callq	_exp
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_png_exp8bit
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	subsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	movapd	%xmm1, %xmm0
	andpd	LCPI0_2(%rip), %xmm0
	ucomisd	LCPI0_9(%rip), %xmm0
	jbe	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	(%r13), %r15d
	movl	%ebx, %edi
	movapd	%xmm0, -96(%rbp)                ## 16-byte Spill
	movapd	%xmm1, -112(%rbp)               ## 16-byte Spill
	callq	_png_exp8bit
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	-112(%rbp), %xmm1               ## 16-byte Reload
	movb	$2, %al
	callq	_fprintf
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	jmp	LBB0_33
LBB0_34:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_36
## %bb.35:
	leaq	L_.str.10(%rip), %rdi
	movb	$1, %al
	callq	_printf
LBB0_36:
	xorpd	%xmm1, %xmm1
	xorl	%r12d, %r12d
	leaq	L_.str.11(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_37 Depth=1
	maxsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	incl	%ebx
	decl	%r12d
	movapd	%xmm0, %xmm1
	cmpl	$-1048576, %r12d                ## imm = 0xFFF00000
	je	LBB0_40
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	mulsd	LCPI0_6(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	$2, %edi
	callq	_log
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %edi
	callq	_exp
	movl	%eax, %ecx
	shll	$16, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_png_exp16bit
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	subsd	-48(%rbp), %xmm1                ## 8-byte Folded Reload
	movapd	%xmm1, %xmm0
	andpd	LCPI0_2(%rip), %xmm0
	ucomisd	LCPI0_10(%rip), %xmm0
	jbe	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movl	(%r13), %r15d
	movl	%ebx, %edi
	movapd	%xmm0, -96(%rbp)                ## 16-byte Spill
	movapd	%xmm1, -112(%rbp)               ## 16-byte Spill
	callq	_png_exp16bit
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	-112(%rbp), %xmm1               ## 16-byte Reload
	movb	$2, %al
	callq	_fprintf
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	jmp	LBB0_39
LBB0_40:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_42
## %bb.41:
	leaq	L_.str.12(%rip), %rdi
	movb	$1, %al
	callq	_printf
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_42:
	xorl	%eax, %eax
	movq	_stderr@GOTPCREL(%rip), %r13
	leaq	L_.str.14(%rip), %r15
	leaq	L_.str.16(%rip), %r12
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_43 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_56
LBB0_57:                                ##   in Loop: Header=BB0_43 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	cmpq	$9, %rax
	je	LBB0_58
LBB0_43:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_46 Depth 2
                                        ##     Child Loop BB0_52 Depth 2
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	leaq	l___const.validation_gamma.gamma(%rip), %rcx
	movsd	(%rcx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movq	_PNG_FP_1@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	addsd	LCPI0_3(%rip), %xmm1
	testl	%ebx, %ebx
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jne	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	leaq	L_.str.13(%rip), %rdi
	movb	$1, %al
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	callq	_printf
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_45:                                ##   in Loop: Header=BB0_43 Depth=1
	roundsd	$9, %xmm1, %xmm1
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorpd	%xmm2, %xmm2
	xorpd	%xmm1, %xmm1
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_46 Depth=2
	andpd	LCPI0_2(%rip), %xmm3
	maxsd	-112(%rbp), %xmm3               ## 8-byte Folded Reload
	movsd	-96(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm1
	incl	%r14d
	movapd	%xmm3, %xmm2
	cmpl	$256, %r14d                     ## imm = 0x100
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	je	LBB0_49
LBB0_46:                                ##   Parent Loop BB0_43 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	%xmm2, -112(%rbp)               ## 8-byte Spill
	movsd	%xmm1, -96(%rbp)                ## 8-byte Spill
	divsd	LCPI0_1(%rip), %xmm1
	cvttsd2si	%xmm1, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_pow
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	%xmm0, -128(%rbp)               ## 8-byte Spill
	movl	%r14d, %edi
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_png_gamma_8bit_correct
	movsd	-128(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm0, %xmm1
	movapd	%xmm0, %xmm3
	subsd	%xmm2, %xmm3
	movapd	%xmm2, %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	roundsd	$9, %xmm0, %xmm0
	ucomisd	%xmm0, %xmm1
	jne	LBB0_47
	jnp	LBB0_48
LBB0_47:                                ##   in Loop: Header=BB0_46 Depth=2
	movl	(%r13), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	%xmm3, -128(%rbp)               ## 16-byte Spill
	movaps	-128(%rbp), %xmm3               ## 16-byte Reload
	movb	$4, %al
	callq	_fprintf
	movapd	-128(%rbp), %xmm3               ## 16-byte Reload
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_43 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_43 Depth=1
	leaq	L_.str.15(%rip), %rdi
	movapd	%xmm3, %xmm1
	movb	$2, %al
	callq	_printf
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_51:                                ##   in Loop: Header=BB0_43 Depth=1
	xorl	%ebx, %ebx
	xorpd	%xmm2, %xmm2
	xorpd	%xmm1, %xmm1
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_52 Depth=2
	maxsd	-112(%rbp), %xmm4               ## 8-byte Folded Reload
	movsd	-96(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm1
	incl	%ebx
	movapd	%xmm4, %xmm2
	cmpl	$65536, %ebx                    ## imm = 0x10000
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	je	LBB0_55
LBB0_52:                                ##   Parent Loop BB0_43 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	%xmm2, -112(%rbp)               ## 8-byte Spill
	movsd	%xmm1, -96(%rbp)                ## 8-byte Spill
	divsd	LCPI0_5(%rip), %xmm1
	cvttsd2si	%xmm1, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_pow
	movl	%eax, %ecx
	shll	$16, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	%xmm0, -128(%rbp)               ## 8-byte Spill
	movl	%ebx, %edi
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_png_gamma_16bit_correct
	movsd	-128(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movapd	%xmm0, %xmm3
	subsd	%xmm2, %xmm3
	movapd	%xmm3, %xmm4
	andpd	LCPI0_2(%rip), %xmm4
	ucomisd	LCPI0_11(%rip), %xmm4
	jbe	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_52 Depth=2
	movapd	%xmm0, %xmm1
	movl	(%r13), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$4, %al
	movapd	%xmm4, -128(%rbp)               ## 16-byte Spill
	callq	_fprintf
	movapd	-128(%rbp), %xmm4               ## 16-byte Reload
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_43 Depth=1
	leaq	L_.str.17(%rip), %rdi
	movapd	%xmm4, %xmm1
	movb	$2, %al
	callq	_printf
	jmp	LBB0_57
LBB0_58:
	xorl	%eax, %eax
LBB0_61:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.validation_gamma.gamma
l___const.validation_gamma.gamma:
	.quad	0x400199999999999a              ## double 2.2000000000000002
	.quad	0x3ffccccccccccccd              ## double 1.8
	.quad	0x3ff851eb851eb852              ## double 1.52
	.quad	0x3ff7333333333333              ## double 1.45
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3fe611a7b9611a7c              ## double 0.68965517241379315
	.quad	0x3fe50d79435e50d8              ## double 0.65789473684210531
	.quad	0x3fe1c71c71c71c72              ## double 0.55555555555555558
	.quad	0x3fdd1745d1745d17              ## double 0.45454545454545453

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-s"

L_.str.1:                               ## @.str.1
	.asciz	"-g"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"unknown argument %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"8-bit log error: %d: got %u, expected %f\n"

L_.str.4:                               ## @.str.4
	.asciz	"maximum 8-bit log error = %f\n"

L_.str.5:                               ## @.str.5
	.asciz	"16-bit log error: %d: got %u, expected %f error: %f\n"

L_.str.6:                               ## @.str.6
	.asciz	"maximum 16-bit log error = %f\n"

L_.str.7:                               ## @.str.7
	.asciz	"32-bit exp error: %d: got %u, expected %f error: %f\n"

L_.str.8:                               ## @.str.8
	.asciz	"maximum 32-bit exp error = %f\n"

L_.str.9:                               ## @.str.9
	.asciz	"8-bit exp error: %d: got %u, expected %f error: %f\n"

L_.str.10:                              ## @.str.10
	.asciz	"maximum 8-bit exp error = %f\n"

L_.str.11:                              ## @.str.11
	.asciz	"16-bit exp error: %d: got %u, expected %f error: %f\n"

L_.str.12:                              ## @.str.12
	.asciz	"maximum 16-bit exp error = %f\n"

	.comm	_PNG_FP_1,8,3                   ## @PNG_FP_1
L_.str.13:                              ## @.str.13
	.asciz	"Test gamma %f\n"

L_.str.14:                              ## @.str.14
	.asciz	"8bit %d ^ %f: got %d expected %f error %f\n"

L_.str.15:                              ## @.str.15
	.asciz	"gamma %f: maximum 8-bit error %f\n"

L_.str.16:                              ## @.str.16
	.asciz	"16bit %d ^ %f: got %d expected %f error %f\n"

L_.str.17:                              ## @.str.17
	.asciz	"gamma %f: maximum 16-bit error %f\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_validation_gamma               ; -- Begin function validation_gamma
	.p2align	2
_validation_gamma:                      ; @validation_gamma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d15, d14, [sp, #48]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #64]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #80]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
Lloh0:
	adrp	x25, _stderr@GOTPAGE
Lloh1:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.1:
	mov	w26, #0
	mov	w23, #0
	add	w22, w0, #1
	add	x21, x1, #8
Lloh2:
	adrp	x19, l_.str@PAGE
Lloh3:
	add	x19, x19, l_.str@PAGEOFF
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w22, w22, #1
	add	x21, x21, #8
	cmp	w22, #2
	b.ls	LBB0_43
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_strcmp
	cbnz	x0, LBB0_62
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
	b	LBB0_3
LBB0_7:
	mov	w26, #0
LBB0_8:
	mov	w0, #0
	bl	_log
	mov	x19, x0
	mov	w0, #2
	bl	_log
	mov	x20, x0
	mov	w0, #0
	bl	_png_log8bit
	mov	w0, #0
	bl	_png_log8bit
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.9:
	sdiv	w8, w19, w20
	neg	w8, w8, lsl #16
	scvtf	d8, w8
	ldr	w19, [x25]
	mov	w0, #0
	bl	_png_log8bit
                                        ; kill: def $w0 killed $w0 def $x0
	str	d8, [sp, #16]
	stp	xzr, x0, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_10:
	mov	w19, #1
	fmov	d9, #1.00000000
	movi	d8, #0000000000000000
	mov	x22, #246290604621824
	movk	x22, #16495, lsl #48
	fmov	d10, #0.50000000
Lloh8:
	adrp	x20, l_.str.3@PAGE
Lloh9:
	add	x20, x20, l_.str.3@PAGEOFF
	fmov	d11, #1.00000000
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	fadd	d11, d11, d9
	add	w19, w19, #1
	cmp	w19, #256
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	fmov	d0, x22
	fdiv	d0, d11, d0
	fcvtzs	w0, d0
	bl	_log
	mov	x21, x0
	mov	w0, #2
	bl	_log
	sdiv	w8, w21, w0
	neg	w8, w8, lsl #16
	scvtf	d12, w8
	mov	x0, x19
	bl	_png_log8bit
	scvtf	d0, w0
	fabd	d0, d0, d12
	fcmp	d0, d8
	fcsel	d8, d0, d8, gt
	mov	x0, x19
	bl	_png_log8bit
	scvtf	d0, w0
	fadd	d1, d12, d10
	frintm	d1, d1
	fcmp	d1, d0
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w21, [x25]
	mov	x0, x19
	bl	_png_log8bit
                                        ; kill: def $w0 killed $w0 def $x0
	str	d12, [sp, #16]
	stp	x19, x0, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_fprintf
	b	LBB0_11
LBB0_14:
	cbnz	w26, LBB0_16
; %bb.15:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	fmov	d0, d8
	bl	_printf
LBB0_16:
	mov	w0, #0
	bl	_log
	mov	x19, x0
	mov	w0, #2
	bl	_log
	mov	x20, x0
	mov	w0, #0
	bl	_png_log16bit
	mov	x21, x0
	mov	w0, #0
	bl	_png_log16bit
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.17:
	sdiv	w8, w19, w20
	neg	w8, w8, lsl #16
	scvtf	d8, w8
	scvtf	d0, w21
	fsub	d9, d0, d8
	mov	x8, #62915
	movk	x8, #23592, lsl #16
	movk	x8, #49807, lsl #32
	movk	x8, #16357, lsl #48
	fmov	d0, x8
	fcmp	d9, d0
	b.le	LBB0_19
; %bb.18:
	ldr	w19, [x25]
	mov	w0, #0
	bl	_png_log16bit
                                        ; kill: def $w0 killed $w0 def $x0
	stp	d8, d9, [sp, #16]
	stp	xzr, x0, [sp]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_19:
	mov	w19, #1
	fmov	d9, #1.00000000
	movi	d8, #0000000000000000
	mov	x22, #281337537757184
	movk	x22, #16623, lsl #48
	fmov	d10, #0.50000000
	mov	x23, #62915
	movk	x23, #23592, lsl #16
	movk	x23, #49807, lsl #32
	movk	x23, #16357, lsl #48
Lloh14:
	adrp	x20, l_.str.5@PAGE
Lloh15:
	add	x20, x20, l_.str.5@PAGEOFF
	fmov	d11, #1.00000000
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	fadd	d11, d11, d9
	add	w19, w19, #1
	cmp	w19, #16, lsl #12               ; =65536
	b.eq	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	fmov	d0, x22
	fdiv	d0, d11, d0
	fcvtzs	w0, d0
	bl	_log
	mov	x21, x0
	mov	w0, #2
	bl	_log
	sdiv	w8, w21, w0
	neg	w8, w8, lsl #16
	scvtf	d12, w8
	mov	x0, x19
	bl	_png_log16bit
	scvtf	d0, w0
	fsub	d13, d0, d12
	fabd	d0, d0, d12
	fcmp	d0, d8
	fcsel	d8, d0, d8, gt
	mov	x0, x19
	bl	_png_log16bit
	scvtf	d0, w0
	fadd	d1, d12, d10
	frintm	d1, d1
	fcmp	d1, d0
	fmov	d0, x23
	fccmp	d13, d0, #4, ne
	b.le	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w21, [x25]
	mov	x0, x19
	bl	_png_log16bit
                                        ; kill: def $w0 killed $w0 def $x0
	stp	d12, d13, [sp, #16]
	stp	x19, x0, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_fprintf
	b	LBB0_20
LBB0_23:
	cbnz	w26, LBB0_25
; %bb.24:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	fmov	d0, d8
	bl	_printf
LBB0_25:
	mov	w22, #0
	mov	w19, #0
	movi	d8, #0000000000000000
	mov	x23, #4535124824762089472
	mov	x24, #4751297606875873280
	mov	x27, #118747255799808
	movk	x27, #16541, lsl #48
Lloh18:
	adrp	x20, l_.str.7@PAGE
Lloh19:
	add	x20, x20, l_.str.7@PAGEOFF
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	w19, w19, #1
	sub	w22, w22, #1
	cmn	w22, #256, lsl #12              ; =1048576
	b.eq	LBB0_29
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w22
	fmov	d1, x23
	fmul	d9, d0, d1
	mov	w0, #2
	bl	_log
	scvtf	d0, w0
	fmul	d0, d9, d0
	fcvtzs	w0, d0
	bl	_exp
	scvtf	d0, w0
	fmov	d1, x24
	fmul	d9, d0, d1
	mov	x0, x19
	bl	_png_exp
	scvtf	d0, w0
	fabd	d1, d0, d9
	fcmp	d1, d8
	fcsel	d8, d1, d8, gt
	fmov	d2, x27
	fcmp	d1, d2
	b.le	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	fsub	d10, d0, d9
	ldr	w21, [x25]
	mov	x0, x19
	bl	_png_exp
                                        ; kill: def $w0 killed $w0 def $x0
	stp	d9, d10, [sp, #16]
	stp	x19, x0, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_fprintf
	b	LBB0_26
LBB0_29:
	cbnz	w26, LBB0_31
; %bb.30:
Lloh20:
	adrp	x0, l_.str.8@PAGE
Lloh21:
	add	x0, x0, l_.str.8@PAGEOFF
	fmov	d0, d8
	bl	_printf
LBB0_31:
	mov	w22, #0
	mov	w19, #0
	movi	d8, #0000000000000000
	mov	x23, #4535124824762089472
	mov	x24, #4551
	movk	x24, #61803, lsl #16
	movk	x24, #41, lsl #32
	movk	x24, #16352, lsl #48
Lloh22:
	adrp	x20, l_.str.9@PAGE
Lloh23:
	add	x20, x20, l_.str.9@PAGEOFF
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	w19, w19, #1
	sub	w22, w22, #1
	cmn	w22, #256, lsl #12              ; =1048576
	b.eq	LBB0_35
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w22
	fmov	d1, x23
	fmul	d9, d0, d1
	mov	w0, #2
	bl	_log
	scvtf	d0, w0
	fmul	d0, d9, d0
	fcvtzs	w0, d0
	bl	_exp
	lsl	w8, w0, #8
	sub	w8, w8, w0
	scvtf	d9, w8
	mov	x0, x19
	bl	_png_exp8bit
	scvtf	d0, w0
	fabd	d1, d0, d9
	fcmp	d1, d8
	fcsel	d8, d1, d8, gt
	fmov	d2, x24
	fcmp	d1, d2
	b.le	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	fsub	d10, d0, d9
	ldr	w21, [x25]
	mov	x0, x19
	bl	_png_exp8bit
                                        ; kill: def $w0 killed $w0 def $x0
	stp	d9, d10, [sp, #16]
	stp	x19, x0, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_fprintf
	b	LBB0_32
LBB0_35:
	cbnz	w26, LBB0_37
; %bb.36:
Lloh24:
	adrp	x0, l_.str.10@PAGE
Lloh25:
	add	x0, x0, l_.str.10@PAGEOFF
	fmov	d0, d8
	bl	_printf
LBB0_37:
	mov	w22, #0
	mov	w19, #0
	movi	d8, #0000000000000000
	mov	x23, #4535124824762089472
	mov	x24, #21496
	movk	x24, #42467, lsl #16
	movk	x24, #50331, lsl #32
	movk	x24, #16352, lsl #48
Lloh26:
	adrp	x20, l_.str.11@PAGE
Lloh27:
	add	x20, x20, l_.str.11@PAGEOFF
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	w19, w19, #1
	sub	w22, w22, #1
	cmn	w22, #256, lsl #12              ; =1048576
	b.eq	LBB0_41
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w22
	fmov	d1, x23
	fmul	d9, d0, d1
	mov	w0, #2
	bl	_log
	scvtf	d0, w0
	fmul	d0, d9, d0
	fcvtzs	w0, d0
	bl	_exp
	lsl	w8, w0, #16
	sub	w8, w8, w0
	scvtf	d9, w8
	mov	x0, x19
	bl	_png_exp16bit
	scvtf	d0, w0
	fabd	d1, d0, d9
	fcmp	d1, d8
	fcsel	d8, d1, d8, gt
	fmov	d2, x24
	fcmp	d1, d2
	b.le	LBB0_38
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	fsub	d10, d0, d9
	ldr	w21, [x25]
	mov	x0, x19
	bl	_png_exp16bit
                                        ; kill: def $w0 killed $w0 def $x0
	stp	d9, d10, [sp, #16]
	stp	x19, x0, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_fprintf
	b	LBB0_38
LBB0_41:
	cbnz	w26, LBB0_44
; %bb.42:
Lloh28:
	adrp	x0, l_.str.12@PAGE
Lloh29:
	add	x0, x0, l_.str.12@PAGEOFF
	fmov	d0, d8
	bl	_printf
	b	LBB0_44
LBB0_43:
	cbz	w23, LBB0_8
LBB0_44:
	mov	x27, #0
Lloh30:
	adrp	x19, _PNG_FP_1@GOTPAGE
Lloh31:
	ldr	x19, [x19, _PNG_FP_1@GOTPAGEOFF]
	fmov	d10, #0.50000000
	mov	x21, #246290604621824
	movk	x21, #16495, lsl #48
Lloh32:
	adrp	x20, l_.str.14@PAGE
Lloh33:
	add	x20, x20, l_.str.14@PAGEOFF
	fmov	d11, #1.00000000
	mov	x23, #281337537757184
	movk	x23, #16623, lsl #48
	mov	x28, #20972
	movk	x28, #7864, lsl #16
	movk	x28, #60293, lsl #32
	movk	x28, #16377, lsl #48
Lloh34:
	adrp	x22, l_.str.16@PAGE
Lloh35:
	add	x22, x22, l_.str.16@PAGEOFF
	b	LBB0_47
LBB0_45:                                ;   in Loop: Header=BB0_47 Depth=1
	cbz	w26, LBB0_59
LBB0_46:                                ;   in Loop: Header=BB0_47 Depth=1
	add	x27, x27, #1
	cmp	x27, #9
	b.eq	LBB0_60
LBB0_47:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_51 Depth 2
                                        ;     Child Loop BB0_57 Depth 2
Lloh36:
	adrp	x8, l___const.validation_gamma.gamma@PAGE
Lloh37:
	add	x8, x8, l___const.validation_gamma.gamma@PAGEOFF
	ldr	d8, [x8, x27, lsl #3]
	ldr	d9, [x19]
	cbnz	w26, LBB0_49
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=1
Lloh38:
	adrp	x0, l_.str.13@PAGE
Lloh39:
	add	x0, x0, l_.str.13@PAGEOFF
	fmov	d0, d8
	bl	_printf
LBB0_49:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	w24, #0
	fmadd	d0, d8, d9, d10
	frintm	d9, d0
	movi	d12, #0000000000000000
	movi	d13, #0000000000000000
	b	LBB0_51
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=2
	fadd	d13, d13, d11
	add	w24, w24, #1
	cmp	w24, #256
	b.eq	LBB0_53
LBB0_51:                                ;   Parent Loop BB0_47 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	fmov	d0, x21
	fdiv	d0, d13, d0
	fcvtzu	w0, d0
	fmov	d0, d8
	bl	_pow
	lsl	w8, w0, #8
	sub	w8, w8, w0
	scvtf	d14, w8
	mov	x0, x24
	fmov	d0, d9
	bl	_png_gamma_8bit_correct
	fabd	d1, d0, d14
	fcmp	d1, d12
	fcsel	d12, d1, d12, gt
	fadd	d1, d14, d10
	frintm	d1, d1
	fcmp	d0, d1
	b.eq	LBB0_50
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=2
	fsub	d1, d0, d14
	ldr	w0, [x25]
	stp	d14, d1, [sp, #24]
	stp	d8, d0, [sp, #8]
	str	x24, [sp]
	mov	x1, x20
	bl	_fprintf
	b	LBB0_50
LBB0_53:                                ;   in Loop: Header=BB0_47 Depth=1
	cbnz	w26, LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_47 Depth=1
	str	d12, [sp]
Lloh40:
	adrp	x0, l_.str.15@PAGE
Lloh41:
	add	x0, x0, l_.str.15@PAGEOFF
	fmov	d0, d8
	bl	_printf
LBB0_55:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	w24, #0
	movi	d12, #0000000000000000
	movi	d13, #0000000000000000
	b	LBB0_57
LBB0_56:                                ;   in Loop: Header=BB0_57 Depth=2
	fadd	d13, d13, d11
	add	w24, w24, #1
	cmp	w24, #16, lsl #12               ; =65536
	b.eq	LBB0_45
LBB0_57:                                ;   Parent Loop BB0_47 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	fmov	d0, x23
	fdiv	d0, d13, d0
	fcvtzu	w0, d0
	fmov	d0, d8
	bl	_pow
	lsl	w8, w0, #16
	sub	w8, w8, w0
	scvtf	d14, w8
	mov	x0, x24
	fmov	d0, d9
	bl	_png_gamma_16bit_correct
	fabd	d1, d0, d14
	fcmp	d1, d12
	fcsel	d12, d1, d12, gt
	fmov	d2, x28
	fcmp	d1, d2
	b.le	LBB0_56
; %bb.58:                               ;   in Loop: Header=BB0_57 Depth=2
	fsub	d1, d0, d14
	ldr	w0, [x25]
	stp	d14, d1, [sp, #24]
	stp	d8, d0, [sp, #8]
	str	x24, [sp]
	mov	x1, x22
	bl	_fprintf
	b	LBB0_56
LBB0_59:                                ;   in Loop: Header=BB0_47 Depth=1
	str	d12, [sp]
Lloh42:
	adrp	x0, l_.str.17@PAGE
Lloh43:
	add	x0, x0, l_.str.17@PAGEOFF
	fmov	d0, d8
	bl	_printf
	b	LBB0_46
LBB0_60:
	mov	w0, #0
LBB0_61:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #80]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #64]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_62:
	ldr	w0, [x25]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	b	LBB0_61
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @__const.validation_gamma.gamma
l___const.validation_gamma.gamma:
	.quad	0x400199999999999a              ; double 2.2000000000000002
	.quad	0x3ffccccccccccccd              ; double 1.8
	.quad	0x3ff851eb851eb852              ; double 1.52
	.quad	0x3ff7333333333333              ; double 1.45
	.quad	0x3ff0000000000000              ; double 1
	.quad	0x3fe611a7b9611a7c              ; double 0.68965517241379315
	.quad	0x3fe50d79435e50d8              ; double 0.65789473684210531
	.quad	0x3fe1c71c71c71c72              ; double 0.55555555555555558
	.quad	0x3fdd1745d1745d17              ; double 0.45454545454545453

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-s"

l_.str.1:                               ; @.str.1
	.asciz	"-g"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"unknown argument %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"8-bit log error: %d: got %u, expected %f\n"

l_.str.4:                               ; @.str.4
	.asciz	"maximum 8-bit log error = %f\n"

l_.str.5:                               ; @.str.5
	.asciz	"16-bit log error: %d: got %u, expected %f error: %f\n"

l_.str.6:                               ; @.str.6
	.asciz	"maximum 16-bit log error = %f\n"

l_.str.7:                               ; @.str.7
	.asciz	"32-bit exp error: %d: got %u, expected %f error: %f\n"

l_.str.8:                               ; @.str.8
	.asciz	"maximum 32-bit exp error = %f\n"

l_.str.9:                               ; @.str.9
	.asciz	"8-bit exp error: %d: got %u, expected %f error: %f\n"

l_.str.10:                              ; @.str.10
	.asciz	"maximum 8-bit exp error = %f\n"

l_.str.11:                              ; @.str.11
	.asciz	"16-bit exp error: %d: got %u, expected %f error: %f\n"

l_.str.12:                              ; @.str.12
	.asciz	"maximum 16-bit exp error = %f\n"

	.comm	_PNG_FP_1,8,3                   ; @PNG_FP_1
l_.str.13:                              ; @.str.13
	.asciz	"Test gamma %f\n"

l_.str.14:                              ; @.str.14
	.asciz	"8bit %d ^ %f: got %d expected %f error %f\n"

l_.str.15:                              ; @.str.15
	.asciz	"gamma %f: maximum 8-bit error %f\n"

l_.str.16:                              ; @.str.16
	.asciz	"16bit %d ^ %f: got %d expected %f error %f\n"

l_.str.17:                              ; @.str.17
	.asciz	"gamma %f: maximum 16-bit error %f\n"

.subsections_via_symbols
