	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_finish_row           ## -- Begin function png_write_finish_row
	.p2align	4, 0x90
_png_write_finish_row:                  ## @png_write_finish_row
	.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	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	(%r12), %eax
	incl	%eax
	movl	%eax, (%r12)
	cmpl	4(%r12), %eax
	jl	LBB0_13
## %bb.1:
	leaq	48(%r12), %r14
	movq	_Z_OK@GOTPCREL(%rip), %r15
	movq	_Z_STREAM_END@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_png_error
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r13), %ebx
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_deflate
	movl	%eax, %ebx
	cmpl	(%r15), %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	72(%r12), %esi
	movq	40(%r12), %rdx
	movq	%r12, %rdi
	callq	_png_write_IDAT
	movl	72(%r12), %eax
	movl	%eax, 68(%r12)
	movq	40(%r12), %rax
	movq	%rax, 48(%r12)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r13), %ebx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r12), %rsi
	movq	%r12, %rdi
	testq	%rsi, %rsi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_10:
	movq	40(%r12), %rdx
	subq	48(%r12), %rdx
	jle	LBB0_12
## %bb.11:
	movl	72(%r12), %esi
	movq	%r12, %rdi
	callq	_png_write_IDAT
LBB0_12:
	movq	%r14, %rdi
	callq	_deflateReset
	movq	_Z_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_write_finish_row\n"

	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.1:                               ## @.str.1
	.asciz	"zlib error"

	.comm	_Z_BINARY,4,2                   ## @Z_BINARY
	.comm	_PNG_INTERLACE,4,2              ## @PNG_INTERLACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_write_finish_row           ; -- Begin function png_write_finish_row
	.p2align	2
_png_write_finish_row:                  ; @png_write_finish_row
	.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	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldp	w8, w9, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	cmp	w8, w9
	b.lt	LBB0_14
; %bb.1:
	add	x20, x19, #48
Lloh2:
	adrp	x23, _Z_FINISH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _Z_FINISH@GOTPAGEOFF]
Lloh4:
	adrp	x24, _Z_OK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _Z_OK@GOTPAGEOFF]
Lloh6:
	adrp	x25, _Z_STREAM_END@GOTPAGE
Lloh7:
	ldr	x25, [x25, _Z_STREAM_END@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_deflate
	mov	x22, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x19, #56]
	cbz	x1, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #72]
	ldr	x2, [x19, #40]
	mov	x0, x19
	bl	_png_write_IDAT
	ldr	w8, [x19, #72]
	str	w8, [x19, #68]
	ldr	x8, [x19, #40]
	str	x8, [x19, #48]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x21
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_png_error
	b	LBB0_3
LBB0_11:
	ldp	x9, x8, [x19, #40]
	subs	x2, x9, x8
	b.le	LBB0_13
; %bb.12:
	ldr	w1, [x19, #72]
	mov	x0, x19
	bl	_png_write_IDAT
LBB0_13:
	mov	x0, x20
	bl	_deflateReset
Lloh10:
	adrp	x8, _Z_BINARY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Z_BINARY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #64]
LBB0_14:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_write_finish_row\n"

	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.1:                               ; @.str.1
	.asciz	"zlib error"

	.comm	_Z_BINARY,4,2                   ; @Z_BINARY
	.comm	_PNG_INTERLACE,4,2              ; @PNG_INTERLACE
.subsections_via_symbols
