	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_icc_check_tag_table        ## -- Begin function png_icc_check_tag_table
	.p2align	4, 0x90
_png_icc_check_tag_table:               ## @png_icc_check_tag_table
	.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
	movq	%r8, %rbx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	128(%r8), %rdi
	callq	_png_get_uint_32
	testq	%rax, %rax
	jle	LBB0_7
## %bb.1:
	movq	%rax, %r14
	addq	$132, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_png_get_uint_32
	movq	%rax, %r15
	leaq	4(%rbx), %rdi
	callq	_png_get_uint_32
	movq	%rax, %r13
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_png_get_uint_32
	movq	%rax, %r12
	testb	$3, %r13b
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	leaq	L_.str(%rip), %r8
	callq	_png_icc_profile_error
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subq	%r13, %rax
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, %r12
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_2
LBB0_7:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %r8
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_icc_profile_error          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICC profile tag start not a multiple of 4"

L_.str.1:                               ## @.str.1
	.asciz	"ICC profile tag outside profile"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_icc_check_tag_table        ; -- Begin function png_icc_check_tag_table
	.p2align	2
_png_icc_check_tag_table:               ; @png_icc_check_tag_table
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	add	x0, x4, #128
	bl	_png_get_uint_32
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x23, x0
	add	x26, x24, #132
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	bl	_png_get_uint_32
	mov	x25, x0
	add	x0, x26, #4
	bl	_png_get_uint_32
	mov	x27, x0
	add	x26, x26, #8
	mov	x0, x26
	bl	_png_get_uint_32
	mov	x28, x0
	tst	x27, #0x3
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, #0
	mov	x2, x19
	mov	x3, x25
	mov	x4, x24
	bl	_png_icc_profile_error
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	subs	x8, x21, x27
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x28, x8
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #4
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_7:
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_png_icc_profile_error
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICC profile tag start not a multiple of 4"

l_.str.1:                               ; @.str.1
	.asciz	"ICC profile tag outside profile"

.subsections_via_symbols
