	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_read_chunk_header          ## -- Begin function png_read_chunk_header
	.p2align	4, 0x90
_png_read_chunk_header:                 ## @png_read_chunk_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-64(%rbp), %r14
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_png_read_data
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_png_get_uint_31
	movq	%rax, %r14
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_PNG_CHUNK_FROM_STRING
	movq	%rax, 8(%rbx)
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_png_debug2
	movq	%rbx, %rdi
	callq	_png_reset_crc
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_png_calculate_crc
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_png_check_chunk_name
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading %lx chunk, length = %lu"

	.comm	_PNG_IO_CHUNK_DATA,8,3          ## @PNG_IO_CHUNK_DATA
	.comm	_PNG_IO_CHUNK_HDR,8,3           ## @PNG_IO_CHUNK_HDR
	.comm	_PNG_IO_READING,8,3             ## @PNG_IO_READING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_read_chunk_header          ; -- Begin function png_read_chunk_header
	.p2align	2
_png_read_chunk_header:                 ; @png_read_chunk_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x21, sp, #8
	add	x1, sp, #8
	mov	w2, #8
	bl	_png_read_data
	add	x1, sp, #8
	mov	x0, x20
	bl	_png_get_uint_31
	mov	x19, x0
	add	x21, x21, #16
	mov	x0, x21
	bl	_PNG_CHUNK_FROM_STRING
	mov	x2, x0
	str	x0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x3, x19
	bl	_png_debug2
	mov	x0, x20
	bl	_png_reset_crc
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_png_calculate_crc
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	_png_check_chunk_name
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading %lx chunk, length = %lu"

	.comm	_PNG_IO_CHUNK_DATA,8,3          ; @PNG_IO_CHUNK_DATA
	.comm	_PNG_IO_CHUNK_HDR,8,3           ; @PNG_IO_CHUNK_HDR
	.comm	_PNG_IO_READING,8,3             ; @PNG_IO_READING
.subsections_via_symbols
