	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function init_validate_info
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_init_validate_info:                    ## @init_validate_info
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	$-1, %ebx
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ecx
	shll	%cl, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$-1, %eax
	notl	%ebx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, 120(%rdi)
	movq	%rsi, 112(%rdi)
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	setg	%dl
	movl	%r12d, %esi
	subl	%ecx, %esi
	setg	%bl
	xorl	%r13d, %r13d
	testb	%bl, %dl
	cmovel	%r12d, %ecx
	cmovel	%r13d, %esi
	movl	%ecx, (%rdi)
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%esi, 4(%rdi)
	notl	%eax
	movl	%eax, 8(%rdi)
	movl	4(%r14), %eax
	movl	%eax, 12(%rdi)
	decl	%eax
	cvtsi2sd	%eax, %xmm0
	callq	_fabs
	movq	_PNG_GAMMA_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movl	$0, 12(%r15)
	jmp	LBB0_3
LBB0_2:
	movl	12(%r15), %eax
	leal	1(%rax), %ecx
	cmpl	$3, %ecx
	cmovbl	%eax, %r13d
LBB0_3:
	movl	%r13d, 16(%r15)
	movl	84(%r14), %eax
	movl	%eax, 108(%r15)
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, 20(%r15)
	movl	80(%r14), %edi
	movl	%r12d, %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_abserr
	movl	%eax, 104(%r15)
	movl	80(%r14), %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_pcerr
	movl	%eax, 100(%r15)
	movl	80(%r14), %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_calcerr
	movl	%eax, 96(%r15)
	movl	80(%r14), %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_outerr
	movq	%rax, 80(%r15)
	movl	80(%r14), %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_output_quantization_factor
	movsd	%xmm0, 24(%r15)
	cvtsi2sdq	80(%r15), %xmm1
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, 88(%r15)
	movl	80(%r14), %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_outlog
	movl	%eax, 76(%r15)
	movl	56(%r14), %eax
	movq	_PNG_COLOR_MASK_ALPHA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_PNG_GAMMA_THRESHOLD@GOTPCREL(%rip), %r12
	je	LBB0_4
LBB0_11:
	movq	8(%r14), %rax
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movl	16(%r14), %eax
	leal	1(%rax), %ecx
	xorl	%edx, %edx
	cmpl	$3, %ecx
	cmovbl	%eax, %edx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edx, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movl	%r13d, %eax
	cvtsi2sd	%rax, %xmm2
	movapd	%xmm2, -80(%rbp)                ## 16-byte Spill
	movsd	48(%r14), %xmm0                 ## xmm0 = mem[0],zero
	divsd	%xmm2, %xmm0
	callq	_pow
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movupd	32(%r14), %xmm0
	movddup	-80(%rbp), %xmm1                ## 16-byte Folded Reload
                                        ## xmm1 = mem[0,0]
	divpd	%xmm1, %xmm0
	movapd	%xmm0, -96(%rbp)                ## 16-byte Spill
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	movapd	%xmm0, -80(%rbp)                ## 16-byte Spill
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	unpckhpd	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	movapd	-80(%rbp), %xmm1                ## 16-byte Reload
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movupd	%xmm1, 40(%r15)
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 56(%r15)
	jmp	LBB0_13
LBB0_4:
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$2, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$3, %eax
	jne	LBB0_8
## %bb.7:
	cmpq	$0, 72(%r14)
	jne	LBB0_11
	jmp	LBB0_8
LBB0_10:
	cmpq	$0, 64(%r14)
	jne	LBB0_11
LBB0_8:
	movq	$0, 32(%r15)
LBB0_9:
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 40(%r15)
	movq	$0, 56(%r15)
