	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_icc_check_header           ## -- Begin function png_icc_check_header
	.p2align	4, 0x90
_png_icc_check_header:                  ## @png_icc_check_header
	.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	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	%r8, %rdi
	callq	_png_get_uint_32
	cmpl	%r13d, %eax
	jne	LBB0_1
## %bb.5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	testb	$3, %r13b
	je	LBB0_8
## %bb.6:
	cmpl	$4, 64(%r12)
	jl	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %r8
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r13d, %ecx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %r8
	movl	%ebx, %edi
	movq	%r14, %rsi
LBB0_2:
	movl	%r15d, %edx
LBB0_3:
	movl	%eax, %ecx
	jmp	LBB0_4
LBB0_8:
	leaq	1024(%r12), %rdi
	callq	_png_get_uint_32
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$357913930, %eax                ## imm = 0x1555554A
	jg	LBB0_10
## %bb.9:
	leal	(%rax,%rax,2), %ecx
	leal	132(,%rcx,4), %ecx
	cmpl	%r13d, %ecx
	jle	LBB0_11
LBB0_10:
	leaq	L_.str.2(%rip), %r8
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%eax, %ecx
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_icc_profile_error          ## TAILCALL
LBB0_11:
	leaq	512(%r12), %rdi
	callq	_png_get_uint_32
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jl	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %r8
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_13:
	movq	_PNG_sRGB_INTENT_LAST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	%r15d, %r13d
	jl	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_png_icc_profile_error
LBB0_15:
	leaq	288(%r12), %rdi
	callq	_png_get_uint_32
	cmpl	$1633907568, %eax               ## imm = 0x61637370
	jne	LBB0_16
## %bb.19:
	leaq	544(%r12), %rdi
	movq	_D50_nCIEXYZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.6(%rip), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_png_icc_profile_error
LBB0_21:
	leaq	128(%r12), %rdi
	callq	_png_get_uint_32
	cmpl	$1196573017, %eax               ## imm = 0x47524159
	je	LBB0_25
## %bb.22:
	cmpl	$1380401696, %eax               ## imm = 0x52474220
	jne	LBB0_27
## %bb.23:
	movq	_PNG_COLOR_MASK_COLOR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_28
## %bb.24:
	leaq	L_.str.7(%rip), %r8
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	$1380401696, %ecx               ## imm = 0x52474220
	jmp	LBB0_4
LBB0_16:
	leaq	L_.str.5(%rip), %r8
	jmp	LBB0_17
LBB0_25:
	movq	_PNG_COLOR_MASK_COLOR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_28
## %bb.26:
	leaq	L_.str.8(%rip), %r8
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	$1196573017, %ecx               ## imm = 0x47524159
	jmp	LBB0_4
LBB0_28:
	leaq	96(%r12), %rdi
	callq	_png_get_uint_32
	cmpl	$1852662635, %eax               ## imm = 0x6E6D636B
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_29
## %bb.32:
	cmpl	$1935896177, %eax               ## imm = 0x73636E71
	jg	LBB0_35
## %bb.33:
	cmpl	$1852662636, %eax               ## imm = 0x6E6D636C
	je	LBB0_40
## %bb.34:
	cmpl	$1886549106, %eax               ## imm = 0x70727472
	je	LBB0_42
	jmp	LBB0_37
LBB0_27:
	leaq	L_.str.9(%rip), %r8
LBB0_17:
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	jmp	LBB0_3
LBB0_29:
	cmpl	$1633842036, %eax               ## imm = 0x61627374
	je	LBB0_38
## %bb.30:
	cmpl	$1818848875, %eax               ## imm = 0x6C696E6B
	je	LBB0_39
## %bb.31:
	cmpl	$1835955314, %eax               ## imm = 0x6D6E7472
	je	LBB0_42
	jmp	LBB0_37
LBB0_35:
	cmpl	$1935896178, %eax               ## imm = 0x73636E72
	je	LBB0_42
## %bb.36:
	cmpl	$1936744803, %eax               ## imm = 0x73706163
	je	LBB0_42
LBB0_37:
	leaq	L_.str.13(%rip), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	jmp	LBB0_41
LBB0_40:
	leaq	L_.str.12(%rip), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	$1852662636, %ecx               ## imm = 0x6E6D636C
LBB0_41:
	callq	_png_icc_profile_error
LBB0_42:
	addq	$160, %r12
	movq	%r12, %rdi
	callq	_png_get_uint_32
	cmpl	$1281450528, %eax               ## imm = 0x4C616220
	je	LBB0_45
## %bb.43:
	cmpl	$1482250784, %eax               ## imm = 0x58595A20
	jne	LBB0_44
LBB0_45:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	leaq	L_.str.14(%rip), %r8
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	jmp	LBB0_3
LBB0_38:
	leaq	L_.str.10(%rip), %r8
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	$1633842036, %ecx               ## imm = 0x61627374
	jmp	LBB0_4
LBB0_39:
	leaq	L_.str.11(%rip), %r8
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	$1818848875, %ecx               ## imm = 0x6C696E6B
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"length does not match profile"

