	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_unknown             ## -- Begin function png_handle_unknown
	.p2align	4, 0x90
_png_handle_unknown:                    ## @png_handle_unknown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rdi
	movq	_png_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_png_memcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_PNG_AFTER_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_3:
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_png_check_chunk_name
	movq	8(%rbx), %rax
	testb	$32, (%rax)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_error
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_png_crc_finish                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_unknown\n"

	.comm	_PNG_HAVE_IDAT,4,2              ## @PNG_HAVE_IDAT
	.comm	_png_IDAT,4,2                   ## @png_IDAT
	.comm	_PNG_AFTER_IDAT,4,2             ## @PNG_AFTER_IDAT
L_.str.1:                               ## @.str.1
	.asciz	"unknown critical chunk"

	.comm	_PNG_FLAG_KEEP_UNKNOWN_CHUNKS,4,2 ## @PNG_FLAG_KEEP_UNKNOWN_CHUNKS
	.comm	_PNG_HANDLE_CHUNK_ALWAYS,8,3    ## @PNG_HANDLE_CHUNK_ALWAYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_unknown             ; -- Begin function png_handle_unknown
	.p2align	2
_png_handle_unknown:                    ; @png_handle_unknown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _PNG_HAVE_IDAT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x0, [x20, #8]
Lloh5:
	adrp	x8, _png_IDAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _png_IDAT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_png_memcmp
	cbz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _PNG_AFTER_IDAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PNG_AFTER_IDAT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_3:
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	_png_check_chunk_name
	ldr	x8, [x20, #8]
	ldrb	w8, [x8]
	tbnz	w8, #5, LBB0_5
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_png_chunk_error
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_png_crc_finish
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_unknown\n"

	.comm	_PNG_HAVE_IDAT,4,2              ; @PNG_HAVE_IDAT
	.comm	_png_IDAT,4,2                   ; @png_IDAT
	.comm	_PNG_AFTER_IDAT,4,2             ; @PNG_AFTER_IDAT
l_.str.1:                               ; @.str.1
	.asciz	"unknown critical chunk"

	.comm	_PNG_FLAG_KEEP_UNKNOWN_CHUNKS,4,2 ; @PNG_FLAG_KEEP_UNKNOWN_CHUNKS
	.comm	_PNG_HANDLE_CHUNK_ALWAYS,8,3    ; @PNG_HANDLE_CHUNK_ALWAYS
.subsections_via_symbols
