	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_crc_error                  ## -- Begin function png_crc_error
	.p2align	4, 0x90
_png_crc_error:                         ## @png_crc_error
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	testb	$32, (%rax)
	movl	8(%rdi), %ebx
	jne	LBB0_1
## %bb.2:
	movq	_PNG_FLAG_CRC_CRITICAL_IGNORE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_png_read_data
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jne	LBB0_4
	jmp	LBB0_3
LBB0_1:
	movq	_PNG_FLAG_CRC_ANCILLARY_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_PNG_FLAG_CRC_ANCILLARY_USE@GOTPCREL(%rip), %rax
	movq	_PNG_FLAG_CRC_ANCILLARY_NOWARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_png_read_data
	xorl	%eax, %eax
	cmpl	%r15d, %ebx
	je	LBB0_4
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_png_get_uint_32
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	16(%r14), %rcx
	setne	%al
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_FLAG_CRC_ANCILLARY_MASK,4,2 ## @PNG_FLAG_CRC_ANCILLARY_MASK
	.comm	_PNG_FLAG_CRC_ANCILLARY_USE,4,2 ## @PNG_FLAG_CRC_ANCILLARY_USE
	.comm	_PNG_FLAG_CRC_ANCILLARY_NOWARN,4,2 ## @PNG_FLAG_CRC_ANCILLARY_NOWARN
	.comm	_PNG_FLAG_CRC_CRITICAL_IGNORE,4,2 ## @PNG_FLAG_CRC_CRITICAL_IGNORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_crc_error                  ; -- Begin function png_crc_error
	.p2align	2
_png_crc_error:                         ; @png_crc_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x9, [x0]
	ldr	w8, [x0, #8]
	ldrb	w9, [x9]
	tbnz	w9, #5, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _PNG_FLAG_CRC_CRITICAL_IGNORE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PNG_FLAG_CRC_CRITICAL_IGNORE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w20, w9, w8
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_png_read_data
	cbz	w20, LBB0_4
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x9, _PNG_FLAG_CRC_ANCILLARY_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PNG_FLAG_CRC_ANCILLARY_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _PNG_FLAG_CRC_ANCILLARY_USE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PNG_FLAG_CRC_ANCILLARY_USE@GOTPAGEOFF]
	and	w20, w9, w8
Lloh11:
	ldr	w8, [x10]
Lloh12:
	adrp	x9, _PNG_FLAG_CRC_ANCILLARY_NOWARN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PNG_FLAG_CRC_ANCILLARY_NOWARN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w21, w9, w8
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_png_read_data
	cmp	w20, w21
	b.eq	LBB0_2
LBB0_4:
	add	x0, sp, #8
	bl	_png_get_uint_32
	ldr	x8, [x19, #16]
	cmp	x0, x8
	cset	w0, ne
LBB0_5:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_FLAG_CRC_ANCILLARY_MASK,4,2 ; @PNG_FLAG_CRC_ANCILLARY_MASK
	.comm	_PNG_FLAG_CRC_ANCILLARY_USE,4,2 ; @PNG_FLAG_CRC_ANCILLARY_USE
	.comm	_PNG_FLAG_CRC_ANCILLARY_NOWARN,4,2 ; @PNG_FLAG_CRC_ANCILLARY_NOWARN
	.comm	_PNG_FLAG_CRC_CRITICAL_IGNORE,4,2 ; @PNG_FLAG_CRC_CRITICAL_IGNORE
.subsections_via_symbols
