	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_write_row
_png_write_row:                         ## @png_write_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, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movl	%edx, 24(%rbx)
	movq	%rsi, 48(%rbx)
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_10
## %bb.1:
	leaq	24(%rbx), %r12
	movq	_Z_NO_FLUSH@GOTPCREL(%rip), %r13
	movq	_Z_OK@GOTPCREL(%rip), %r14
	movq	_IOBUF_SIZE@GOTPCREL(%rip), %rsi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, 32(%rbx)
	movl	16(%rbx), %eax
	movl	%eax, 40(%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r12)
	jle	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r15
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_deflate
	cmpl	(%r14), %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%rbx)
	movq	%r15, %rsi
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	subq	8(%rbx), %rax
	movq	(%rsi), %rdx
	leaq	100(%rdx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_png_write_image_data
	movq	%r15, %rsi
	movq	(%r15), %rdx
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_NO_FLUSH,4,2                 ## @Z_NO_FLUSH
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_IOBUF_SIZE,8,3                 ## @IOBUF_SIZE
	.no_dead_strip	_png_write_row
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_write_row
_png_write_row:                         ; @png_write_row
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x0]
	mov	x20, x21
	str	w2, [x20, #24]!
	str	x1, [x21, #48]
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _Z_NO_FLUSH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Z_NO_FLUSH@GOTPAGEOFF]
Lloh2:
	adrp	x23, _Z_OK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _Z_OK@GOTPAGEOFF]
Lloh4:
	adrp	x24, _IOBUF_SIZE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IOBUF_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x2, [x21, #32]
	ldr	w8, [x21, #16]
	str	w8, [x21, #40]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_deflate
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [x21]
	ldr	x2, [x24]
	add	x10, x2, #100
	sub	x8, x8, x9
	cmp	x8, x10
	b.le	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_png_write_image_data
	ldr	x2, [x24]
	b	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_NO_FLUSH,4,2                 ; @Z_NO_FLUSH
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_IOBUF_SIZE,8,3                 ; @IOBUF_SIZE
	.no_dead_strip	_png_write_row
.subsections_via_symbols
