	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_colorspace_set_xy_and_XYZ
_png_colorspace_set_xy_and_XYZ:         ## @png_colorspace_set_xy_and_XYZ
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	movq	_PNG_COLORSPACE_INVALID@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	testl	%eax, (%r12)
	jne	LBB0_12
## %bb.1:
	movl	%r8d, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	cmpl	$1, %r8d
	jg	LBB0_8
## %bb.2:
	movq	_PNG_COLORSPACE_HAVE_ENDPOINTS@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_8
## %bb.3:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	movl	$100, %edx
	callq	_png_colorspace_endpoints_match
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_8:
	movl	(%r14), %edx
	movl	%edx, 8(%rbx)
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_PNG_COLORSPACE_HAVE_ENDPOINTS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_sRGB_xy@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_png_colorspace_endpoints_match
	movq	%rax, %rcx
	movq	_PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	orl	(%rbx), %eax
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %edi
	callq	_PNG_COLORSPACE_CANCEL
	andl	(%rbx), %eax
LBB0_11:
	movl	%eax, (%rbx)
	movl	$2, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_png_benign_error
	jmp	LBB0_12
LBB0_6:
	movl	$1, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLORSPACE_INVALID,4,2     ## @PNG_COLORSPACE_INVALID
	.comm	_PNG_COLORSPACE_HAVE_ENDPOINTS,4,2 ## @PNG_COLORSPACE_HAVE_ENDPOINTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inconsistent chromaticities"

	.comm	_sRGB_xy,4,2                    ## @sRGB_xy
	.comm	_PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB,4,2 ## @PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB
	.no_dead_strip	_png_colorspace_set_xy_and_XYZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_colorspace_set_xy_and_XYZ
_png_colorspace_set_xy_and_XYZ:         ; @png_colorspace_set_xy_and_XYZ
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x1]
Lloh0:
	adrp	x25, _PNG_COLORSPACE_INVALID@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PNG_COLORSPACE_INVALID@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_11
LBB0_2:
	mov	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
Lloh2:
	adrp	x24, _PNG_COLORSPACE_HAVE_ENDPOINTS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PNG_COLORSPACE_HAVE_ENDPOINTS@GOTPAGEOFF]
	cmp	w4, #1
	b.gt	LBB0_7
; %bb.3:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	mov	x22, x0
	add	x1, x19, #8
	mov	x0, x20
	mov	w2, #100
	bl	_png_colorspace_endpoints_match
	cbz	x0, LBB0_12
; %bb.5:
	cbz	w23, LBB0_13
; %bb.6:
	ldr	w8, [x19]
LBB0_7:
	ldr	w9, [x20]
	str	w9, [x19, #8]
	ldr	w9, [x21]
	ldr	w10, [x24]
	orr	w8, w8, w10
	stp	w8, w9, [x19]
Lloh4:
	adrp	x1, _sRGB_xy@GOTPAGE
Lloh5:
	ldr	x1, [x1, _sRGB_xy@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #1000
	bl	_png_colorspace_endpoints_match
	mov	x8, x0
Lloh6:
	adrp	x9, _PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x19]
	orr	w8, w8, w0
	b	LBB0_10
LBB0_9:
	bl	_PNG_COLORSPACE_CANCEL
	ldr	w8, [x19]
	and	w8, w8, w0
LBB0_10:
	str	w8, [x19]
	mov	w0, #2
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w8, [x25]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_png_benign_error
	mov	w0, #0
	b	LBB0_11
LBB0_13:
	mov	w0, #1
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLORSPACE_INVALID,4,2     ; @PNG_COLORSPACE_INVALID
	.comm	_PNG_COLORSPACE_HAVE_ENDPOINTS,4,2 ; @PNG_COLORSPACE_HAVE_ENDPOINTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inconsistent chromaticities"

	.comm	_sRGB_xy,4,2                    ; @sRGB_xy
	.comm	_PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB,4,2 ; @PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB
	.no_dead_strip	_png_colorspace_set_xy_and_XYZ
.subsections_via_symbols