L_.str.1:                               ## @.str.1
	.asciz	"invalid length"

L_.str.2:                               ## @.str.2
	.asciz	"tag count too large"

L_.str.3:                               ## @.str.3
	.asciz	"invalid rendering intent"

	.comm	_PNG_sRGB_INTENT_LAST,4,2       ## @PNG_sRGB_INTENT_LAST
L_.str.4:                               ## @.str.4
	.asciz	"intent outside defined range"

L_.str.5:                               ## @.str.5
	.asciz	"invalid signature"

	.comm	_D50_nCIEXYZ,4,2                ## @D50_nCIEXYZ
L_.str.6:                               ## @.str.6
	.asciz	"PCS illuminant is not D50"

	.comm	_PNG_COLOR_MASK_COLOR,4,2       ## @PNG_COLOR_MASK_COLOR
L_.str.7:                               ## @.str.7
	.asciz	"RGB color space not permitted on grayscale PNG"

L_.str.8:                               ## @.str.8
	.asciz	"Gray color space not permitted on RGB PNG"

L_.str.9:                               ## @.str.9
	.asciz	"invalid ICC profile color space"

L_.str.10:                              ## @.str.10
	.asciz	"invalid embedded Abstract ICC profile"

L_.str.11:                              ## @.str.11
	.asciz	"unexpected DeviceLink ICC profile class"

L_.str.12:                              ## @.str.12
	.asciz	"unexpected NamedColor ICC profile class"

L_.str.13:                              ## @.str.13
	.asciz	"unrecognized ICC profile class"

L_.str.14:                              ## @.str.14
	.asciz	"unexpected ICC PCS encoding"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_icc_check_header           ; -- Begin function png_icc_check_header
	.p2align	2
_png_icc_check_header:                  ; @png_icc_check_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x5
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x4
	bl	_png_get_uint_32
	cmp	w0, w24
	b.ne	LBB0_4
; %bb.1:
	tst	w24, #0x3
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x22, #64]
	cmp	w8, #4
	b.lt	LBB0_5
; %bb.3:
Lloh0:
	adrp	x4, l_.str.1@PAGE
Lloh1:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	b	LBB0_9
LBB0_4:
	mov	x3, x0
Lloh2:
	adrp	x4, l_.str@PAGE
Lloh3:
	add	x4, x4, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
	add	x0, x22, #1024
	bl	_png_get_uint_32
	mov	x3, x0
	mov	w8, #21834
	movk	w8, #5461, lsl #16
	cmp	w0, w8
	b.gt	LBB0_7
; %bb.6:
	mov	w8, #12
	mul	w8, w3, w8
	add	w8, w8, #132
	cmp	w8, w24
	b.le	LBB0_10
LBB0_7:
Lloh4:
	adrp	x4, l_.str.2@PAGE
Lloh5:
	add	x4, x4, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_png_icc_profile_error
LBB0_10:
	add	x0, x22, #512
	bl	_png_get_uint_32
	mov	x3, x0
	mov	w8, #65535
	cmp	w0, w8
	b.lt	LBB0_12
; %bb.11:
Lloh6:
	adrp	x4, l_.str.3@PAGE
Lloh7:
	add	x4, x4, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_12:
Lloh8:
	adrp	x8, _PNG_sRGB_INTENT_LAST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PNG_sRGB_INTENT_LAST@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w3, w8
	b.lt	LBB0_14
; %bb.13:
Lloh11:
	adrp	x4, l_.str.4@PAGE
Lloh12:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	bl	_png_icc_profile_error
LBB0_14:
	add	x0, x22, #288
	bl	_png_get_uint_32
	mov	w8, #29552
	movk	w8, #24931, lsl #16
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.15:
	add	x0, x22, #544
Lloh13:
	adrp	x8, _D50_nCIEXYZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D50_nCIEXYZ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #12
	bl	_memcmp
	cbz	x0, LBB0_17
; %bb.16:
Lloh16:
	adrp	x4, l_.str.6@PAGE
Lloh17:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_png_icc_profile_error
LBB0_17:
	add	x0, x22, #128
	bl	_png_get_uint_32
	mov	w8, #16729
	movk	w8, #18258, lsl #16
	cmp	w0, w8
	b.eq	LBB0_22
; %bb.18:
	mov	x3, x0
	mov	w8, #16928
	movk	w8, #21063, lsl #16
	cmp	w0, w8
	b.ne	LBB0_28
; %bb.19:
Lloh18:
	adrp	x8, _PNG_COLOR_MASK_COLOR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PNG_COLOR_MASK_COLOR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_24
; %bb.20:
Lloh21:
	adrp	x4, l_.str.7@PAGE
Lloh22:
	add	x4, x4, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #16928
	movk	w3, #21063, lsl #16
	b	LBB0_9
LBB0_21:
	mov	x3, x0
Lloh23:
	adrp	x4, l_.str.5@PAGE
Lloh24:
	add	x4, x4, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_22:
Lloh25:
	adrp	x8, _PNG_COLOR_MASK_COLOR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PNG_COLOR_MASK_COLOR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_24
