	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function main
LCPI0_0:
	.quad	0x3fd999999999999a              ## double 0.40000000000000002
LCPI0_1:
	.quad	0x3fe3333333333333              ## double 0.59999999999999998
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_3:
	.quad	0x4070000000000000              ## double 256
LCPI0_4:
	.quad	0x4040000000000000              ## double 32
LCPI0_5:
	.quad	0x3fdffe5c91d14e3c              ## double 0.49990000000000001
LCPI0_6:
	.quad	0xbfdffe5c91d14e3c              ## double -0.49990000000000001
LCPI0_7:
	.quad	0x3f50624dd2f1a9fc              ## double 0.001
LCPI0_8:
	.quad	0xbf50624dd2f1a9fc              ## double -0.001
LCPI0_9:
	.quad	0x406fe00000000000              ## double 255
LCPI0_10:
	.quad	0x4059000000000000              ## double 100
LCPI0_11:
	.quad	0x40efffe000000000              ## double 65535
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ecx, %ecx
	cmpl	$2, %edi
	jl	LBB0_2
## %bb.1:
	movq	8(%rsi), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
LBB0_2:
	movl	%ecx, -108(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	_png_sRGB_table@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_invsRGB
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_3
## %bb.4:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%ebx, %esi
	movl	%r13d, %edx
	movb	$1, %al
	callq	_printf
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_8 Depth 4
                                        ##           Child Loop BB0_9 Depth 5
                                        ##             Child Loop BB0_10 Depth 6
                                        ##               Child Loop BB0_21 Depth 7
                                        ##               Child Loop BB0_29 Depth 7
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_8 Depth 4
                                        ##           Child Loop BB0_9 Depth 5
                                        ##             Child Loop BB0_10 Depth 6
                                        ##               Child Loop BB0_21 Depth 7
                                        ##               Child Loop BB0_29 Depth 7
	movl	%r13d, %ebx
	movl	%r13d, -80(%rbp)                ## 4-byte Spill
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_8 Depth 4
                                        ##           Child Loop BB0_9 Depth 5
                                        ##             Child Loop BB0_10 Depth 6
                                        ##               Child Loop BB0_21 Depth 7
                                        ##               Child Loop BB0_29 Depth 7
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	LCPI0_2(%rip), %xmm0
	movsd	%xmm0, -104(%rbp)               ## 8-byte Spill
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ## =>      This Loop Header: Depth=4
                                        ##           Child Loop BB0_9 Depth 5
                                        ##             Child Loop BB0_10 Depth 6
                                        ##               Child Loop BB0_21 Depth 7
                                        ##               Child Loop BB0_29 Depth 7
	movl	%r14d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ##         Parent Loop BB0_8 Depth=4
                                        ## =>        This Loop Header: Depth=5
                                        ##             Child Loop BB0_10 Depth 6
                                        ##               Child Loop BB0_21 Depth 7
                                        ##               Child Loop BB0_29 Depth 7
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	movsd	%xmm0, -96(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ##         Parent Loop BB0_8 Depth=4
                                        ##           Parent Loop BB0_9 Depth=5
                                        ## =>          This Loop Header: Depth=6
                                        ##               Child Loop BB0_21 Depth 7
                                        ##               Child Loop BB0_29 Depth 7
	testl	%r15d, %r15d
	sete	%cl
	testl	%ebx, %ebx
	sete	%al
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	testl	%r13d, %r13d
	sete	%dl
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=6
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=6
	orb	%cl, %dl
	orb	%dl, %al
	testb	%dl, %dl
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=6
	testb	%al, %al
	je	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=6
	je	LBB0_17
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=6
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	testb	%al, %al
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=6
	movsd	-104(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jne	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=6
	cmpl	%r15d, %ebx
	jb	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=6
	movsd	-96(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	cmpl	%r13d, %ebx
	jae	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=6
	movl	%r13d, %r14d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ##         Parent Loop BB0_8 Depth=4
                                        ##           Parent Loop BB0_9 Depth=5
                                        ##             Parent Loop BB0_10 Depth=6
                                        ## =>            This Inner Loop Header: Depth=7
	movl	%ebx, %edi
	callq	_sRGB
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	addl	$32768, %ebx                    ## imm = 0x8000
	movl	%ebx, %edi
	callq	_sRGB
	movl	%eax, %r12d
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	LCPI0_3(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_nearbyint
	cmpl	$65536, %eax                    ## imm = 0x10000
	jae	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=7
	movl	%r12d, %ecx
	shll	$8, %ecx
	subl	%r12d, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movq	_png_sRGB_base@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r13,4)
	subsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	LCPI0_4(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_nearbyint
	cmpl	$256, %eax                      ## imm = 0x100
	jae	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_21 Depth=7
	movq	_png_sRGB_delta@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	cmpq	$512, %r13                      ## imm = 0x200
	jne	LBB0_21
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=6
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ##         Parent Loop BB0_8 Depth=4
                                        ##           Parent Loop BB0_9 Depth=5
                                        ##             Parent Loop BB0_10 Depth=6
                                        ## =>            This Inner Loop Header: Depth=7
	movl	%ebx, %edi
	callq	_sRGB
	movl	%eax, %edi
	shll	$8, %edi
	subl	%eax, %edi
	callq	_nearbyint
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_PNG_sRGB_FROM_LINEAR
	xorl	%ecx, %ecx
	cmpl	%r12d, %eax
	setne	%cl
	addl	%ecx, %r13d
	addl	$255, %ebx
	cmpl	$16711680, %ebx                 ## imm = 0xFF0000
	jne	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_10 Depth=6
	testl	%r14d, %r14d
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_10
## %bb.31:                              ##   in Loop: Header=BB0_9 Depth=5
	testl	%r15d, %r15d
	je	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_9 Depth=5
	testl	%ebx, %ebx
	je	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_9 Depth=5
	cmpl	%ebx, %r13d
	jb	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_9 Depth=5
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_9 Depth=5
	cmpl	%r14d, %r13d
	jae	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_9 Depth=5
	leaq	L_.str.6(%rip), %rdi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%r14d, %esi
	movl	%r13d, %edx
	movb	$1, %al
	callq	_printf
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_8 Depth=4
	movl	%r13d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_7 Depth=3
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_43
## %bb.41:                              ##   in Loop: Header=BB0_7 Depth=3
	cmpl	%r15d, %r13d
	jae	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_7 Depth=3
	leaq	L_.str.7(%rip), %rdi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%r15d, %esi
	movl	%r13d, %edx
	movb	$1, %al
	callq	_printf
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movl	%r13d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_6 Depth=2
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_printf
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jmp	LBB0_6
LBB0_22:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_23
LBB0_26:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_23:
	movl	%r13d, %edx
	movl	%eax, %ecx
	movl	%eax, %r8d
LBB0_24:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_43:
	leaq	L_.str.8(%rip), %rdi
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%ebx, %esi
	movb	$1, %al
	callq	_printf
	xorl	%r14d, %r14d
	xorl	%esi, %esi
                                        ## implicit-def: $eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_71:                                ##   in Loop: Header=BB0_44 Depth=1
	leaq	L_.str.10(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_printf
	addq	$16, %rsp
LBB0_72:                                ##   in Loop: Header=BB0_44 Depth=1
	addl	$32640, %r14d                   ## imm = 0x7F80
	cmpq	$65408, -104(%rbp)              ## 8-byte Folded Reload
                                        ## imm = 0xFF80
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	jae	LBB0_73
LBB0_44:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_45 Depth 2
                                        ##       Child Loop BB0_46 Depth 3
	movq	_png_sRGB_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rsi, %rcx
	shrq	$7, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdx
	shrq	$5, %rdx
	movl	(%rax,%rdx), %edi
	movq	_png_sRGB_delta@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rdx), %ebx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	leaq	128(%rsi), %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movl	%edi, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, -116(%rbp)                ## 4-byte Spill
                                        ## kill: def $edi killed $edi def $rdi
	movl	%ebx, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -112(%rbp)                ## 4-byte Spill
	movl	%ebx, %esi
	xorl	%edx, %edx
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_45 Depth=2
	incl	%edi
	movl	%ebx, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_68:                                ##   in Loop: Header=BB0_45 Depth=2
	movq	_png_sRGB_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_png_sRGB_delta@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edx
LBB0_45:                                ##   Parent Loop BB0_44 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_46 Depth 3
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, (%rax,%rdx,4)
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, (%rcx,%rdx,4)
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_44 Depth=1
                                        ##     Parent Loop BB0_45 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%r14,%r13), %r12d
	movl	%r12d, %edi
	callq	_sRGB
	movl	%eax, %edi
	shll	$8, %edi
	subl	%eax, %edi
	callq	_nearbyint
	movl	%eax, %r15d
	movl	%r12d, %edi
	callq	_PNG_sRGB_FROM_LINEAR
	xorl	%ecx, %ecx
	cmpl	%r15d, %eax
	setne	%cl
	addl	%ecx, %ebx
	addl	$255, %r13d
	cmpl	$32640, %r13d                   ## imm = 0x7F80
	jne	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_45 Depth=2
	testl	%ebx, %ebx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_69
## %bb.48:                              ##   in Loop: Header=BB0_45 Depth=2
	testl	%r10d, %r10d
	je	LBB0_49
## %bb.50:                              ##   in Loop: Header=BB0_45 Depth=2
	cmpl	%r10d, %ebx
	jae	LBB0_60
## %bb.51:                              ##   in Loop: Header=BB0_45 Depth=2
	cmpl	-56(%rbp), %edi                 ## 4-byte Folded Reload
	jle	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_45 Depth=2
	movl	%edi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	1(%rdi), %eax
	movl	%eax, %edi
	jmp	LBB0_68
	.p2align	4, 0x90
LBB0_60:                                ##   in Loop: Header=BB0_45 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, %edi
	jle	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_45 Depth=2
	leal	-1(%rax), %edi
	jmp	LBB0_67
LBB0_53:                                ##   in Loop: Header=BB0_45 Depth=2
	jge	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_45 Depth=2
	movl	%edi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%rdi), %eax
	movl	%eax, %edi
	jmp	LBB0_68
LBB0_62:                                ##   in Loop: Header=BB0_45 Depth=2
	jge	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_45 Depth=2
	incl	%esi
	movl	%eax, %edi
	jmp	LBB0_67
LBB0_55:                                ##   in Loop: Header=BB0_45 Depth=2
	cmpl	-64(%rbp), %esi                 ## 4-byte Folded Reload
	jle	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_45 Depth=2
	movl	%esi, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	1(%rsi), %eax
	movl	%eax, %esi
	jmp	LBB0_68
LBB0_64:                                ##   in Loop: Header=BB0_45 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, %esi
	jle	LBB0_66
## %bb.65:                              ##   in Loop: Header=BB0_45 Depth=2
	leal	-1(%rax), %esi
	jmp	LBB0_67
LBB0_57:                                ##   in Loop: Header=BB0_45 Depth=2
	jge	LBB0_59
## %bb.58:                              ##   in Loop: Header=BB0_45 Depth=2
	movl	%esi, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%rsi), %eax
	movl	%eax, %esi
	jmp	LBB0_68
LBB0_66:                                ##   in Loop: Header=BB0_45 Depth=2
	jl	LBB0_69
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_45 Depth=2
	movl	%r10d, %ebx
	jmp	LBB0_68
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	_png_sRGB_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%r8d, (%rax,%rcx,4)
	movq	_png_sRGB_delta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	%r9d, (%rax,%rcx,4)
	movl	-116(%rbp), %edx                ## 4-byte Reload
	cmpl	%edx, %r8d
	movl	-112(%rbp), %ecx                ## 4-byte Reload
	jne	LBB0_71
## %bb.70:                              ##   in Loop: Header=BB0_44 Depth=1
	cmpl	%ecx, %r9d
	je	LBB0_72
	jmp	LBB0_71
LBB0_73:
	movsd	LCPI0_5(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movsd	LCPI0_6(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	L_.str.11(%rip), %r15
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_74
	.p2align	4, 0x90
LBB0_79:                                ##   in Loop: Header=BB0_74 Depth=1
	movsd	%xmm1, -88(%rbp)                ## 8-byte Spill
LBB0_82:                                ##   in Loop: Header=BB0_74 Depth=1
	incl	%ebx
	movq	_max_input@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	ja	LBB0_83
LBB0_74:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_sRGB
	movl	%eax, %edi
	shll	$8, %edi
	subl	%eax, %edi
	callq	_nearbyint
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_PNG_sRGB_FROM_LINEAR
	cmpl	%r13d, %eax
	je	LBB0_82
## %bb.75:                              ##   in Loop: Header=BB0_74 Depth=1
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_sRGB
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	subl	%r12d, %ecx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rcx, %xmm1
	movsd	-88(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_7(%rip), %xmm0
	ucomisd	%xmm0, %xmm1
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_8(%rip), %xmm0
	ja	LBB0_77
## %bb.76:                              ##   in Loop: Header=BB0_74 Depth=1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_78
LBB0_77:                                ##   in Loop: Header=BB0_74 Depth=1
	movq	_png_sRGB_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	shrl	$15, %ecx
	movl	(%rax,%rcx,4), %r8d
	movq	_png_sRGB_delta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %r9d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movapd	%xmm1, %xmm0
	movb	$1, %al
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	callq	_printf
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
LBB0_78:                                ##   in Loop: Header=BB0_74 Depth=1
	incl	-56(%rbp)                       ## 4-byte Folded Spill
	ucomisd	-88(%rbp), %xmm1                ## 8-byte Folded Reload
	ja	LBB0_79
## %bb.80:                              ##   in Loop: Header=BB0_74 Depth=1
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_82
## %bb.81:                              ##   in Loop: Header=BB0_74 Depth=1
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	jmp	LBB0_82
LBB0_83:
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movl	$0, -96(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_84
	.p2align	4, 0x90
LBB0_91:                                ##   in Loop: Header=BB0_84 Depth=1
	incl	%r13d
	addl	$255, %ebx
	cmpl	$65536, %r13d                   ## imm = 0x10000
	je	LBB0_92
LBB0_84:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_sRGB
	movl	%eax, %edi
	shll	$8, %edi
	subl	%eax, %edi
	callq	_nearbyint
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_PNG_sRGB_FROM_LINEAR
	movl	%eax, %r15d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	subl	%r14d, %r15d
	je	LBB0_91
## %bb.85:                              ##   in Loop: Header=BB0_84 Depth=1
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_sRGB
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	subl	%r12d, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	ucomisd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_87
## %bb.86:                              ##   in Loop: Header=BB0_84 Depth=1
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	jmp	LBB0_89
	.p2align	4, 0x90
LBB0_87:                                ##   in Loop: Header=BB0_84 Depth=1
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_89
## %bb.88:                              ##   in Loop: Header=BB0_84 Depth=1
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
LBB0_89:                                ##   in Loop: Header=BB0_84 Depth=1
	incl	-96(%rbp)                       ## 4-byte Folded Spill
	movl	%r15d, %eax
	negl	%eax
	cmovsl	%r15d, %eax
	cmpl	$2, %eax
	jb	LBB0_91
## %bb.90:                              ##   in Loop: Header=BB0_84 Depth=1
	movq	_png_sRGB_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	shrl	$15, %ecx
	movl	(%rax,%rcx,4), %r8d
	movq	_png_sRGB_delta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %r9d
	leaq	L_.str.12(%rip), %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movb	$1, %al
	callq	_printf
	jmp	LBB0_91
LBB0_92:
	xorl	%r12d, %r12d
	movq	_png_sRGB_table@GOTPCREL(%rip), %r15
	jmp	LBB0_93
	.p2align	4, 0x90
LBB0_96:                                ##   in Loop: Header=BB0_93 Depth=1
	incq	%r12
	cmpq	$256, %r12                      ## imm = 0x100
	je	LBB0_97
LBB0_93:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, %ebx
	shll	$8, %ebx
	subl	%eax, %ebx
	movl	%ebx, %edi
	callq	_sRGB
	movl	%eax, %edi
	shll	$8, %edi
	subl	%eax, %edi
	callq	_nearbyint
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_PNG_sRGB_FROM_LINEAR
	movl	%eax, %ebx
	movl	%r13d, %eax
	cmpq	%rax, %r12
	jne	LBB0_121
## %bb.94:                              ##   in Loop: Header=BB0_93 Depth=1
	movl	%ebx, %eax
	cmpq	%rax, %r12
	je	LBB0_96
## %bb.95:                              ##   in Loop: Header=BB0_93 Depth=1
	movl	%r12d, %edi
	callq	_finvsRGB
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movapd	%xmm0, %xmm1
	mulsd	LCPI0_9(%rip), %xmm1
	cvttsd2si	%xmm1, %edi
	callq	_fsRGB
	movapd	%xmm0, %xmm1
	leaq	L_.str.14(%rip), %rdi
	movl	%r12d, %esi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%ebx, %edx
	movb	$2, %al
	callq	_printf
	jmp	LBB0_96
LBB0_97:
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
	cvtsi2sd	%rax, %xmm2
	mulsd	LCPI0_10(%rip), %xmm2
	movq	_max_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	%xmm0, %xmm2
	leaq	L_.str.15(%rip), %rdi
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-88(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movb	$3, %al
	callq	_printf
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
	xorps	%xmm2, %xmm2
	cvtsi2sd	%rax, %xmm2
	mulsd	LCPI0_10(%rip), %xmm2
	divsd	LCPI0_11(%rip), %xmm2
	leaq	L_.str.16(%rip), %rdi
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movb	$3, %al
	callq	_printf
	cmpl	$0, -108(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_120
## %bb.98:
	leaq	L_.str.17(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.18(%rip), %r12
	leaq	L_.str.19(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_99
	.p2align	4, 0x90
LBB0_104:                               ##   in Loop: Header=BB0_99 Depth=1
	cmpl	$254, %ebx
	jae	LBB0_105
LBB0_99:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_100 Depth 2
	movl	%r15d, %eax
	decl	%r15d
	movl	%r15d, %ebx
	movq	%rax, %r15
	.p2align	4, 0x90
LBB0_100:                               ##   Parent Loop BB0_99 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %r13
	movq	_png_sRGB_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%r15
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	incl	%ebx
	cmpq	$253, %r13
	ja	LBB0_102
## %bb.101:                             ##   in Loop: Header=BB0_100 Depth=2
	movl	%r15d, %eax
	andl	$7, %eax
	testq	%rax, %rax
	jne	LBB0_100
LBB0_102:                               ##   in Loop: Header=BB0_99 Depth=1
	cmpq	$253, %r13
	ja	LBB0_104
## %bb.103:                             ##   in Loop: Header=BB0_99 Depth=1
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_104
LBB0_105:
	movq	_png_sRGB_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.20(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.21(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.18(%rip), %r12
	leaq	L_.str.19(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_106
	.p2align	4, 0x90
LBB0_111:                               ##   in Loop: Header=BB0_106 Depth=1
	cmpl	$510, %ebx                      ## imm = 0x1FE
	jae	LBB0_112
LBB0_106:                               ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_107 Depth 2
	movl	%r15d, %eax
	decl	%r15d
	movl	%r15d, %ebx
	movq	%rax, %r15
	.p2align	4, 0x90
LBB0_107:                               ##   Parent Loop BB0_106 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %r13
	movq	_png_sRGB_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%r15
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	incl	%ebx
	cmpq	$509, %r13                      ## imm = 0x1FD
	ja	LBB0_109
## %bb.108:                             ##   in Loop: Header=BB0_107 Depth=2
	movl	%r15d, %eax
	andl	$7, %eax
	testq	%rax, %rax
	jne	LBB0_107
LBB0_109:                               ##   in Loop: Header=BB0_106 Depth=1
	cmpq	$509, %r13                      ## imm = 0x1FD
	ja	LBB0_111
## %bb.110:                             ##   in Loop: Header=BB0_106 Depth=1
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_111
LBB0_112:
	movq	_png_sRGB_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.20(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.22(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.18(%rip), %r14
	leaq	L_.str.19(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_113
	.p2align	4, 0x90
LBB0_118:                               ##   in Loop: Header=BB0_113 Depth=1
	cmpl	$510, %r13d                     ## imm = 0x1FE
	jae	LBB0_119
LBB0_113:                               ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_114 Depth 2
	movl	%r12d, %eax
	decl	%r12d
	movl	%r12d, %r13d
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_114:                               ##   Parent Loop BB0_113 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rbx
	movq	_png_sRGB_delta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%r12
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	incl	%r13d
	cmpq	$509, %rbx                      ## imm = 0x1FD
	ja	LBB0_116
## %bb.115:                             ##   in Loop: Header=BB0_114 Depth=2
	movl	%r12d, %eax
	andl	$15, %eax
	testq	%rax, %rax
	jne	LBB0_114
LBB0_116:                               ##   in Loop: Header=BB0_113 Depth=1
	cmpq	$509, %rbx                      ## imm = 0x1FD
	ja	LBB0_118
## %bb.117:                             ##   in Loop: Header=BB0_113 Depth=1
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_118
LBB0_119:
	movq	_png_sRGB_delta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.20(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_120:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	jmp	LBB0_24
LBB0_59:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_121:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--test"

	.comm	_png_sRGB_table,8,3             ## @png_sRGB_table
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"not reached: %u .. %u .. %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"table[%d][0]: overflow %08x (%d)\n"

	.comm	_png_sRGB_base,8,3              ## @png_sRGB_base
L_.str.3:                               ## @.str.3
	.asciz	"table[%d][1]: overflow %08x (%d)\n"

	.comm	_png_sRGB_delta,8,3             ## @png_sRGB_delta
L_.str.4:                               ## @.str.4
	.asciz	"/* initial error counts: %u .. %u .. %u */\n"

L_.str.5:                               ## @.str.5
	.asciz	"/* adjust (mid ): %f: %u -> %u */\n"

L_.str.6:                               ## @.str.6
	.asciz	"/* adjust (low ): %f: %u -> %u */\n"

L_.str.7:                               ## @.str.7
	.asciz	"/* adjust (high): %f: %u -> %u */\n"

L_.str.8:                               ## @.str.8
	.asciz	"/* adjust: %f: %u */\n"

L_.str.9:                               ## @.str.9
	.asciz	"makesRGB: impossible\n"

L_.str.10:                              ## @.str.10
	.asciz	"/* table[%u]={%u,%u} -> {%u,%u} %u -> %u errors */\n"

	.comm	_max_input,4,2                  ## @max_input
L_.str.11:                              ## @.str.11
	.asciz	"/* 0x%08x: exact: %3d, got: %3d [tables: %08x, %08x] (%f) */\n"

L_.str.12:                              ## @.str.12
	.asciz	"/* 0x%04x: exact: %3d, got: %3d [tables: %08x, %08x] (%f) */\n"

L_.str.13:                              ## @.str.13
	.asciz	"8-bit rounding error: %d -> %d\n"

L_.str.14:                              ## @.str.14
	.asciz	"/* 8-bit roundtrip error: %d -> %f -> %d(%f) */\n"

L_.str.15:                              ## @.str.15
	.asciz	"/* error: %g - %g, %u (%g%%) of readings inexact */\n"

L_.str.16:                              ## @.str.16
	.asciz	"/* 16-bit error: %g - %g, %u (%g%%) of readings inexact */\n"

L_.str.17:                              ## @.str.17
	.asciz	"PNG_CONST png_uint_16 png_sRGB_table[256] =\n{\n   "

L_.str.18:                              ## @.str.18
	.asciz	"%d,"

L_.str.19:                              ## @.str.19
	.asciz	"\n   "

L_.str.20:                              ## @.str.20
	.asciz	"%d\n};\n\n"

L_.str.21:                              ## @.str.21
	.asciz	"PNG_CONST png_uint_16 png_sRGB_base[512] =\n{\n   "

L_.str.22:                              ## @.str.22
	.asciz	"PNG_CONST png_byte png_sRGB_delta[512] =\n{\n   "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	d15, d14, [sp, #144]            ; 16-byte Folded Spill
	stp	d13, d12, [sp, #160]            ; 16-byte Folded Spill
	stp	d11, d10, [sp, #176]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #192]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x1, [x1, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	str	wzr, [sp, #68]                  ; 4-byte Folded Spill
LBB0_3:
	mov	x19, #0
Lloh2:
	adrp	x20, _png_sRGB_table@GOTPAGE
Lloh3:
	ldr	x20, [x20, _png_sRGB_table@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_invsRGB
	ldr	x8, [x20]
	str	w0, [x8, x19, lsl #2]
	add	x19, x19, #1
	cmp	x19, #256
	b.ne	LBB0_4
; %bb.5:
	mov	w27, #0
	mov	w22, #0
	mov	w28, #0
	fmov	d8, #0.50000000
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16345, lsl #48
	fmov	d9, x8
	mov	x8, #3689348814741910323
	movk	x8, #16355, lsl #48
Lloh4:
	adrp	x26, _png_sRGB_base@GOTPAGE
Lloh5:
	ldr	x26, [x26, _png_sRGB_base@GOTPAGEOFF]
Lloh6:
	adrp	x25, _png_sRGB_delta@GOTPAGE
Lloh7:
	ldr	x25, [x25, _png_sRGB_delta@GOTPAGEOFF]
Lloh8:
	adrp	x19, l_.str.4@PAGE
Lloh9:
	add	x19, x19, l_.str.4@PAGEOFF
	fmov	d11, x8
Lloh10:
	adrp	x21, l_.str.6@PAGE
Lloh11:
	add	x21, x21, l_.str.6@PAGEOFF
	fmov	d10, #0.50000000
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x22
	str	x8, [sp, #16]
	mov	x8, x27
	mov	x9, x28
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_printf
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_10 Depth 4
                                        ;           Child Loop BB0_11 Depth 5
                                        ;             Child Loop BB0_15 Depth 6
                                        ;             Child Loop BB0_19 Depth 6
	mov	x20, x27
	mov	x27, x22
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_10 Depth 4
                                        ;           Child Loop BB0_11 Depth 5
                                        ;             Child Loop BB0_15 Depth 6
                                        ;             Child Loop BB0_19 Depth 6
	fadd	d0, d10, d11
	fmul	d12, d0, d8
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_10 Depth 4
                                        ;           Child Loop BB0_11 Depth 5
                                        ;             Child Loop BB0_15 Depth 6
                                        ;             Child Loop BB0_19 Depth 6
	mov	x22, x27
	mov	x27, x28
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Loop Header: Depth=4
                                        ;           Child Loop BB0_11 Depth 5
                                        ;             Child Loop BB0_15 Depth 6
                                        ;             Child Loop BB0_19 Depth 6
	fadd	d0, d10, d9
	fmul	d14, d0, d8
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ;         Parent Loop BB0_10 Depth=4
                                        ; =>        This Loop Header: Depth=5
                                        ;             Child Loop BB0_15 Depth 6
                                        ;             Child Loop BB0_19 Depth 6
	mov	x28, x27
	cmp	w22, #0
	cset	w8, eq
	cmp	w20, #0
	cset	w9, eq
	cmp	w27, #0
	cset	w10, eq
	orr	w8, w10, w8
	fcsel	d0, d9, d11, eq
	orr	w9, w8, w9
	cmp	w8, #0
	fcsel	d0, d0, d10, ne
	cmp	w9, #0
	fcsel	d13, d0, d12, ne
	tbnz	w9, #0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=5
	cmp	w20, w22
	b.lo	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=5
	fmov	d13, d14
	cmp	w20, w28
	b.hs	LBB0_139
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=5
	mov	w23, #0
	mov	x27, #0
LBB0_15:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ;         Parent Loop BB0_10 Depth=4
                                        ;           Parent Loop BB0_11 Depth=5
                                        ; =>          This Inner Loop Header: Depth=6
	mov	x0, x23
	bl	_sRGB
	lsl	w8, w0, #8
	sub	w8, w8, w0
	scvtf	d15, w8
	add	w0, w23, #8, lsl #12            ; =32768
	bl	_sRGB
	mov	x24, x0
	fadd	d0, d13, d15
	fcvtzs	w0, d0, #8
	bl	_nearbyint
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #16, lsl #12                ; =65536
	b.hs	LBB0_31
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=6
	lsl	w8, w24, #8
	sub	w8, w8, w24
	scvtf	d0, w8
	ldr	x8, [x26]
	str	w0, [x8, x27, lsl #2]
	fsub	d0, d0, d15
	fcvtzs	w0, d0, #5
	bl	_nearbyint
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #256
	b.hs	LBB0_32
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=6
	ldr	x8, [x25]
	str	w0, [x8, x27, lsl #2]
	add	x8, x27, #1
	add	w23, w23, #8, lsl #12           ; =32768
	mov	x27, x8
	cmp	x8, #512
	b.ne	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=5
	mov	w23, #0
	mov	w27, #0
LBB0_19:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ;         Parent Loop BB0_10 Depth=4
                                        ;           Parent Loop BB0_11 Depth=5
                                        ; =>          This Inner Loop Header: Depth=6
	mov	x0, x23
	bl	_sRGB
	lsl	w8, w0, #8
	sub	w0, w8, w0
	bl	_nearbyint
	mov	x24, x0
	mov	x0, x23
	bl	_PNG_sRGB_FROM_LINEAR
	cmp	w0, w24
	cinc	w27, w27, ne
	add	w23, w23, #255
	cmp	w23, #4080, lsl #12             ; =16711680
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=5
	cbz	w28, LBB0_11
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=4
	cbz	w22, LBB0_9
; %bb.22:                               ;   in Loop: Header=BB0_10 Depth=4
	cbz	w20, LBB0_6
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=4
	cmp	w27, w20
	b.lo	LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_10 Depth=4
	fcmp	d13, d10
	b.pl	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_10 Depth=4
	cmp	w27, w28
	b.hs	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_10 Depth=4
	stp	x28, x27, [sp, #8]
	str	d13, [sp]
	mov	x0, x21
	bl	_printf
	fmov	d9, d13
	b	LBB0_10
LBB0_27:                                ;   in Loop: Header=BB0_8 Depth=2
	fcmp	d13, d10
	b.le	LBB0_35
; %bb.28:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w27, w22
	b.hs	LBB0_35
; %bb.29:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x8, x27
	stp	x22, x8, [sp, #8]
	str	d13, [sp]
Lloh12:
	adrp	x0, l_.str.7@PAGE
Lloh13:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	fmov	d11, d13
	b	LBB0_8
LBB0_30:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x27
	stp	x20, x8, [sp, #8]
	str	d13, [sp]
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	fmov	d10, d13
	b	LBB0_7
LBB0_31:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	x0, x0, [sp, #8]
	str	x27, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_33
LBB0_32:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	x0, x0, [sp, #8]
	str	x27, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_33:
	mov	x0, x8
LBB0_34:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_35:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp, #8]
	str	d10, [sp]
Lloh26:
	adrp	x0, l_.str.8@PAGE
Lloh27:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	str	wzr, [sp, #124]                 ; 4-byte Folded Spill
	mov	x11, #0
                                        ; implicit-def: $w8
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
	b	LBB0_38
LBB0_36:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	x11, x8
	ldr	x8, [sp, #104]                  ; 8-byte Folded Reload
	stp	x8, x19, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	ldr	x8, [sp, #128]                  ; 8-byte Folded Reload
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.10@PAGE
Lloh29:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	ldr	w8, [sp, #124]                  ; 4-byte Folded Reload
	mov	w9, #32640
	add	w8, w8, w9
	str	w8, [sp, #124]                  ; 4-byte Folded Spill
	ldr	x8, [sp, #128]                  ; 8-byte Folded Reload
	cmp	x8, #511
	ldr	x11, [sp, #88]                  ; 8-byte Folded Reload
	b.hs	LBB0_64
LBB0_38:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_41 Depth 2
                                        ;       Child Loop BB0_42 Depth 3
	mov	w19, #0
	ldr	x8, [x26]
	lsr	x10, x11, #5
	ldr	w12, [x8, x10]
	ldr	x9, [x25]
	ldr	w13, [x9, x10]
	lsr	x10, x11, #7
	str	x10, [sp, #128]                 ; 8-byte Folded Spill
	add	x11, x11, #128
	stp	x12, x11, [sp, #80]             ; 16-byte Folded Spill
	mov	x10, x12
	str	x10, [sp, #112]                 ; 8-byte Folded Spill
	mov	x28, x12
	mov	x10, x13
	str	x10, [sp, #96]                  ; 8-byte Folded Spill
	str	x13, [sp, #72]                  ; 8-byte Folded Spill
	mov	x23, x13
	b	LBB0_41
LBB0_39:                                ;   in Loop: Header=BB0_41 Depth=2
	add	w28, w28, #1
	mov	x8, x27
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=2
	ldr	x8, [x26]
	ldr	x9, [x25]
	mov	x19, x27
LBB0_41:                                ;   Parent Loop BB0_38 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_42 Depth 3
	mov	w27, #0
	ldr	x10, [sp, #128]                 ; 8-byte Folded Reload
	lsl	x22, x10, #2
	str	w28, [x8, x22]
	str	w23, [x9, x22]
	mov	w24, #128
	ldr	w20, [sp, #124]                 ; 4-byte Folded Reload
LBB0_42:                                ;   Parent Loop BB0_38 Depth=1
                                        ;     Parent Loop BB0_41 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x20
	bl	_sRGB
	lsl	w8, w0, #8
	sub	w0, w8, w0
	bl	_nearbyint
	mov	x21, x0
	mov	x0, x20
	bl	_PNG_sRGB_FROM_LINEAR
	cmp	w0, w21
	cinc	w27, w27, ne
	add	w20, w20, #255
	subs	w24, w24, #1
	b.ne	LBB0_42
; %bb.43:                               ;   in Loop: Header=BB0_41 Depth=2
	cbz	w27, LBB0_62
; %bb.44:                               ;   in Loop: Header=BB0_41 Depth=2
	cbz	w19, LBB0_39
; %bb.45:                               ;   in Loop: Header=BB0_41 Depth=2
	cmp	w27, w19
	b.hs	LBB0_48
; %bb.46:                               ;   in Loop: Header=BB0_41 Depth=2
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	cmp	w28, w8
	b.le	LBB0_50
; %bb.47:                               ;   in Loop: Header=BB0_41 Depth=2
	mov	x8, x28
	str	x8, [sp, #112]                  ; 8-byte Folded Spill
	add	w28, w28, #1
	b	LBB0_40
LBB0_48:                                ;   in Loop: Header=BB0_41 Depth=2
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	cmp	w28, w8
	b.le	LBB0_52
; %bb.49:                               ;   in Loop: Header=BB0_41 Depth=2
	sub	w28, w8, #1
	b	LBB0_61
LBB0_50:                                ;   in Loop: Header=BB0_41 Depth=2
	b.ge	LBB0_54
; %bb.51:                               ;   in Loop: Header=BB0_41 Depth=2
	mov	x8, x28
	str	x8, [sp, #112]                  ; 8-byte Folded Spill
	sub	w28, w28, #1
	b	LBB0_40
LBB0_52:                                ;   in Loop: Header=BB0_41 Depth=2
	b.ge	LBB0_56
; %bb.53:                               ;   in Loop: Header=BB0_41 Depth=2
	add	w23, w23, #1
	mov	x28, x8
	b	LBB0_61
LBB0_54:                                ;   in Loop: Header=BB0_41 Depth=2
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	w23, w8
	b.le	LBB0_58
; %bb.55:                               ;   in Loop: Header=BB0_41 Depth=2
	mov	x8, x23
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	add	w23, w23, #1
	b	LBB0_40
LBB0_56:                                ;   in Loop: Header=BB0_41 Depth=2
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	w23, w8
	b.le	LBB0_60
; %bb.57:                               ;   in Loop: Header=BB0_41 Depth=2
	sub	w23, w8, #1
	b	LBB0_61
LBB0_58:                                ;   in Loop: Header=BB0_41 Depth=2
	b.ge	LBB0_140
; %bb.59:                               ;   in Loop: Header=BB0_41 Depth=2
	mov	x8, x23
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	sub	w23, w23, #1
	b	LBB0_40
LBB0_60:                                ;   in Loop: Header=BB0_41 Depth=2
	b.lt	LBB0_62
LBB0_61:                                ;   in Loop: Header=BB0_41 Depth=2
	mov	x27, x19
	b	LBB0_40
LBB0_62:                                ;   in Loop: Header=BB0_38 Depth=1
	ldr	x8, [x26]
	ldr	x9, [sp, #112]                  ; 8-byte Folded Reload
	str	w9, [x8, x22]
	ldr	x8, [x25]
	ldr	x12, [sp, #96]                  ; 8-byte Folded Reload
	str	w12, [x8, x22]
	mov	x8, x9
	ldp	x10, x9, [sp, #72]              ; 16-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_36
; %bb.63:                               ;   in Loop: Header=BB0_38 Depth=1
	cmp	w12, w10
	b.eq	LBB0_37
	b	LBB0_36
LBB0_64:
	mov	w19, #0
	mov	w23, #0
	mov	x8, #20028
	movk	x8, #37329, lsl #16
	movk	x8, #65116, lsl #32
	movk	x8, #16351, lsl #48
	fmov	d9, x8
	mov	x8, #20028
	movk	x8, #37329, lsl #16
	movk	x8, #65116, lsl #32
	movk	x8, #49119, lsl #48
	fmov	d10, x8
Lloh30:
	adrp	x24, _max_input@GOTPAGE
Lloh31:
	ldr	x24, [x24, _max_input@GOTPAGEOFF]
	mov	x27, #43516
	movk	x27, #54001, lsl #16
	movk	x27, #25165, lsl #32
	movk	x27, #16208, lsl #48
	mov	x28, #43516
	movk	x28, #54001, lsl #16
	movk	x28, #25165, lsl #32
	movk	x28, #48976, lsl #48
Lloh32:
	adrp	x20, l_.str.11@PAGE
Lloh33:
	add	x20, x20, l_.str.11@PAGEOFF
	b	LBB0_67
LBB0_65:                                ;   in Loop: Header=BB0_67 Depth=1
	fmov	d9, d8
LBB0_66:                                ;   in Loop: Header=BB0_67 Depth=1
	add	w19, w19, #1
	ldr	w8, [x24]
	cmp	w19, w8
	b.hi	LBB0_73
LBB0_67:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_sRGB
	lsl	w8, w0, #8
	sub	w0, w8, w0
	bl	_nearbyint
	mov	x21, x0
	mov	x0, x19
	bl	_PNG_sRGB_FROM_LINEAR
	cmp	w0, w21
	b.eq	LBB0_66
; %bb.68:                               ;   in Loop: Header=BB0_67 Depth=1
	mov	x22, x0
	mov	x0, x19
	bl	_sRGB
	lsl	w8, w0, #8
	sub	w8, w8, w0
	sub	w8, w8, w22
	ucvtf	d8, w8
	fmov	d0, x27
	fadd	d0, d9, d0
	fmov	d1, x28
	fadd	d1, d10, d1
	fcmp	d0, d8
	fccmp	d1, d8, #0, pl
	b.le	LBB0_70
; %bb.69:                               ;   in Loop: Header=BB0_67 Depth=1
	ldr	x8, [x26]
	lsr	w9, w19, #15
	lsl	x9, x9, #2
	ldr	x10, [x25]
	ldr	w8, [x8, x9]
	ldr	w9, [x10, x9]
	str	d8, [sp, #40]
	stp	x8, x9, [sp, #24]
	stp	x21, x22, [sp, #8]
	str	x19, [sp]
	mov	x0, x20
	bl	_printf
LBB0_70:                                ;   in Loop: Header=BB0_67 Depth=1
	add	w23, w23, #1
	fcmp	d9, d8
	b.mi	LBB0_65
; %bb.71:                               ;   in Loop: Header=BB0_67 Depth=1
	fcmp	d10, d8
	b.le	LBB0_66
; %bb.72:                               ;   in Loop: Header=BB0_67 Depth=1
	fmov	d10, d8
	b	LBB0_66
LBB0_73:
	mov	w19, #0
	mov	w28, #0
	mov	w27, #0
	movi	d11, #0000000000000000
	movi	d12, #0000000000000000
	b	LBB0_75
LBB0_74:                                ;   in Loop: Header=BB0_75 Depth=1
	add	w28, w28, #1
	add	w19, w19, #255
	cmp	w28, #16, lsl #12               ; =65536
	b.eq	LBB0_82
LBB0_75:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_sRGB
	lsl	w8, w0, #8
	sub	w0, w8, w0
	bl	_nearbyint
	mov	x21, x0
	mov	x0, x19
	bl	_PNG_sRGB_FROM_LINEAR
	subs	w20, w0, w21
	b.eq	LBB0_74
; %bb.76:                               ;   in Loop: Header=BB0_75 Depth=1
	mov	x22, x0
	mov	x0, x19
	bl	_sRGB
	lsl	w8, w0, #8
	sub	w8, w8, w0
	sub	w8, w8, w22
	ucvtf	d0, w8
	fcmp	d12, d0
	b.pl	LBB0_78
; %bb.77:                               ;   in Loop: Header=BB0_75 Depth=1
	fmov	d12, d0
	b	LBB0_80
LBB0_78:                                ;   in Loop: Header=BB0_75 Depth=1
	fcmp	d11, d0
	b.le	LBB0_80
; %bb.79:                               ;   in Loop: Header=BB0_75 Depth=1
	fmov	d11, d0
LBB0_80:                                ;   in Loop: Header=BB0_75 Depth=1
	add	w27, w27, #1
	cmp	w20, #0
	cneg	w8, w20, mi
	cmp	w8, #2
	b.lo	LBB0_74
; %bb.81:                               ;   in Loop: Header=BB0_75 Depth=1
	ldr	x8, [x26]
	lsr	w9, w19, #15
	lsl	x9, x9, #2
	ldr	x10, [x25]
	ldr	w8, [x8, x9]
	ldr	w9, [x10, x9]
	str	d0, [sp, #40]
	stp	x8, x9, [sp, #24]
	stp	x21, x22, [sp, #8]
	str	x28, [sp]
Lloh34:
	adrp	x0, l_.str.12@PAGE
Lloh35:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	b	LBB0_74
LBB0_82:
	mov	x19, #0
	mov	x28, #246290604621824
	movk	x28, #16495, lsl #48
Lloh36:
	adrp	x20, l_.str.14@PAGE
Lloh37:
	add	x20, x20, l_.str.14@PAGEOFF
	b	LBB0_84
LBB0_83:                                ;   in Loop: Header=BB0_84 Depth=1
	add	x19, x19, #1
	cmp	x19, #256
	b.eq	LBB0_87
LBB0_84:                                ; =>This Inner Loop Header: Depth=1
Lloh38:
	adrp	x8, _png_sRGB_table@GOTPAGE
Lloh39:
	ldr	x8, [x8, _png_sRGB_table@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	w8, [x8, x19, lsl #2]
	lsl	w9, w8, #8
	sub	w21, w9, w8
	mov	x0, x21
	bl	_sRGB
	lsl	w8, w0, #8
	sub	w0, w8, w0
	bl	_nearbyint
	mov	x22, x0
	mov	x0, x21
	bl	_PNG_sRGB_FROM_LINEAR
	cmp	x19, w22, uxtw
	b.ne	LBB0_141
; %bb.85:                               ;   in Loop: Header=BB0_84 Depth=1
	mov	x21, x0
	cmp	x19, w0, uxtw
	b.eq	LBB0_83
; %bb.86:                               ;   in Loop: Header=BB0_84 Depth=1
	mov	x0, x19
	bl	_finvsRGB
	fmov	d8, d0
	fmov	d0, x28
	fmul	d0, d8, d0
	fcvtzs	w0, d0
	bl	_fsRGB
	str	d0, [sp, #24]
	str	x21, [sp, #16]
	str	d8, [sp, #8]
	str	x19, [sp]
	mov	x0, x20
	bl	_printf
	b	LBB0_83
LBB0_87:
	ucvtf	d0, w23
	mov	x8, #4636737291354636288
	fmov	d8, x8
	fmul	d0, d0, d8
	ldr	s1, [x24]
	ucvtf	d1, d1
	fdiv	d0, d0, d1
	str	x23, [sp, #16]
	stp	d10, d9, [sp]
	str	d0, [sp, #24]
Lloh41:
	adrp	x0, l_.str.15@PAGE
Lloh42:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_printf
	ucvtf	d0, w27
	fmul	d0, d0, d8
	mov	x8, #281337537757184
	movk	x8, #16623, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	str	d0, [sp, #24]
	str	x27, [sp, #16]
	stp	d11, d12, [sp]
Lloh43:
	adrp	x0, l_.str.16@PAGE
Lloh44:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_138
; %bb.88:
Lloh45:
	adrp	x0, l_.str.17@PAGE
Lloh46:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_printf
	mov	x21, #0
Lloh47:
	adrp	x19, l_.str.18@PAGE
Lloh48:
	add	x19, x19, l_.str.18@PAGEOFF
Lloh49:
	adrp	x20, l_.str.19@PAGE
Lloh50:
	add	x20, x20, l_.str.19@PAGEOFF
Lloh51:
	adrp	x24, _png_sRGB_table@GOTPAGE
Lloh52:
	ldr	x24, [x24, _png_sRGB_table@GOTPAGEOFF]
	b	LBB0_90
LBB0_89:                                ;   in Loop: Header=BB0_90 Depth=1
	cmp	w22, #254
	b.hs	LBB0_109
LBB0_90:                                ; =>This Inner Loop Header: Depth=1
	and	x22, x21, #0xffffffff
	ldr	x9, [x24]
	ldr	w8, [x9, w21, uxtw #2]
	add	x21, x22, #1
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #254
	cset	w8, lo
	cmp	x22, #253
	b.hi	LBB0_106
; %bb.91:                               ;   in Loop: Header=BB0_90 Depth=1
	and	x9, x21, #0x7
	cbz	x9, LBB0_106
; %bb.92:                               ;   in Loop: Header=BB0_90 Depth=1
	ldr	x8, [x24]
	add	x23, x22, #2
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #253
	cset	w8, lo
	cmp	x22, #252
	b.hi	LBB0_105
; %bb.93:                               ;   in Loop: Header=BB0_90 Depth=1
	and	x9, x23, #0x7
	cbz	x9, LBB0_105
; %bb.94:                               ;   in Loop: Header=BB0_90 Depth=1
	ldr	x8, [x24]
	add	x21, x22, #3
	ldr	w8, [x8, x23, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #252
	cset	w8, lo
	cmp	x22, #251
	b.hi	LBB0_108
; %bb.95:                               ;   in Loop: Header=BB0_90 Depth=1
	and	x9, x21, #0x7
	cbz	x9, LBB0_108
; %bb.96:                               ;   in Loop: Header=BB0_90 Depth=1
	ldr	x8, [x24]
	add	x23, x22, #4
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #251
	cset	w8, lo
	cmp	x22, #250
	b.hi	LBB0_105
; %bb.97:                               ;   in Loop: Header=BB0_90 Depth=1
	and	x9, x23, #0x7
	cbz	x9, LBB0_105
; %bb.98:                               ;   in Loop: Header=BB0_90 Depth=1
	ldr	x8, [x24]
	add	x21, x22, #5
	ldr	w8, [x8, x23, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #250
	cset	w8, lo
	cmp	x22, #249
	b.hi	LBB0_108
; %bb.99:                               ;   in Loop: Header=BB0_90 Depth=1
	and	x9, x21, #0x7
	cbz	x9, LBB0_108
; %bb.100:                              ;   in Loop: Header=BB0_90 Depth=1
	ldr	x8, [x24]
	add	x23, x22, #6
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #249
	cset	w8, lo
	cmp	x22, #248
	b.hi	LBB0_105
; %bb.101:                              ;   in Loop: Header=BB0_90 Depth=1
	and	x9, x23, #0x7
	cbz	x9, LBB0_105
; %bb.102:                              ;   in Loop: Header=BB0_90 Depth=1
	ldr	x8, [x24]
	add	x21, x22, #7
	ldr	w8, [x8, x23, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #248
	cset	w8, lo
	cmp	x22, #247
	b.hi	LBB0_108
; %bb.103:                              ;   in Loop: Header=BB0_90 Depth=1
	and	x9, x21, #0x7
	cbz	x9, LBB0_108
; %bb.104:                              ;   in Loop: Header=BB0_90 Depth=1
	ldr	x8, [x24]
	add	x23, x22, #8
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #247
	cset	w8, lo
LBB0_105:                               ;   in Loop: Header=BB0_90 Depth=1
	mov	x22, x21
	mov	x21, x23
LBB0_106:                               ;   in Loop: Header=BB0_90 Depth=1
	cbz	w8, LBB0_89
LBB0_107:                               ;   in Loop: Header=BB0_90 Depth=1
	mov	x0, x20
	bl	_printf
	b	LBB0_89
LBB0_108:                               ;   in Loop: Header=BB0_90 Depth=1
	mov	x22, x23
	cbz	w8, LBB0_89
	b	LBB0_107
LBB0_109:
	ldr	x8, [x24]
	ldr	w8, [x8, w21, uxtw #2]
	str	x8, [sp]
Lloh53:
	adrp	x0, l_.str.20@PAGE
Lloh54:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_printf
Lloh55:
	adrp	x0, l_.str.21@PAGE
Lloh56:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_printf
	mov	x21, #0
Lloh57:
	adrp	x19, l_.str.18@PAGE
Lloh58:
	add	x19, x19, l_.str.18@PAGEOFF
Lloh59:
	adrp	x20, l_.str.19@PAGE
Lloh60:
	add	x20, x20, l_.str.19@PAGEOFF
	b	LBB0_111
LBB0_110:                               ;   in Loop: Header=BB0_111 Depth=1
	cmp	w22, #510
	b.hs	LBB0_130
LBB0_111:                               ; =>This Inner Loop Header: Depth=1
	and	x22, x21, #0xffffffff
	ldr	x9, [x26]
	ldr	w8, [x9, w21, uxtw #2]
	add	x21, x22, #1
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #510
	cset	w8, lo
	cmp	x22, #509
	b.hi	LBB0_127
; %bb.112:                              ;   in Loop: Header=BB0_111 Depth=1
	and	x9, x21, #0x7
	cbz	x9, LBB0_127
; %bb.113:                              ;   in Loop: Header=BB0_111 Depth=1
	ldr	x8, [x26]
	add	x23, x22, #2
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #509
	cset	w8, lo
	cmp	x22, #508
	b.hi	LBB0_126
; %bb.114:                              ;   in Loop: Header=BB0_111 Depth=1
	and	x9, x23, #0x7
	cbz	x9, LBB0_126
; %bb.115:                              ;   in Loop: Header=BB0_111 Depth=1
	ldr	x8, [x26]
	add	x21, x22, #3
	ldr	w8, [x8, x23, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #508
	cset	w8, lo
	cmp	x22, #507
	b.hi	LBB0_129
; %bb.116:                              ;   in Loop: Header=BB0_111 Depth=1
	and	x9, x21, #0x7
	cbz	x9, LBB0_129
; %bb.117:                              ;   in Loop: Header=BB0_111 Depth=1
	ldr	x8, [x26]
	add	x23, x22, #4
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #507
	cset	w8, lo
	cmp	x22, #506
	b.hi	LBB0_126
; %bb.118:                              ;   in Loop: Header=BB0_111 Depth=1
	and	x9, x23, #0x7
	cbz	x9, LBB0_126
; %bb.119:                              ;   in Loop: Header=BB0_111 Depth=1
	ldr	x8, [x26]
	add	x21, x22, #5
	ldr	w8, [x8, x23, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #506
	cset	w8, lo
	cmp	x22, #505
	b.hi	LBB0_129
; %bb.120:                              ;   in Loop: Header=BB0_111 Depth=1
	and	x9, x21, #0x7
	cbz	x9, LBB0_129
; %bb.121:                              ;   in Loop: Header=BB0_111 Depth=1
	ldr	x8, [x26]
	add	x23, x22, #6
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #505
	cset	w8, lo
	cmp	x22, #504
	b.hi	LBB0_126
; %bb.122:                              ;   in Loop: Header=BB0_111 Depth=1
	and	x9, x23, #0x7
	cbz	x9, LBB0_126
; %bb.123:                              ;   in Loop: Header=BB0_111 Depth=1
	ldr	x8, [x26]
	add	x21, x22, #7
	ldr	w8, [x8, x23, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #504
	cset	w8, lo
	cmp	x22, #503
	b.hi	LBB0_129
; %bb.124:                              ;   in Loop: Header=BB0_111 Depth=1
	and	x9, x21, #0x7
	cbz	x9, LBB0_129
; %bb.125:                              ;   in Loop: Header=BB0_111 Depth=1
	ldr	x8, [x26]
	add	x23, x22, #8
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	cmp	x22, #503
	cset	w8, lo
LBB0_126:                               ;   in Loop: Header=BB0_111 Depth=1
	mov	x22, x21
	mov	x21, x23
LBB0_127:                               ;   in Loop: Header=BB0_111 Depth=1
	cbz	w8, LBB0_110
LBB0_128:                               ;   in Loop: Header=BB0_111 Depth=1
	mov	x0, x20
	bl	_printf
	b	LBB0_110
LBB0_129:                               ;   in Loop: Header=BB0_111 Depth=1
	mov	x22, x23
	cbz	w8, LBB0_110
	b	LBB0_128
LBB0_130:
	ldr	x8, [x26]
	ldr	w8, [x8, w21, uxtw #2]
	str	x8, [sp]
Lloh61:
	adrp	x0, l_.str.20@PAGE
Lloh62:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_printf
Lloh63:
	adrp	x0, l_.str.22@PAGE
Lloh64:
	add	x0, x0, l_.str.22@PAGEOFF
	bl	_printf
	mov	x21, #0
Lloh65:
	adrp	x19, l_.str.18@PAGE
Lloh66:
	add	x19, x19, l_.str.18@PAGEOFF
Lloh67:
	adrp	x20, l_.str.19@PAGE
Lloh68:
	add	x20, x20, l_.str.19@PAGEOFF
	b	LBB0_132
LBB0_131:                               ;   in Loop: Header=BB0_132 Depth=1
	cmp	w22, #510
	b.hs	LBB0_137
LBB0_132:                               ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_133 Depth 2
	sub	w22, w21, #1
	and	x21, x21, #0xffffffff
LBB0_133:                               ;   Parent Loop BB0_132 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x23, x21
	ldr	x8, [x25]
	add	x21, x21, #1
	ldr	w8, [x8, x23, lsl #2]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	add	w22, w22, #1
	cmp	x23, #509
	b.hi	LBB0_135
; %bb.134:                              ;   in Loop: Header=BB0_133 Depth=2
	and	x8, x21, #0xf
	cbnz	x8, LBB0_133
LBB0_135:                               ;   in Loop: Header=BB0_132 Depth=1
	cmp	x23, #509
	b.hi	LBB0_131
; %bb.136:                              ;   in Loop: Header=BB0_132 Depth=1
	mov	x0, x20
	bl	_printf
	b	LBB0_131
LBB0_137:
	ldr	x8, [x25]
	ldr	w8, [x8, w21, uxtw #2]
	str	x8, [sp]
Lloh69:
	adrp	x0, l_.str.20@PAGE
Lloh70:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_printf
LBB0_138:
	mov	w0, #0
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #192]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #176]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #160]            ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_139:
Lloh71:
	adrp	x8, _stderr@GOTPAGE
Lloh72:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	stp	x20, x22, [sp, #8]
	str	x28, [sp]
Lloh74:
	adrp	x1, l_.str.1@PAGE
Lloh75:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_34
LBB0_140:
Lloh76:
	adrp	x8, _stderr@GOTPAGE
Lloh77:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
Lloh79:
	adrp	x1, l_.str.9@PAGE
Lloh80:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_34
LBB0_141:
Lloh81:
	adrp	x8, _stderr@GOTPAGE
Lloh82:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x8]
	stp	x19, x22, [sp]
Lloh84:
	adrp	x1, l_.str.13@PAGE
Lloh85:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_34
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--test"

	.comm	_png_sRGB_table,8,3             ; @png_sRGB_table
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"not reached: %u .. %u .. %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"table[%d][0]: overflow %08x (%d)\n"

	.comm	_png_sRGB_base,8,3              ; @png_sRGB_base
l_.str.3:                               ; @.str.3
	.asciz	"table[%d][1]: overflow %08x (%d)\n"

	.comm	_png_sRGB_delta,8,3             ; @png_sRGB_delta
l_.str.4:                               ; @.str.4
	.asciz	"/* initial error counts: %u .. %u .. %u */\n"

l_.str.5:                               ; @.str.5
	.asciz	"/* adjust (mid ): %f: %u -> %u */\n"

l_.str.6:                               ; @.str.6
	.asciz	"/* adjust (low ): %f: %u -> %u */\n"

l_.str.7:                               ; @.str.7
	.asciz	"/* adjust (high): %f: %u -> %u */\n"

l_.str.8:                               ; @.str.8
	.asciz	"/* adjust: %f: %u */\n"

l_.str.9:                               ; @.str.9
	.asciz	"makesRGB: impossible\n"

l_.str.10:                              ; @.str.10
	.asciz	"/* table[%u]={%u,%u} -> {%u,%u} %u -> %u errors */\n"

	.comm	_max_input,4,2                  ; @max_input
l_.str.11:                              ; @.str.11
	.asciz	"/* 0x%08x: exact: %3d, got: %3d [tables: %08x, %08x] (%f) */\n"

l_.str.12:                              ; @.str.12
	.asciz	"/* 0x%04x: exact: %3d, got: %3d [tables: %08x, %08x] (%f) */\n"

l_.str.13:                              ; @.str.13
	.asciz	"8-bit rounding error: %d -> %d\n"

l_.str.14:                              ; @.str.14
	.asciz	"/* 8-bit roundtrip error: %d -> %f -> %d(%f) */\n"

l_.str.15:                              ; @.str.15
	.asciz	"/* error: %g - %g, %u (%g%%) of readings inexact */\n"

l_.str.16:                              ; @.str.16
	.asciz	"/* 16-bit error: %g - %g, %u (%g%%) of readings inexact */\n"

l_.str.17:                              ; @.str.17
	.asciz	"PNG_CONST png_uint_16 png_sRGB_table[256] =\n{\n   "

l_.str.18:                              ; @.str.18
	.asciz	"%d,"

l_.str.19:                              ; @.str.19
	.asciz	"\n   "

l_.str.20:                              ; @.str.20
	.asciz	"%d\n};\n\n"

l_.str.21:                              ; @.str.21
	.asciz	"PNG_CONST png_uint_16 png_sRGB_base[512] =\n{\n   "

l_.str.22:                              ; @.str.22
	.asciz	"PNG_CONST png_byte png_sRGB_delta[512] =\n{\n   "

.subsections_via_symbols
