	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_XYZ_from_xy
_png_XYZ_from_xy:                       ## @png_XYZ_from_xy
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	js	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	movq	_PNG_FP_1@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, %rsi
	subq	%rcx, %rsi
	jl	LBB0_3
## %bb.5:
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	js	LBB0_3
## %bb.6:
	cmpq	%rsi, %rdx
	jg	LBB0_3
## %bb.7:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	js	LBB0_3
## %bb.8:
	movq	%rax, %rcx
	subq	%rsi, %rcx
	jl	LBB0_3
## %bb.9:
	movq	%rdi, %r14
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	js	LBB0_3
## %bb.10:
	cmpq	%rcx, %rdi
	jg	LBB0_3
## %bb.11:
	movq	32(%r15), %rcx
	testq	%rcx, %rcx
	js	LBB0_3
## %bb.12:
	movq	%rax, %rbx
	subq	%rcx, %rbx
	jl	LBB0_3
## %bb.13:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	js	LBB0_3
## %bb.14:
	cmpq	%rbx, %rdi
	jg	LBB0_3
## %bb.15:
	movq	48(%r15), %rbx
	testq	%rbx, %rbx
	js	LBB0_3
## %bb.16:
	subq	%rbx, %rax
	jl	LBB0_3
## %bb.17:
	movslq	56(%r15), %rbx
	cmpq	$5, %rbx
	jl	LBB0_3
## %bb.18:
	cmpq	%rbx, %rax
	jl	LBB0_3
## %bb.19:
	subq	%rcx, %rsi
	subq	%rdi, %rdx
	leaq	-56(%rbp), %rdi
	movl	$7, %ecx
	callq	_png_muldiv
	movl	$2, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.20:
	movq	(%r15), %rdx
	movq	24(%r15), %rsi
	subq	40(%r15), %rsi
	subq	32(%r15), %rdx
	leaq	-48(%rbp), %rdi
	movl	$7, %ecx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_4
## %bb.21:
	movq	-56(%rbp), %r12
	subq	-48(%rbp), %r12
	movq	16(%r15), %rsi
	subq	32(%r15), %rsi
	movslq	56(%r15), %rdx
	subq	40(%r15), %rdx
	leaq	-56(%rbp), %rdi
	movl	$7, %ecx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_4
## %bb.22:
	movq	24(%r15), %rsi
	movq	48(%r15), %rdx
	subq	40(%r15), %rsi
	subq	32(%r15), %rdx
	leaq	-48(%rbp), %rdi
	movl	$7, %ecx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_4
## %bb.23:
	movslq	56(%r15), %rsi
	movq	-56(%rbp), %rcx
	subq	-48(%rbp), %rcx
	leaq	-72(%rbp), %rdi
	movq	%r12, %rdx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.24:
	movslq	56(%r15), %rax
	cmpq	%rax, -72(%rbp)
	jle	LBB0_3
## %bb.25:
	movq	8(%r15), %rsi
	movq	48(%r15), %rdx
	subq	40(%r15), %rsi
	subq	32(%r15), %rdx
	leaq	-56(%rbp), %rdi
	movl	$7, %ecx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_4
## %bb.26:
	movq	(%r15), %rsi
	subq	32(%r15), %rsi
	movslq	56(%r15), %rdx
	subq	40(%r15), %rdx
	leaq	-48(%rbp), %rdi
	movl	$7, %ecx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_4
## %bb.27:
	movslq	56(%r15), %rsi
	movq	-56(%rbp), %rcx
	subq	-48(%rbp), %rcx
	leaq	-64(%rbp), %rdi
	movq	%r12, %rdx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.28:
	movslq	56(%r15), %rdi
	cmpq	%rdi, -64(%rbp)
	jle	LBB0_3
## %bb.29:
	callq	_png_reciprocal
	movq	%rax, %r12
	movq	-72(%rbp), %rdi
	callq	_png_reciprocal
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi
	callq	_png_reciprocal
	addq	%rbx, %rax
	subq	%rax, %r12
	testq	%r12, %r12
	jle	LBB0_3
