	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_iCCP                ## -- Begin function png_handle_iCCP
	.p2align	4, 0x90
_png_handle_iCCP:                       ## @png_handle_iCCP
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	(%r12), %eax
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_png_error
	jmp	LBB0_7
LBB0_5:
	movq	_PNG_HAVE_PLTE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_png_warning
LBB0_7:
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	movq	_PNG_INFO_iCCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	callq	_png_warning
	movq	%r12, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_crc_finish                 ## TAILCALL
LBB0_10:
	leaq	1(%r15), %rsi
	movq	%r12, %rdi
	callq	_png_malloc
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_png_crc_read
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	testq	%rax, %rax
	je	LBB0_11
## %bb.24:
	movq	%r12, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_free                       ## TAILCALL
LBB0_11:
	leaq	(,%r15,4), %rax
	addq	%r13, %rax
	movl	$0, (%r13,%r15,4)
	movl	$4, %ebx
	movq	%r13, %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addq	$4, %rbx
	cmpl	$0, (%rcx)
	leaq	4(%rcx), %rcx
	jne	LBB0_12
## %bb.13:
	addq	$-4, %rax
	cmpq	%rax, %rcx
	jae	LBB0_25
## %bb.14:
	cmpl	$0, (%rcx)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_png_warning
LBB0_16:
	sarq	$2, %rbx
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_png_decompress_chunk
	movq	%rax, %r15
	movq	-48(%rbp), %rax
	subq	%rbx, %rax
	jb	LBB0_18
## %bb.17:
	cmpq	$3, %rax
	jle	LBB0_18
## %bb.20:
	movl	(%r15,%rbx,4), %ecx
	movl	4(%r15,%rbx,4), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	8(%r15,%rbx,4), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	12(%r15,%rbx,4), %ecx
	movslq	%ecx, %r9
	cmpq	%r9, %rax
	jge	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_png_free
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_19
LBB0_25:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_png_free
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_warning                    ## TAILCALL
LBB0_18:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_png_free
	leaq	L_.str.7(%rip), %rsi
LBB0_19:
	movq	%r12, %rdi
	callq	_png_warning
	jmp	LBB0_23
LBB0_22:
	leaq	(%r15,%rbx,4), %r8
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_png_set_iCCP
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_png_free
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_iCCP\n"

	.comm	_PNG_HAVE_IHDR,4,2              ## @PNG_HAVE_IHDR
L_.str.1:                               ## @.str.1
	.asciz	"Missing IHDR before iCCP"

	.comm	_PNG_HAVE_IDAT,4,2              ## @PNG_HAVE_IDAT
L_.str.2:                               ## @.str.2
	.asciz	"Invalid iCCP after IDAT"

	.comm	_PNG_HAVE_PLTE,4,2              ## @PNG_HAVE_PLTE
L_.str.3:                               ## @.str.3
	.asciz	"Out of place iCCP chunk"

	.comm	_PNG_INFO_iCCP,4,2              ## @PNG_INFO_iCCP
L_.str.4:                               ## @.str.4
	.asciz	"Duplicate iCCP chunk"

L_.str.5:                               ## @.str.5
	.asciz	"Malformed iCCP chunk"

L_.str.6:                               ## @.str.6
	.asciz	"Ignoring nonzero compression type in iCCP chunk"

L_.str.7:                               ## @.str.7
	.asciz	"Profile size field missing from iCCP chunk"

L_.str.8:                               ## @.str.8
	.asciz	"Ignoring truncated iCCP profile."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_iCCP                ; -- Begin function png_handle_iCCP
	.p2align	2
_png_handle_iCCP:                       ; @png_handle_iCCP
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _PNG_HAVE_IHDR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PNG_HAVE_IHDR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _PNG_HAVE_IDAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_error
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x9, _PNG_HAVE_PLTE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PNG_HAVE_PLTE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_png_warning
LBB0_6:
	cbz	x20, LBB0_10
; %bb.7:
	ldr	w8, [x20]
Lloh17:
	adrp	x9, _PNG_INFO_iCCP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PNG_INFO_iCCP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_png_warning
	mov	x0, x19
	mov	x1, x21
	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
	add	sp, sp, #80
	b	_png_crc_finish
LBB0_10:
	add	x1, x21, #1
	mov	x0, x19
	bl	_png_malloc
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_png_crc_read
	mov	x0, x19
	mov	x1, #0
	bl	_png_crc_finish
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x22
	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
	add	sp, sp, #80
	b	_png_free
LBB0_12:
	mov	x23, #0
	add	x8, x22, x21, lsl #2
	str	wzr, [x8]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, x23]
	add	x23, x23, #4
	cbnz	w9, LBB0_13
; %bb.14:
	sub	x9, x8, #4
	add	x8, x22, x23
	cmp	x8, x9
	b.hs	LBB0_21
; %bb.15:
	ldr	w8, [x8]
	cbz	w8, LBB0_17
; %bb.16:
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_png_warning
LBB0_17:
	add	x8, x23, #4
	asr	x23, x8, #2
	add	x5, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	bl	_png_decompress_chunk
	mov	x21, x0
	ldr	x8, [sp, #8]
	subs	x8, x8, x23
	b.lo	LBB0_22
; %bb.18:
	cmp	x8, #3
	b.le	LBB0_22
; %bb.19:
	add	x4, x21, x23, lsl #2
	ldp	w9, w10, [x4]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w11, [x4, #8]
	orr	w9, w9, w10, lsl #8
	orr	w9, w9, w11
	sxtw	x5, w9
	mov	x0, x19
	cmp	x8, x5
	b.ge	LBB0_24
; %bb.20:
	mov	x1, x21
	bl	_png_free
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_23
LBB0_21:
	mov	x0, x19
	mov	x1, x22
	bl	_png_free
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_png_warning
LBB0_22:
	mov	x0, x19
	mov	x1, x21
	bl	_png_free
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_23:
	mov	x0, x19
	bl	_png_warning
	b	LBB0_25
LBB0_24:
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	_png_set_iCCP
	mov	x0, x19
	mov	x1, x21
	bl	_png_free
LBB0_25:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_iCCP\n"

	.comm	_PNG_HAVE_IHDR,4,2              ; @PNG_HAVE_IHDR
l_.str.1:                               ; @.str.1
	.asciz	"Missing IHDR before iCCP"

	.comm	_PNG_HAVE_IDAT,4,2              ; @PNG_HAVE_IDAT
l_.str.2:                               ; @.str.2
	.asciz	"Invalid iCCP after IDAT"

	.comm	_PNG_HAVE_PLTE,4,2              ; @PNG_HAVE_PLTE
l_.str.3:                               ; @.str.3
	.asciz	"Out of place iCCP chunk"

	.comm	_PNG_INFO_iCCP,4,2              ; @PNG_INFO_iCCP
l_.str.4:                               ; @.str.4
	.asciz	"Duplicate iCCP chunk"

l_.str.5:                               ; @.str.5
	.asciz	"Malformed iCCP chunk"

l_.str.6:                               ; @.str.6
	.asciz	"Ignoring nonzero compression type in iCCP chunk"

l_.str.7:                               ; @.str.7
	.asciz	"Profile size field missing from iCCP chunk"

l_.str.8:                               ; @.str.8
	.asciz	"Ignoring truncated iCCP profile."

.subsections_via_symbols
