	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_colorspace_set_sRGB        ## -- Begin function png_colorspace_set_sRGB
	.p2align	4, 0x90
_png_colorspace_set_sRGB:               ## @png_colorspace_set_sRGB
	.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
	pushq	%rax
	.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), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r14d
	movq	%rsi, %r12
	movl	%edi, %r15d
	testl	%edx, %edx
	js	LBB0_3
## %bb.2:
	movq	_PNG_sRGB_INTENT_LAST@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jle	LBB0_3
## %bb.5:
	movq	_PNG_COLORSPACE_HAVE_INTENT@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_8
## %bb.6:
	cmpl	%r14d, 4(%r12)
	jne	LBB0_7
LBB0_8:
	movq	_PNG_COLORSPACE_FROM_sRGB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	callq	_png_benign_error
	jmp	LBB0_14
LBB0_3:
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %r8
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.2(%rip), %r8
LBB0_4:
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_icc_profile_error          ## TAILCALL
LBB0_10:
	movq	_PNG_COLORSPACE_HAVE_ENDPOINTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.11:
	leaq	48(%r12), %rsi
	movq	_sRGB_xy@GOTPCREL(%rip), %rdi
	movl	$100, %edx
	callq	_png_colorspace_endpoints_match
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_PNG_CHUNK_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	callq	_png_chunk_report
LBB0_13:
	movq	_PNG_GAMMA_sRGB_INVERSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	$2, %ecx
	callq	_png_colorspace_check_gamma
	movl	%r14d, 4(%r12)
	movl	(%r12), %eax
	orl	(%r13), %eax
	movl	%eax, (%r12)
	movq	_sRGB_xy@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r12)
	movl	_png_colorspace_set_sRGB.sRGB_XYZ+32(%rip), %ecx
	movl	%ecx, 44(%r12)
	movups	_png_colorspace_set_sRGB.sRGB_XYZ+16(%rip), %xmm0
	movups	%xmm0, 28(%r12)
	movups	_png_colorspace_set_sRGB.sRGB_XYZ(%rip), %xmm0
	movups	%xmm0, 12(%r12)
	movq	_PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB@GOTPCREL(%rip), %rcx
	movq	_PNG_COLORSPACE_HAVE_ENDPOINTS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movl	(%rbx), %ecx
	movl	%ecx, 8(%r12)
	movq	_PNG_COLORSPACE_HAVE_GAMMA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movq	_PNG_COLORSPACE_MATCHES_sRGB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PNG_COLORSPACE_FROM_sRGB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movl	$1, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @png_colorspace_set_sRGB.sRGB_XYZ
_png_colorspace_set_sRGB.sRGB_XYZ:
	.long	41239                           ## 0xa117
	.long	21264                           ## 0x5310
	.long	1933                            ## 0x78d
	.long	35758                           ## 0x8bae
	.long	71517                           ## 0x1175d
	.long	11919                           ## 0x2e8f
	.long	18048                           ## 0x4680
	.long	7219                            ## 0x1c33
	.long	95053                           ## 0x1734d

	.comm	_PNG_COLORSPACE_INVALID,4,2     ## @PNG_COLORSPACE_INVALID
	.comm	_PNG_sRGB_INTENT_LAST,4,2       ## @PNG_sRGB_INTENT_LAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sRGB"

L_.str.1:                               ## @.str.1
	.asciz	"invalid sRGB rendering intent"

	.comm	_PNG_COLORSPACE_HAVE_INTENT,4,2 ## @PNG_COLORSPACE_HAVE_INTENT
L_.str.2:                               ## @.str.2
	.asciz	"inconsistent rendering intents"

	.comm	_PNG_COLORSPACE_FROM_sRGB,4,2   ## @PNG_COLORSPACE_FROM_sRGB
L_.str.3:                               ## @.str.3
	.asciz	"duplicate sRGB information ignored"

	.comm	_PNG_COLORSPACE_HAVE_ENDPOINTS,4,2 ## @PNG_COLORSPACE_HAVE_ENDPOINTS
	.comm	_sRGB_xy,4,2                    ## @sRGB_xy
L_.str.4:                               ## @.str.4
	.asciz	"cHRM chunk does not match sRGB"

	.comm	_PNG_CHUNK_ERROR,4,2            ## @PNG_CHUNK_ERROR
	.comm	_PNG_GAMMA_sRGB_INVERSE,4,2     ## @PNG_GAMMA_sRGB_INVERSE
	.comm	_PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB,4,2 ## @PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB
	.comm	_PNG_COLORSPACE_HAVE_GAMMA,4,2  ## @PNG_COLORSPACE_HAVE_GAMMA
	.comm	_PNG_COLORSPACE_MATCHES_sRGB,4,2 ## @PNG_COLORSPACE_MATCHES_sRGB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_colorspace_set_sRGB        ; -- Begin function png_colorspace_set_sRGB
	.p2align	2
_png_colorspace_set_sRGB:               ; @png_colorspace_set_sRGB
	.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	x9, _PNG_COLORSPACE_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_COLORSPACE_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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_3:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	tbnz	w2, #31, LBB0_9
; %bb.4:
Lloh3:
	adrp	x9, _PNG_sRGB_INTENT_LAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PNG_sRGB_INTENT_LAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w20
	b.le	LBB0_9