LBB0_13:
	movl	4(%r14), %eax
	imull	20(%r14), %eax
	leal	1(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	$3, %ecx
	cmovael	%ebx, %eax
	movl	%eax, 64(%r15)
	decl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	_fabs
	cmpq	(%r12), %rax
	jge	LBB0_15
## %bb.14:
	movl	$0, 64(%r15)
LBB0_15:
	movl	20(%r14), %eax
	leal	1(%rax), %ecx
	cmpl	$3, %ecx
	cmovbl	%eax, %ebx
	movl	%ebx, 68(%r15)
	decl	%ebx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	callq	_fabs
	cmpq	(%r12), %rax
	jge	LBB0_17
## %bb.16:
	movl	$0, 68(%r15)
LBB0_17:
	movl	24(%r14), %eax
	movl	%eax, 72(%r15)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_GAMMA_THRESHOLD,8,3        ## @PNG_GAMMA_THRESHOLD
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ## @PNG_COLOR_MASK_ALPHA
	.no_dead_strip	_init_validate_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_validate_info
_init_validate_info:                    ; @init_validate_info
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	mov	x21, x4
	mov	x22, x3
	mov	x20, x1
	mov	x19, x0
	mov	w8, #-1
	lsl	w9, w8, w4
	mvn	w24, w9
	str	w2, [x0, #120]
	str	x1, [x0, #112]
	ldr	w9, [x1]
	cmp	w9, #0
	cset	w10, gt
	subs	w11, w3, w9
	cset	w12, gt
	tst	w10, w12
	csel	w9, w9, w3, ne
	csel	w10, w11, wzr, ne
	stp	w9, w10, [x0]
	lsl	w8, w8, w9
	mvn	w8, w8
	ldr	w9, [x1, #4]
	stp	w8, w9, [x0, #8]
	sub	w8, w9, #1
	scvtf	d0, w8
	bl	_fabs
Lloh0:
	adrp	x23, _PNG_GAMMA_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PNG_GAMMA_THRESHOLD@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #0
	str	wzr, [x19, #12]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #12]
	add	w9, w8, #1
	cmp	w9, #3
	csel	w8, w8, wzr, lo
LBB0_3:
	str	w8, [x19, #16]
	ldp	w0, w8, [x20, #80]
	str	w8, [x19, #108]
	str	w24, [x19, #20]
	mov	x1, x22
	mov	x2, x21
	bl	_abserr
	str	w0, [x19, #104]
	ldr	w0, [x20, #80]
	mov	x1, x22
	mov	x2, x21
	bl	_pcerr
	str	w0, [x19, #100]
	ldr	w0, [x20, #80]
	mov	x1, x22
	mov	x2, x21
	bl	_calcerr
	str	w0, [x19, #96]
	ldr	w0, [x20, #80]
	mov	x1, x22
	mov	x2, x21
	bl	_outerr
	str	x0, [x19, #80]
	ldr	w0, [x20, #80]
	mov	x1, x22
	mov	x2, x21
	bl	_output_quantization_factor
	str	d0, [x19, #24]
	ldr	d1, [x19, #80]
	scvtf	d1, d1
	fmov	d2, #0.50000000
	fmadd	d0, d0, d2, d1
	fcvtzs	x8, d0
	str	x8, [x19, #88]
	ldr	w0, [x20, #80]
	mov	x1, x22
	mov	x2, x21
	bl	_outlog
	str	w0, [x19, #76]
	ldr	w8, [x20, #56]
Lloh2:
	adrp	x9, _PNG_COLOR_MASK_ALPHA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PNG_COLOR_MASK_ALPHA@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
	ldr	x8, [x20, #8]
	str	x8, [x19, #32]
	cbz	x8, LBB0_12
; %bb.5:
	ldr	w8, [x20, #16]
	add	w9, w8, #1
	cmp	w9, #3
	csel	w8, w8, wzr, lo
	scvtf	d8, w8
	ucvtf	d1, w24
	ldp	d0, d2, [x20, #32]
	fdiv	d0, d0, d1
	fdiv	d9, d2, d1
	ldr	d2, [x20, #48]
	fdiv	d10, d2, d1
	fmov	d1, d8
	bl	_pow
	fmov	d11, d0
	fmov	d0, d9
	fmov	d1, d8
	bl	_pow
	fmov	d9, d0
	fmov	d0, d10
	fmov	d1, d8
	bl	_pow
	str	d11, [x19, #40]
	str	d9, [x19, #48]
	str	d0, [x19, #56]
	b	LBB0_13
LBB0_6:
	cbz	w8, LBB0_10
; %bb.7:
	cmp	w8, #2
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #3
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x20, #72]
	cbnz	x8, LBB0_4
	b	LBB0_11
LBB0_10:
	ldr	x8, [x20, #64]
	cbnz	x8, LBB0_4
LBB0_11:
	str	xzr, [x19, #32]
LBB0_12:
	stp	xzr, xzr, [x19, #40]
	str	xzr, [x19, #56]
LBB0_13:
	ldr	w8, [x20, #20]
	ldr	w9, [x20, #4]
	mul	w8, w9, w8
	add	w9, w8, #1
	cmp	w9, #3
	csel	w8, w8, wzr, lo
	str	w8, [x19, #64]
	sub	w8, w8, #1
	scvtf	d0, w8
	bl	_fabs
	ldr	x8, [x23]
	cmp	x0, x8
	b.ge	LBB0_15
; %bb.14:
	str	wzr, [x19, #64]
LBB0_15:
	ldr	w8, [x20, #20]
	add	w9, w8, #1
	cmp	w9, #3
	csel	w8, w8, wzr, lo
	str	w8, [x19, #68]
	sub	w8, w8, #1
	scvtf	d0, w8
	bl	_fabs
	ldr	x8, [x23]
	cmp	x0, x8
	b.ge	LBB0_17
; %bb.16:
	str	wzr, [x19, #68]
LBB0_17:
	ldr	w8, [x20, #24]
	str	w8, [x19, #72]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_GAMMA_THRESHOLD,8,3        ; @PNG_GAMMA_THRESHOLD
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ; @PNG_COLOR_MASK_ALPHA
	.no_dead_strip	_init_validate_info
.subsections_via_symbols