## %bb.30:
	movq	(%r15), %rsi
	movq	(%r13), %rdx
	movq	-72(%rbp), %rcx
	movq	%r14, %rdi
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.31:
	leaq	8(%r14), %rdi
	movq	8(%r15), %rsi
	movq	(%r13), %rdx
	movq	-72(%rbp), %rcx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.32:
	leaq	16(%r14), %rdi
	movq	(%r13), %rdx
	movq	(%r15), %rax
	addq	8(%r15), %rax
	movq	%rdx, %rsi
	subq	%rax, %rsi
	movq	-72(%rbp), %rcx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.33:
	leaq	24(%r14), %rdi
	movq	16(%r15), %rsi
	movq	(%r13), %rdx
	movq	-64(%rbp), %rcx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.34:
	leaq	32(%r14), %rdi
	movq	24(%r15), %rsi
	movq	(%r13), %rdx
	movq	-64(%rbp), %rcx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.35:
	leaq	40(%r14), %rdi
	movq	(%r13), %rdx
	movq	16(%r15), %rax
	addq	24(%r15), %rax
	movq	%rdx, %rsi
	subq	%rax, %rsi
	movq	-64(%rbp), %rcx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.36:
	leaq	48(%r14), %rdi
	movq	32(%r15), %rsi
	movq	(%r13), %rcx
	movq	%r12, %rdx
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_3
## %bb.37:
	leaq	56(%r14), %rdi
	movq	40(%r15), %rsi
	movq	(%r13), %rcx
	movq	%r12, %rdx
	callq	_png_muldiv
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.38:
	addq	$64, %r14
	movq	(%r13), %rcx
	movq	32(%r15), %rax
	addq	40(%r15), %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_png_muldiv
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	jmp	LBB0_4
LBB0_3:
	movl	$1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_FP_1,8,3                   ## @PNG_FP_1
	.no_dead_strip	_png_XYZ_from_xy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_XYZ_from_xy
_png_XYZ_from_xy:                       ; @png_XYZ_from_xy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x9, [x1]
	tbnz	x9, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	subs	x9, x10, x9
	b.ge	LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	mov	w0, #1
	tbnz	x8, #63, LBB0_3
; %bb.5:
	cmp	x8, x9
	b.gt	LBB0_3
