	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_read_IDAT_data             ## -- Begin function png_read_IDAT_data
	.p2align	4, 0x90
_png_read_IDAT_data:                    ## @png_read_IDAT_data
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, 48(%rdi)
	movl	$0, 24(%rdi)
	testq	%rsi, %rsi
	cmoveq	%rsi, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_error
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rsp
	testq	%r15, %r15
	jle	LBB0_25
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rsp, %r12
	movq	_PNG_INFLATE_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %r13
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r14, %r14
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_ZLIB_IO_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, %rax
	cmovgeq	%r15, %rax
	subq	%rax, %r15
	movl	%eax, 24(%rbx)
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PNG_INFLATE
	movslq	24(%rbx), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r12
	testq	%r12, %r12
	movq	_png_IDAT@GOTPCREL(%rip), %r14
	je	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rax
	cmpq	%r12, %rax
	cmovlq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_png_read_buffer
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_png_crc_read
	subq	%r12, (%rbx)
	movq	%r14, 56(%rbx)
	movq	%r12, 32(%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%r14, %r14
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, 48(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	shll	$2, %eax
	movl	%eax, 24(%rbx)
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PNG_INFLATE
	movslq	24(%rbx), %rcx
	subq	%rcx, %r13
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	%r13, %r15
	movl	$0, 24(%rbx)
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_png_zstream_error
	movq	40(%rbx), %rsi
	testq	%r14, %r14
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$20, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_png_chunk_benign_error
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	testq	%r12, %r12
	jne	LBB0_6
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	movq	%rbx, %rdi
	callq	_png_read_chunk_header
	movq	%rax, %r12
	movq	%rax, (%rbx)
	movq	8(%rbx), %rax
	cmpq	(%r14), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_png_error
	movq	(%rbx), %r12
	jmp	LBB0_5
LBB0_11:
	movq	$0, 48(%rbx)
	movq	_PNG_AFTER_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 68(%rbx)
	movq	_PNG_FLAG_ZSTREAM_ENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 64(%rbx)
	cmpq	$0, 32(%rbx)
	jg	LBB0_13
## %bb.12:
	cmpq	$0, (%rbx)
	jle	LBB0_14
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_benign_error
LBB0_14:
	movq	%r12, %rsp
	testq	%r15, %r15
	jle	LBB0_25
## %bb.15:
	testq	%r14, %r14
	je	LBB0_24
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_error
	jmp	LBB0_25
LBB0_21:
	movq	%rbx, %rdi
	callq	_png_chunk_benign_error
	movq	%r12, %rsp
	jmp	LBB0_25
LBB0_24:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_benign_error
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_INFLATE_BUF_SIZE,4,2       ## @PNG_INFLATE_BUF_SIZE
	.comm	_png_IDAT,8,3                   ## @png_IDAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough image data"

	.comm	_ZLIB_IO_MAX,8,3                ## @ZLIB_IO_MAX
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_PNG_AFTER_IDAT,4,2             ## @PNG_AFTER_IDAT
	.comm	_PNG_FLAG_ZSTREAM_ENDED,4,2     ## @PNG_FLAG_ZSTREAM_ENDED
L_.str.1:                               ## @.str.1
	.asciz	"Extra compressed data"

	.comm	_Z_OK,4,2                       ## @Z_OK
L_.str.2:                               ## @.str.2
	.asciz	"incorrect data check"

L_.str.3:                               ## @.str.3
	.asciz	"ADLER32 checksum mismatch"

L_.str.4:                               ## @.str.4
	.asciz	"Too much image data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_read_IDAT_data             ; -- Begin function png_read_IDAT_data
	.p2align	2
_png_read_IDAT_data:                    ; @png_read_IDAT_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	x1, [x0, #48]
	str	wzr, [x0, #24]
	cmp	x1, #0
	csel	x27, xzr, x2, eq
Lloh3:
	adrp	x25, _PNG_INFLATE_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PNG_INFLATE_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x22, _png_IDAT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _png_IDAT@GOTPAGEOFF]
Lloh7:
	adrp	x28, _Z_NO_FLUSH@GOTPAGE
Lloh8:
	ldr	x28, [x28, _Z_NO_FLUSH@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x19, #40]
	mov	x0, x19
	bl	_png_chunk_error
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	sp, x26
	cmp	x27, #0
	b.le	LBB0_25
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	mov	x26, sp
	ldr	w23, [x25]
	lsl	x24, x23, #2
	mov	x9, x24
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x7fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x20, LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh11:
	adrp	x8, _ZLIB_IO_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZLIB_IO_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x27
	csel	x8, x8, x27, lt
	sub	x27, x27, x8
	str	w8, [x19, #24]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_PNG_INFLATE
	mov	x1, x0
	ldrsw	x8, [x19, #24]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	stur	x26, [x29, #-96]                ; 8-byte Folded Spill
	mov	x28, x20
	mov	x20, x25
	ldr	x0, [x19]
Lloh14:
	adrp	x25, l_.str@PAGE
Lloh15:
	add	x25, x25, l_.str@PAGEOFF
	cbz	x0, LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	cmp	x8, x0
	csel	x25, x8, x0, lt
	mov	x0, x19
	mov	x1, x25
	mov	w2, #0
	bl	_png_read_buffer
	mov	x26, x0
	mov	x0, x19
	mov	x1, x26
	mov	x2, x25
	bl	_png_crc_read
	ldr	x8, [x19]
	sub	x8, x8, x25
	str	x8, [x19]
	str	x26, [x19, #56]
	str	x25, [x19, #32]
	mov	x25, x20
	mov	x20, x28
	ldur	x26, [x29, #-96]                ; 8-byte Folded Reload
Lloh16:
	adrp	x28, _Z_NO_FLUSH@GOTPAGE
Lloh17:
	ldr	x28, [x28, _Z_NO_FLUSH@GOTPAGEOFF]
	cbnz	x20, LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x21, [x19, #48]
	lsl	w8, w23, #2
	str	w8, [x19, #24]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_PNG_INFLATE
	mov	x1, x0
	ldrsw	x8, [x19, #24]
	sub	x8, x24, x8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x8, x27
	str	wzr, [x19, #24]
Lloh18:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w1, w8
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x8, _Z_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w1, w8
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_png_zstream_error
	ldr	x1, [x19, #40]
	cbz	x20, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x1
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #20
	bl	_strncmp
	cbnz	w0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_png_chunk_benign_error
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	cbnz	x0, LBB0_7
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
	mov	x0, x19
	bl	_png_read_chunk_header
	str	x0, [x19]
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x19
	mov	x1, x25
	bl	_png_error
	ldr	x0, [x19]
	b	LBB0_14
LBB0_17:
	str	xzr, [x19, #48]
Lloh28:
	adrp	x8, _PNG_AFTER_IDAT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PNG_AFTER_IDAT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #64]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _PNG_FLAG_ZSTREAM_ENDED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PNG_FLAG_ZSTREAM_ENDED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #64]
	ldr	x8, [x19, #32]
	cmp	x8, #0
	b.gt	LBB0_19
; %bb.18:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_20
LBB0_19:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_benign_error
LBB0_20:
	mov	sp, x26
	cmp	x27, #1
	b.lt	LBB0_25
; %bb.21:
	cbz	x20, LBB0_24
; %bb.22:
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_png_error
	b	LBB0_25
LBB0_23:
	mov	x0, x19
	bl	_png_chunk_benign_error
	mov	sp, x26
	b	LBB0_25
LBB0_24:
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_benign_error
LBB0_25:
	ldur	x8, [x29, #-88]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_INFLATE_BUF_SIZE,4,2       ; @PNG_INFLATE_BUF_SIZE
	.comm	_png_IDAT,8,3                   ; @png_IDAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough image data"

	.comm	_ZLIB_IO_MAX,8,3                ; @ZLIB_IO_MAX
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_PNG_AFTER_IDAT,4,2             ; @PNG_AFTER_IDAT
	.comm	_PNG_FLAG_ZSTREAM_ENDED,4,2     ; @PNG_FLAG_ZSTREAM_ENDED
l_.str.1:                               ; @.str.1
	.asciz	"Extra compressed data"

	.comm	_Z_OK,4,2                       ; @Z_OK
l_.str.2:                               ; @.str.2
	.asciz	"incorrect data check"

l_.str.3:                               ; @.str.3
	.asciz	"ADLER32 checksum mismatch"

l_.str.4:                               ; @.str.4
	.asciz	"Too much image data"

.subsections_via_symbols