; %bb.23:
Lloh28:
	adrp	x4, l_.str.8@PAGE
Lloh29:
	add	x4, x4, l_.str.8@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #16729
	movk	w3, #18258, lsl #16
	b	LBB0_9
LBB0_24:
	add	x0, x22, #96
	bl	_png_get_uint_32
	mov	x3, x0
	mov	w8, #25451
	movk	w8, #28269, lsl #16
	cmp	w0, w8
	b.le	LBB0_29
; %bb.25:
	mov	w8, #28273
	movk	w8, #29539, lsl #16
	cmp	w3, w8
	b.gt	LBB0_32
; %bb.26:
	mov	w8, #25452
	movk	w8, #28269, lsl #16
	cmp	w3, w8
	b.eq	LBB0_36
; %bb.27:
	mov	w8, #29810
	movk	w8, #28786, lsl #16
	b	LBB0_34
LBB0_28:
Lloh30:
	adrp	x4, l_.str.9@PAGE
Lloh31:
	add	x4, x4, l_.str.9@PAGEOFF
	b	LBB0_8
LBB0_29:
	mov	w8, #29556
	movk	w8, #24930, lsl #16
	cmp	w3, w8
	b.eq	LBB0_42
; %bb.30:
	mov	w8, #28267
	movk	w8, #27753, lsl #16
	cmp	w3, w8
	b.eq	LBB0_43
; %bb.31:
	mov	w8, #29810
	movk	w8, #28014, lsl #16
	b	LBB0_34
LBB0_32:
	mov	w8, #28274
	movk	w8, #29539, lsl #16
	cmp	w3, w8
	b.eq	LBB0_38
; %bb.33:
	mov	w8, #24931
	movk	w8, #29552, lsl #16
LBB0_34:
	cmp	w3, w8
	b.eq	LBB0_38
; %bb.35:
Lloh32:
	adrp	x4, l_.str.13@PAGE
Lloh33:
	add	x4, x4, l_.str.13@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	b	LBB0_37
LBB0_36:
Lloh34:
	adrp	x4, l_.str.12@PAGE
Lloh35:
	add	x4, x4, l_.str.12@PAGEOFF
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	mov	w3, #25452
	movk	w3, #28269, lsl #16
LBB0_37:
	bl	_png_icc_profile_error
LBB0_38:
	add	x0, x22, #160
	bl	_png_get_uint_32
	mov	w8, #25120
	movk	w8, #19553, lsl #16
	cmp	w0, w8
	b.eq	LBB0_40
; %bb.39:
	mov	x3, x0
	mov	w8, #23072
	movk	w8, #22617, lsl #16
	cmp	w0, w8
	b.ne	LBB0_41
LBB0_40:
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_41:
Lloh36:
	adrp	x4, l_.str.14@PAGE
Lloh37:
	add	x4, x4, l_.str.14@PAGEOFF
	b	LBB0_8
LBB0_42:
Lloh38:
	adrp	x4, l_.str.10@PAGE
Lloh39:
	add	x4, x4, l_.str.10@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #29556
	movk	w3, #24930, lsl #16
	b	LBB0_9
LBB0_43:
Lloh40:
	adrp	x4, l_.str.11@PAGE
Lloh41:
	add	x4, x4, l_.str.11@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #28267
	movk	w3, #27753, lsl #16
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"length does not match profile"

l_.str.1:                               ; @.str.1
	.asciz	"invalid length"

l_.str.2:                               ; @.str.2
	.asciz	"tag count too large"

l_.str.3:                               ; @.str.3
	.asciz	"invalid rendering intent"

	.comm	_PNG_sRGB_INTENT_LAST,4,2       ; @PNG_sRGB_INTENT_LAST
l_.str.4:                               ; @.str.4
	.asciz	"intent outside defined range"

l_.str.5:                               ; @.str.5
	.asciz	"invalid signature"

	.comm	_D50_nCIEXYZ,4,2                ; @D50_nCIEXYZ
l_.str.6:                               ; @.str.6
	.asciz	"PCS illuminant is not D50"

	.comm	_PNG_COLOR_MASK_COLOR,4,2       ; @PNG_COLOR_MASK_COLOR
l_.str.7:                               ; @.str.7
	.asciz	"RGB color space not permitted on grayscale PNG"

l_.str.8:                               ; @.str.8
	.asciz	"Gray color space not permitted on RGB PNG"

l_.str.9:                               ; @.str.9
	.asciz	"invalid ICC profile color space"

l_.str.10:                              ; @.str.10
	.asciz	"invalid embedded Abstract ICC profile"

l_.str.11:                              ; @.str.11
	.asciz	"unexpected DeviceLink ICC profile class"

l_.str.12:                              ; @.str.12
	.asciz	"unexpected NamedColor ICC profile class"

l_.str.13:                              ; @.str.13
	.asciz	"unrecognized ICC profile class"

l_.str.14:                              ; @.str.14
	.asciz	"unexpected ICC PCS encoding"

.subsections_via_symbols