; %bb.6:
	ldr	x9, [x19, #16]
	mov	w0, #1
	tbnz	x9, #63, LBB0_3
; %bb.7:
	subs	x11, x10, x9
	b.lt	LBB0_3
; %bb.8:
	ldr	x12, [x19, #24]
	mov	w0, #1
	tbnz	x12, #63, LBB0_3
; %bb.9:
	cmp	x12, x11
	b.gt	LBB0_3
; %bb.10:
	ldr	x11, [x19, #32]
	mov	w0, #1
	tbnz	x11, #63, LBB0_3
; %bb.11:
	subs	x13, x10, x11
	b.lt	LBB0_3
; %bb.12:
	ldr	x12, [x19, #40]
	mov	w0, #1
	tbnz	x12, #63, LBB0_3
; %bb.13:
	cmp	x12, x13
	b.gt	LBB0_3
; %bb.14:
	ldr	x13, [x19, #48]
	mov	w0, #1
	tbnz	x13, #63, LBB0_3
; %bb.15:
	subs	x10, x10, x13
	b.lt	LBB0_3
; %bb.16:
	ldrsw	x13, [x19, #56]
	mov	w0, #1
	cmp	w13, #5
	b.lt	LBB0_3
; %bb.17:
	cmp	x10, x13
	b.lt	LBB0_3
; %bb.18:
	sub	x1, x9, x11
	sub	x2, x8, x12
	add	x0, sp, #8
	mov	w3, #7
	bl	_png_muldiv
	cbz	x0, LBB0_38
; %bb.19:
	ldp	x10, x8, [x19, #32]
	ldr	x9, [x19, #24]
	sub	x1, x9, x8
	ldr	x8, [x19]
	sub	x2, x8, x10
	mov	x0, sp
	mov	w3, #7
	bl	_png_muldiv
	cbz	x0, LBB0_38
; %bb.20:
	ldp	x22, x21, [sp]
	ldr	x8, [x19, #16]
	ldp	x9, x10, [x19, #32]
	sub	x1, x8, x9
	ldrsw	x8, [x19, #56]
	sub	x2, x8, x10
	add	x0, sp, #8
	mov	w3, #7
	bl	_png_muldiv
	cbz	x0, LBB0_38
; %bb.21:
	ldp	x8, x9, [x19, #40]
	ldp	x10, x11, [x19, #24]
	sub	x1, x10, x8
	sub	x2, x9, x11
	mov	x0, sp
	mov	w3, #7
	bl	_png_muldiv
	cbz	x0, LBB0_38
; %bb.22:
	sub	x21, x21, x22
	ldrsw	x1, [x19, #56]
	ldp	x9, x8, [sp]
	sub	x3, x8, x9
	add	x0, sp, #24
	mov	x2, x21
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.23:
	ldr	x8, [sp, #24]
	ldrsw	x9, [x19, #56]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.24:
	ldr	x8, [x19, #8]
	ldp	x10, x9, [x19, #32]
	sub	x1, x8, x9
	ldr	x8, [x19, #48]
	sub	x2, x8, x10
	add	x0, sp, #8
	mov	w3, #7
	bl	_png_muldiv
	cbz	x0, LBB0_38
; %bb.25:
	ldr	x8, [x19]
	ldp	x9, x10, [x19, #32]
	sub	x1, x8, x9
	ldrsw	x8, [x19, #56]
	sub	x2, x8, x10
	mov	x0, sp
	mov	w3, #7
	bl	_png_muldiv
	cbz	x0, LBB0_38
; %bb.26:
	ldrsw	x1, [x19, #56]
	ldp	x9, x8, [sp]
	sub	x3, x8, x9
	add	x0, sp, #16
	mov	x2, x21
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.27:
	ldr	x8, [sp, #16]
	ldrsw	x0, [x19, #56]
	cmp	x8, x0
	b.le	LBB0_2
; %bb.28:
	bl	_png_reciprocal
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	_png_reciprocal
	mov	x22, x0
	ldr	x0, [sp, #16]
	bl	_png_reciprocal
	add	x8, x22, x0
	sub	x21, x21, x8
	cmp	x21, #1
	b.lt	LBB0_2
; %bb.29:
	ldr	x1, [x19]
Lloh3:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	ldr	x3, [sp, #24]
	mov	x0, x20
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.30:
	add	x0, x20, #8
	ldr	x1, [x19, #8]
Lloh6:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	ldr	x3, [sp, #24]
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.31:
	add	x0, x20, #16
Lloh9:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	ldp	x8, x9, [x19]
	add	x8, x8, x9
	sub	x1, x2, x8
	ldr	x3, [sp, #24]
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.32:
	add	x0, x20, #24
	ldr	x1, [x19, #16]
Lloh12:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	ldr	x3, [sp, #16]
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.33:
	add	x0, x20, #32
	ldr	x1, [x19, #24]
Lloh15:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
	ldr	x3, [sp, #16]
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.34:
	add	x0, x20, #40
Lloh18:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
	ldp	x8, x9, [x19, #16]
	add	x8, x8, x9
	sub	x1, x2, x8
	ldr	x3, [sp, #16]
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.35:
	add	x0, x20, #48
	ldr	x1, [x19, #32]
Lloh21:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh23:
	ldr	x3, [x8]
	mov	x2, x21
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.36:
	add	x0, x20, #56
	ldr	x1, [x19, #40]
Lloh24:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh26:
	ldr	x3, [x8]
	mov	x2, x21
	bl	_png_muldiv
	cbz	x0, LBB0_2
; %bb.37:
	add	x0, x20, #64
Lloh27:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh29:
	ldr	x3, [x8]
	ldp	x8, x9, [x19, #32]
	add	x8, x8, x9
	sub	x1, x3, x8
	mov	x2, x21
	bl	_png_muldiv
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_3
LBB0_38:
	mov	w0, #2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_FP_1,8,3                   ; @PNG_FP_1
	.no_dead_strip	_png_XYZ_from_xy
.subsections_via_symbols