; %bb.5:
Lloh6:
	adrp	x23, _PNG_COLORSPACE_HAVE_INTENT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PNG_COLORSPACE_HAVE_INTENT@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w9, [x19, #4]
	cmp	w9, w20
	b.ne	LBB0_10
LBB0_7:
Lloh8:
	adrp	x22, _PNG_COLORSPACE_FROM_sRGB@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PNG_COLORSPACE_FROM_sRGB@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_png_benign_error
	b	LBB0_1
LBB0_9:
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
Lloh14:
	adrp	x4, l_.str.1@PAGE
Lloh15:
	add	x4, x4, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
Lloh18:
	adrp	x4, l_.str.2@PAGE
Lloh19:
	add	x4, x4, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	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
	b	_png_icc_profile_error
LBB0_12:
Lloh20:
	adrp	x24, _PNG_COLORSPACE_HAVE_ENDPOINTS@GOTPAGE
Lloh21:
	ldr	x24, [x24, _PNG_COLORSPACE_HAVE_ENDPOINTS@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh22:
	adrp	x25, _sRGB_xy@GOTPAGE
Lloh23:
	ldr	x25, [x25, _sRGB_xy@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:
	add	x1, x19, #48
Lloh24:
	adrp	x0, _sRGB_xy@GOTPAGE
Lloh25:
	ldr	x0, [x0, _sRGB_xy@GOTPAGEOFF]
	mov	w2, #100
	bl	_png_colorspace_endpoints_match
	cbnz	w0, LBB0_15
; %bb.14:
Lloh26:
	adrp	x8, _PNG_CHUNK_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PNG_CHUNK_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_png_chunk_report
LBB0_15:
Lloh31:
	adrp	x26, _PNG_GAMMA_sRGB_INVERSE@GOTPAGE
Lloh32:
	ldr	x26, [x26, _PNG_GAMMA_sRGB_INVERSE@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x19
	mov	w3, #2
	bl	_png_colorspace_check_gamma
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	stp	w8, w20, [x19]
Lloh33:
	adrp	x9, _png_colorspace_set_sRGB.sRGB_XYZ@PAGE
Lloh34:
	add	x9, x9, _png_colorspace_set_sRGB.sRGB_XYZ@PAGEOFF
	ldr	w10, [x25]
	ldp	q0, q1, [x9]
	ldr	w9, [x9, #32]
	stur	q1, [x19, #28]
	stur	q0, [x19, #12]
	stp	w9, w10, [x19, #44]
	ldr	w9, [x24]
Lloh35:
	adrp	x10, _PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB@GOTPAGE
Lloh36:
	ldr	x10, [x10, _PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x19]
	ldr	w9, [x26]
Lloh38:
	adrp	x10, _PNG_COLORSPACE_HAVE_GAMMA@GOTPAGE
Lloh39:
	ldr	x10, [x10, _PNG_COLORSPACE_HAVE_GAMMA@GOTPAGEOFF]
	str	w9, [x19, #8]
Lloh40:
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh41:
	adrp	x9, _PNG_COLORSPACE_MATCHES_sRGB@GOTPAGE
Lloh42:
	ldr	x9, [x9, _PNG_COLORSPACE_MATCHES_sRGB@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	ldr	w10, [x22]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @png_colorspace_set_sRGB.sRGB_XYZ
_png_colorspace_set_sRGB.sRGB_XYZ:
	.long	41239                           ; 0xa117
	.long	21264                           ; 0x5310
	.long	1933                            ; 0x78d
	.long	35758                           ; 0x8bae
	.long	71517                           ; 0x1175d
	.long	11919                           ; 0x2e8f
	.long	18048                           ; 0x4680
	.long	7219                            ; 0x1c33
	.long	95053                           ; 0x1734d

	.comm	_PNG_COLORSPACE_INVALID,4,2     ; @PNG_COLORSPACE_INVALID
	.comm	_PNG_sRGB_INTENT_LAST,4,2       ; @PNG_sRGB_INTENT_LAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sRGB"

l_.str.1:                               ; @.str.1
	.asciz	"invalid sRGB rendering intent"

	.comm	_PNG_COLORSPACE_HAVE_INTENT,4,2 ; @PNG_COLORSPACE_HAVE_INTENT
l_.str.2:                               ; @.str.2
	.asciz	"inconsistent rendering intents"

	.comm	_PNG_COLORSPACE_FROM_sRGB,4,2   ; @PNG_COLORSPACE_FROM_sRGB
l_.str.3:                               ; @.str.3
	.asciz	"duplicate sRGB information ignored"

	.comm	_PNG_COLORSPACE_HAVE_ENDPOINTS,4,2 ; @PNG_COLORSPACE_HAVE_ENDPOINTS
	.comm	_sRGB_xy,4,2                    ; @sRGB_xy
l_.str.4:                               ; @.str.4
	.asciz	"cHRM chunk does not match sRGB"

	.comm	_PNG_CHUNK_ERROR,4,2            ; @PNG_CHUNK_ERROR
	.comm	_PNG_GAMMA_sRGB_INVERSE,4,2     ; @PNG_GAMMA_sRGB_INVERSE
	.comm	_PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB,4,2 ; @PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB
	.comm	_PNG_COLORSPACE_HAVE_GAMMA,4,2  ; @PNG_COLORSPACE_HAVE_GAMMA
	.comm	_PNG_COLORSPACE_MATCHES_sRGB,4,2 ; @PNG_COLORSPACE_MATCHES_sRGB
.subsections_via_symbols
