	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_crc_finish                 ## -- Begin function png_crc_finish
	.p2align	4, 0x90
_png_crc_finish:                        ## @png_crc_finish
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	cmpq	%rsi, %r15
	jge	LBB0_4
## %bb.1:
	movl	20(%r14), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_png_crc_read
	subq	%r15, %rbx
	cmpq	%r15, %rbx
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdx
	movl	20(%r14), %esi
	movq	%r14, %rdi
	jmp	LBB0_3
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	movl	20(%r14), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_png_crc_read
LBB0_6:
	movq	%r14, %rdi
	callq	_png_crc_error
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	8(%r14), %rax
	testb	$32, (%rax)
	movl	16(%r14), %eax
	jne	LBB0_9
## %bb.11:
	movq	_PNG_FLAG_CRC_CRITICAL_USE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_png_chunk_warning
	jmp	LBB0_13
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_9:
	movq	_PNG_FLAG_CRC_ANCILLARY_NOWARN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_png_chunk_error
LBB0_13:
	movl	$1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_FLAG_CRC_ANCILLARY_NOWARN,4,2 ## @PNG_FLAG_CRC_ANCILLARY_NOWARN
	.comm	_PNG_FLAG_CRC_CRITICAL_USE,4,2  ## @PNG_FLAG_CRC_CRITICAL_USE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRC error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_crc_finish                 ; -- Begin function png_crc_finish
	.p2align	2
_png_crc_finish:                        ; @png_crc_finish
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	cmp	x21, x1
	b.ge	LBB0_4
; %bb.1:
	ldr	w1, [x19, #20]
	mov	x0, x19
	mov	x2, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_png_crc_read
	sub	x20, x20, x21
	cmp	x20, x21
	b.le	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x19]
	ldr	w1, [x19, #20]
	mov	x0, x19
	b	LBB0_2
LBB0_4:
	cbz	x20, LBB0_6
; %bb.5:
	ldr	w1, [x19, #20]
	mov	x0, x19
	mov	x2, x20
	bl	_png_crc_read
LBB0_6:
	mov	x0, x19
	bl	_png_crc_error
	cbz	x0, LBB0_13
; %bb.7:
	ldr	x9, [x19, #8]
	ldr	w8, [x19, #16]
	ldrb	w9, [x9]
	tbnz	w9, #5, LBB0_10
; %bb.8:
Lloh0:
	adrp	x9, _PNG_FLAG_CRC_CRITICAL_USE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_FLAG_CRC_CRITICAL_USE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_9:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_warning
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x9, _PNG_FLAG_CRC_ANCILLARY_NOWARN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PNG_FLAG_CRC_ANCILLARY_NOWARN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_11:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_error
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_FLAG_CRC_ANCILLARY_NOWARN,4,2 ; @PNG_FLAG_CRC_ANCILLARY_NOWARN
	.comm	_PNG_FLAG_CRC_CRITICAL_USE,4,2  ; @PNG_FLAG_CRC_CRITICAL_USE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRC error"

.subsections_via_symbols
