	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_push_read_IDAT             ## -- Begin function png_push_read_IDAT
	.p2align	4, 0x90
_png_push_read_IDAT:                    ## @png_push_read_IDAT
	.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, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_PNG_HAVE_CHUNK_HEADER@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
LBB0_9:
	movq	32(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_13
## %bb.10:
	cmpq	%r14, %rax
	cmovlq	%rax, %r14
	movl	52(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_png_calculate_crc
	movq	_PNG_FLAG_ZLIB_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_12
## %bb.11:
	movl	52(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_png_process_IDAT_data
LBB0_12:
	subl	%r14d, 4(%rbx)
	movdqu	24(%rbx), %xmm0
	movq	%r14, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm1, %xmm0
	movdqu	%xmm0, 24(%rbx)
	addl	%r14d, 52(%rbx)
	movq	%xmm0, %rax
	testq	%rax, %rax
	je	LBB0_17
LBB0_13:
	movq	40(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_19
## %bb.14:
	cmpq	%r14, %rax
	cmovlq	%rax, %r14
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_png_calculate_crc
	movq	_PNG_FLAG_ZLIB_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_16
## %bb.15:
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_png_process_IDAT_data
LBB0_16:
	subl	%r14d, 4(%rbx)
	subq	%r14, 40(%rbx)
	addl	%r14d, 48(%rbx)
	subq	%r14, 24(%rbx)
	je	LBB0_17
	jmp	LBB0_19
LBB0_2:
	cmpl	$7, 4(%rbx)
	jle	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_png_push_fill_buffer
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_png_get_uint_31
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_png_reset_crc
	movl	60(%rbx), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_png_crc_read
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	movl	60(%rbx), %edi
	movq	_png_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_png_memcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_PNG_READ_CHUNK_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_PNG_FLAG_ZLIB_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_19
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_error
	jmp	LBB0_19
LBB0_7:
	movq	8(%rbx), %rax
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_9
LBB0_17:
	cmpl	$3, 4(%rbx)
	jg	LBB0_18
LBB0_3:
	movq	%rbx, %rdi
	callq	_png_push_save_buffer
	jmp	LBB0_19
LBB0_18:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	movl	(%r15), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_PNG_AFTER_IDAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_HAVE_CHUNK_HEADER,4,2      ## @PNG_HAVE_CHUNK_HEADER
	.comm	_png_IDAT,4,2                   ## @png_IDAT
	.comm	_PNG_READ_CHUNK_MODE,4,2        ## @PNG_READ_CHUNK_MODE
	.comm	_PNG_FLAG_ZLIB_FINISHED,4,2     ## @PNG_FLAG_ZLIB_FINISHED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough compressed data"

	.comm	_PNG_AFTER_IDAT,4,2             ## @PNG_AFTER_IDAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_push_read_IDAT             ; -- Begin function png_push_read_IDAT
	.p2align	2
_png_push_read_IDAT:                    ; @png_push_read_IDAT
	.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	w8, [x0]
Lloh3:
	adrp	x21, _PNG_HAVE_CHUNK_HEADER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PNG_HAVE_CHUNK_HEADER@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
LBB0_2:
	ldr	x9, [x19, #32]
Lloh5:
	adrp	x22, _PNG_FLAG_ZLIB_FINISHED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PNG_FLAG_ZLIB_FINISHED@GOTPAGEOFF]
	cbz	x9, LBB0_6
; %bb.3:
	cmp	x8, x9
	csel	x20, x8, x9, lt
	ldr	w1, [x19, #52]
	mov	x0, x19
	mov	x2, x20
	bl	_png_calculate_crc
	ldr	w8, [x19, #16]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x19, #52]
	mov	x0, x19
	mov	x2, x20
	bl	_png_process_IDAT_data
LBB0_5:
	ldr	w8, [x19, #4]
	sub	w8, w8, w20
	str	w8, [x19, #4]
	ldur	q0, [x19, #24]
	dup.2d	v1, x20
	sub.2d	v0, v0, v1
	stur	q0, [x19, #24]
	ldr	w8, [x19, #52]
	add	w8, w8, w20
	str	w8, [x19, #52]
	fmov	x8, d0
	cbz	x8, LBB0_15
LBB0_6:
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_18
; %bb.7:
	cmp	x8, x9
	csel	x20, x8, x9, lt
	ldr	w1, [x19, #48]
	mov	x0, x19
	mov	x2, x20
	bl	_png_calculate_crc
	ldr	w8, [x19, #16]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
	ldr	w1, [x19, #48]
	mov	x0, x19
	mov	x2, x20
	bl	_png_process_IDAT_data
LBB0_9:
	ldr	x8, [x19, #24]
	ldr	w9, [x19, #4]
	sub	w9, w9, w20
	ldr	x10, [x19, #40]
	sub	x10, x10, x20
	str	w9, [x19, #4]
	str	x10, [x19, #40]
	ldr	w9, [x19, #48]
	add	w9, w9, w20
	str	w9, [x19, #48]
	subs	x8, x8, x20
	str	x8, [x19, #24]
	b.eq	LBB0_15
	b	LBB0_18
LBB0_10:
	ldr	w8, [x19, #4]
	cmp	w8, #7
	b.le	LBB0_16
; %bb.11:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_png_push_fill_buffer
	add	x1, sp, #8
	mov	x0, x19
	bl	_png_get_uint_31
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_png_reset_crc
	ldr	w1, [x19, #60]
	mov	x0, x19
	mov	w2, #4
	bl	_png_crc_read
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x19, #60]
Lloh7:
	adrp	x8, _png_IDAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _png_IDAT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_png_memcmp
	cbz	x0, LBB0_14
; %bb.12:
Lloh10:
	adrp	x8, _PNG_READ_CHUNK_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PNG_READ_CHUNK_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	ldr	w8, [x19, #16]
Lloh13:
	adrp	x9, _PNG_FLAG_ZLIB_FINISHED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PNG_FLAG_ZLIB_FINISHED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.13:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_png_error
	b	LBB0_18
LBB0_14:
	ldr	x8, [x19, #8]
	str	x8, [x19, #24]
	cbnz	x8, LBB0_2
LBB0_15:
	ldr	w8, [x19, #4]
	cmp	w8, #3
	b.gt	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_png_push_save_buffer
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh18:
	adrp	x9, _PNG_AFTER_IDAT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PNG_AFTER_IDAT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_18:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_HAVE_CHUNK_HEADER,4,2      ; @PNG_HAVE_CHUNK_HEADER
	.comm	_png_IDAT,4,2                   ; @png_IDAT
	.comm	_PNG_READ_CHUNK_MODE,4,2        ; @PNG_READ_CHUNK_MODE
	.comm	_PNG_FLAG_ZLIB_FINISHED,4,2     ; @PNG_FLAG_ZLIB_FINISHED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough compressed data"

	.comm	_PNG_AFTER_IDAT,4,2             ; @PNG_AFTER_IDAT
.subsections_via_symbols
