	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_process_IDAT_data          ## -- Begin function png_process_IDAT_data
	.p2align	4, 0x90
_png_process_IDAT_data:                 ## @png_process_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_PNG_FLAG_ZLIB_FINISHED@GOTPCREL(%rip), %rax
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movl	(%rax), %eax
	andl	(%rbx), %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_error
LBB0_3:
	leaq	32(%rbx), %r14
	movl	%r12d, 56(%rbx)
	movq	%r15, 48(%rbx)
	movq	_Z_PARTIAL_FLUSH@GOTPCREL(%rip), %r12
	movq	_Z_OK@GOTPCREL(%rip), %r13
	movq	_Z_STREAM_END@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_inflate
	cmpl	(%r13), %eax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%r15), %eax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_png_error
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 40(%rbx)
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	je	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_png_push_process_row
	movq	64(%rbx), %rax
	movq	%rax, 40(%rbx)
	movl	24(%rbx), %eax
	movl	%eax, 32(%rbx)
	jmp	LBB0_4
LBB0_15:
	cmpq	$0, 48(%rbx)
	movq	_PNG_FLAG_ZLIB_FINISHED@GOTPCREL(%rip), %r14
	je	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_warning
	jmp	LBB0_17
LBB0_6:
	cmpq	$0, 48(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_error
LBB0_8:
	cmpq	$0, 40(%rbx)
	movq	_PNG_FLAG_ZLIB_FINISHED@GOTPCREL(%rip), %r14
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_png_push_process_row
LBB0_10:
	movq	_PNG_AFTER_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 80(%rbx)
LBB0_17:
	movl	(%r14), %eax
	orl	%eax, (%rbx)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_FLAG_ZLIB_FINISHED,4,2     ## @PNG_FLAG_ZLIB_FINISHED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Extra compression data"

	.comm	_Z_PARTIAL_FLUSH,4,2            ## @Z_PARTIAL_FLUSH
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.1:                               ## @.str.1
	.asciz	"Extra compressed data"

	.comm	_PNG_AFTER_IDAT,4,2             ## @PNG_AFTER_IDAT
	.comm	_Z_BUF_ERROR,4,2                ## @Z_BUF_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Decompression Error"

L_.str.3:                               ## @.str.3
	.asciz	"Too much data in IDAT chunks"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_process_IDAT_data          ; -- Begin function png_process_IDAT_data
	.p2align	2
_png_process_IDAT_data:                 ; @png_process_IDAT_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _PNG_FLAG_ZLIB_FINISHED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PNG_FLAG_ZLIB_FINISHED@GOTPAGEOFF]
	cbz	x2, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	ldr	w9, [x23]
	and	w8, w9, w8
	cbz	w8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_png_error
LBB0_3:
	add	x20, x19, #32
	str	w22, [x19, #56]
	str	x21, [x19, #48]
Lloh4:
	adrp	x22, _Z_PARTIAL_FLUSH@GOTPAGE
Lloh5:
	ldr	x22, [x22, _Z_PARTIAL_FLUSH@GOTPAGEOFF]
Lloh6:
	adrp	x24, _Z_OK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _Z_OK@GOTPAGEOFF]
Lloh8:
	adrp	x25, _Z_STREAM_END@GOTPAGE
Lloh9:
	ldr	x25, [x25, _Z_STREAM_END@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str.2@PAGE
Lloh11:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh12:
	adrp	x26, _Z_BUF_ERROR@GOTPAGE
Lloh13:
	ldr	x26, [x26, _Z_BUF_ERROR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_inflate
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_png_error
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_png_push_process_row
	ldr	x8, [x19, #64]
	str	x8, [x19, #40]
	ldr	w8, [x19, #24]
	str	w8, [x19, #32]
	b	LBB0_4
LBB0_11:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_18
; %bb.12:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_png_warning
	b	LBB0_18
LBB0_13:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_15
; %bb.14:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_error
LBB0_15:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_png_push_process_row
LBB0_17:
Lloh18:
	adrp	x8, _PNG_AFTER_IDAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PNG_AFTER_IDAT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #80]
	orr	w8, w9, w8
	str	w8, [x19, #80]
LBB0_18:
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_FLAG_ZLIB_FINISHED,4,2     ; @PNG_FLAG_ZLIB_FINISHED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Extra compression data"

	.comm	_Z_PARTIAL_FLUSH,4,2            ; @Z_PARTIAL_FLUSH
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.1:                               ; @.str.1
	.asciz	"Extra compressed data"

	.comm	_PNG_AFTER_IDAT,4,2             ; @PNG_AFTER_IDAT
	.comm	_Z_BUF_ERROR,4,2                ; @Z_BUF_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Decompression Error"

l_.str.3:                               ; @.str.3
	.asciz	"Too much data in IDAT chunks"

.subsections_via_symbols
