	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_compress_IDAT              ## -- Begin function png_compress_IDAT
	.p2align	4, 0x90
_png_compress_IDAT:                     ## @png_compress_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_png_IDAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	72(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	addq	$8, %rsi
	movq	%r15, %rdi
	callq	_png_free_buffer_list
	jmp	LBB0_4
LBB0_2:
	movq	_png_compression_bufferp@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_PNG_COMPRESSION_BUFFER_SIZE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_png_malloc
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_png_voidcast
	movq	%rax, 72(%r15)
	movq	$0, 8(%rax)
LBB0_4:
	movq	_png_IDAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_png_image_size
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_png_deflate_claim
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	32(%r15), %rsi
	movq	%r15, %rdi
	callq	_png_error
LBB0_6:
	movq	8(%r15), %rax
	movq	72(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 56(%r15)
	movq	%rax, 40(%r15)
LBB0_7:
	movl	%r12d, %edi
	callq	_PNGZ_INPUT_CAST
	leaq	32(%r15), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 64(%r15)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_png_zstream_error
	movq	32(%r15), %rsi
	movq	%r15, %rdi
	callq	_png_error
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ZLIB_IO_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r13, %rax
	cmovgeq	%r13, %rax
	movq	%rax, 48(%r15)
	subq	%rax, %r13
	movl	%r12d, %esi
	testq	%r13, %r13
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_deflate
	addq	48(%r15), %r13
	movl	%eax, %ebx
	movq	$0, 48(%r15)
	movq	40(%r15), %r14
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_Z_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%r13, %r13
	jne	LBB0_8
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_23
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r15), %r14
	movq	72(%r15), %rax
	movq	(%rax), %r12
	movq	_png_IDAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_png_write_complete_chunk
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movq	%r12, 56(%r15)
	movq	%r14, 40(%r15)
	movq	_Z_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_8
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_15
LBB0_17:
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_22
## %bb.18:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_error                      ## TAILCALL
LBB0_21:
	movq	8(%r15), %rcx
	subq	%r14, %rcx
	movq	72(%r15), %rax
	movq	(%rax), %rdx
	movq	_png_IDAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_png_write_complete_chunk
	movq	$0, 40(%r15)
	movq	$0, 56(%r15)
	movq	_PNG_AFTER_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, 16(%r15)
	movq	$0, (%r15)
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_png_IDAT,8,3                   ## @png_IDAT
	.comm	_png_compression_bufferp,4,2    ## @png_compression_bufferp
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_ZLIB_IO_MAX,8,3                ## @ZLIB_IO_MAX
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_PNG_HAVE_IDAT,4,2              ## @PNG_HAVE_IDAT
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Z_OK on Z_FINISH with output space"

	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
	.comm	_PNG_AFTER_IDAT,4,2             ## @PNG_AFTER_IDAT
	.comm	_PNG_COMPRESSION_TYPE_BASE,8,3  ## @PNG_COMPRESSION_TYPE_BASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_compress_IDAT              ; -- Begin function png_compress_IDAT
	.p2align	2
_png_compress_IDAT:                     ; @png_compress_IDAT
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _png_IDAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _png_IDAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x27, _Z_OK@GOTPAGE
Lloh4:
	ldr	x27, [x27, _Z_OK@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.1:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_3
; %bb.2:
	add	x1, x8, #8
	mov	x0, x19
	bl	_png_free_buffer_list
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _png_compression_bufferp@GOTPAGE
Lloh6:
	ldr	x8, [x8, _png_compression_bufferp@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_PNG_COMPRESSION_BUFFER_SIZE
	mov	x1, x0
	mov	x0, x19
	bl	_png_malloc
	mov	x1, x0
	mov	x0, x23
	bl	_png_voidcast
	str	x0, [x19, #72]
	str	xzr, [x0, #8]
LBB0_4:
Lloh8:
	adrp	x8, _png_IDAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _png_IDAT@GOTPAGEOFF]
Lloh10:
	ldr	x23, [x8]
	mov	x0, x19
	bl	_png_image_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_png_deflate_claim
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x1, [x19, #32]
	mov	x0, x19
	bl	_png_error
LBB0_6:
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	str	x8, [x19, #56]
	ldr	x8, [x19, #8]
	str	x8, [x19, #40]
LBB0_7:
	mov	x0, x22
	bl	_PNGZ_INPUT_CAST
	add	x22, x19, #32
	str	w0, [x19, #64]
Lloh11:
	adrp	x26, _ZLIB_IO_MAX@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ZLIB_IO_MAX@GOTPAGEOFF]
Lloh13:
	adrp	x28, _Z_NO_FLUSH@GOTPAGE
Lloh14:
	ldr	x28, [x28, _Z_NO_FLUSH@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cbz	x21, LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	cmp	x8, x21
	csel	x8, x8, x21, lt
	str	x8, [x19, #48]
	sub	x21, x21, x8
	ldr	w8, [x28]
	cmp	x21, #0
	csel	w1, w8, w20, gt
	mov	x0, x22
	bl	_deflate
	mov	x23, x0
	ldp	x24, x8, [x19, #40]
	add	x21, x8, x21
	str	xzr, [x19, #48]
	cbz	x24, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x27]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #72]
	ldr	x25, [x8]
	ldr	x24, [x19, #8]
Lloh15:
	adrp	x8, _png_IDAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _png_IDAT@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x25
	mov	x3, x24
	bl	_png_write_complete_chunk
Lloh18:
	adrp	x8, _PNG_HAVE_IDAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	str	x25, [x19, #56]
	str	x24, [x19, #40]
	ldr	w8, [x27]
	ldr	w9, [x28]
	cmp	w23, w8
	ccmp	w9, w20, #4, eq
	b.ne	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w23, w8
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh21:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _Z_FINISH@GOTPAGE
Lloh25:
	ldr	x9, [x9, _Z_FINISH@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w23, w8
	ccmp	w9, w20, #0, eq
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_png_zstream_error
	ldr	x1, [x19, #32]
	mov	x0, x19
	bl	_png_error
	b	LBB0_9
LBB0_15:
Lloh27:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_18
; %bb.16:
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	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
	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
	b	_png_error
LBB0_17:
	ldr	x8, [x19, #72]
	ldr	x2, [x8]
	ldr	x8, [x19, #8]
	sub	x3, x8, x24
Lloh32:
	adrp	x8, _png_IDAT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _png_IDAT@GOTPAGEOFF]
Lloh34:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_png_write_complete_chunk
	str	xzr, [x19, #40]
	str	xzr, [x19, #56]
Lloh35:
	adrp	x8, _PNG_HAVE_IDAT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _PNG_AFTER_IDAT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _PNG_AFTER_IDAT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #16]
	orr	w8, w8, w9
	str	w8, [x19, #16]
	str	xzr, [x19]
LBB0_18:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_png_IDAT,8,3                   ; @png_IDAT
	.comm	_png_compression_bufferp,4,2    ; @png_compression_bufferp
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_ZLIB_IO_MAX,8,3                ; @ZLIB_IO_MAX
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_PNG_HAVE_IDAT,4,2              ; @PNG_HAVE_IDAT
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Z_OK on Z_FINISH with output space"

	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
	.comm	_PNG_AFTER_IDAT,4,2             ; @PNG_AFTER_IDAT
	.comm	_PNG_COMPRESSION_TYPE_BASE,8,3  ; @PNG_COMPRESSION_TYPE_BASE
.subsections_via_symbols
