	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_read_finish_row            ## -- Begin function png_read_finish_row
	.p2align	4, 0x90
_png_read_finish_row:                   ## @png_read_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, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	(%rbx), %eax
	incl	%eax
	movl	%eax, (%rbx)
	cmpl	4(%rbx), %eax
	jl	LBB0_8
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.2:
	movl	$0, (%rbx)
	movl	48(%rbx), %edi
	movq	40(%rbx), %rdx
	incq	%rdx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_memset
	movslq	20(%rbx), %r8
	movq	_PNG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	cmpl	$7, %r8d
	movl	$6, %r13d
	cmovgel	%r8d, %r13d
	subq	%r8, %r13
	leaq	_png_read_finish_row.png_pass_inc(%rip), %rax
	leaq	(%rax,%r8,4), %r10
	addq	$4, %r10
	leaq	_png_read_finish_row.png_pass_start(%rip), %rax
	leaq	4(%rax,%r8,4), %r11
	leaq	_png_read_finish_row.png_pass_ystart(%rip), %rax
	leaq	(%rax,%r8,4), %r14
	addq	$4, %r14
	leaq	_png_read_finish_row.png_pass_yinc(%rip), %rax
	leaq	(%rax,%r8,4), %r15
	addq	$4, %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	cmpq	%r12, %r13
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r10,%rdi,4), %ecx
	movl	24(%rbx), %edx
	addl	%ecx, %edx
	movl	(%r11,%rdi,4), %eax
	notl	%eax
	addl	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, 16(%rbx)
	testl	%r9d, 28(%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	movl	(%r15,%rdi,4), %esi
	movl	32(%rbx), %edx
	addl	%esi, %edx
	movl	(%r14,%rdi,4), %eax
	notl	%eax
	addl	%edx, %eax
	cltd
	idivl	%esi
	movl	%eax, 4(%rbx)
	leaq	1(%rdi), %r12
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	je	LBB0_3
LBB0_7:
	leal	(%r8,%rdi), %eax
	incl	%eax
	movl	%eax, 20(%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leal	(%r8,%rdi), %eax
	incl	%eax
	movl	%eax, 20(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_read_finish_IDAT           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @png_read_finish_row.png_pass_start
_png_read_finish_row.png_pass_start:
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0

	.p2align	4                               ## @png_read_finish_row.png_pass_inc
_png_read_finish_row.png_pass_inc:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1

	.p2align	4                               ## @png_read_finish_row.png_pass_ystart
_png_read_finish_row.png_pass_ystart:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	1                               ## 0x1

	.p2align	4                               ## @png_read_finish_row.png_pass_yinc
_png_read_finish_row.png_pass_yinc:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	2                               ## 0x2

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_read_finish_row"

	.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_read_finish_row            ; -- Begin function png_read_finish_row
	.p2align	2
_png_read_finish_row:                   ; @png_read_finish_row
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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_8
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.2:
	str	wzr, [x19]
	ldr	w0, [x19, #48]
	ldr	x8, [x19, #40]
	add	x2, x8, #1
	mov	w1, #0
	bl	_memset
	mov	x16, #0
Lloh2:
	adrp	x9, _PNG_INTERLACE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PNG_INTERLACE@GOTPAGEOFF]
	ldrsw	x8, [x19, #20]
	lsl	x10, x8, #2
	add	x13, x10, #4
Lloh4:
	adrp	x10, _png_read_finish_row.png_pass_inc@PAGE
Lloh5:
	add	x10, x10, _png_read_finish_row.png_pass_inc@PAGEOFF
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x11, _png_read_finish_row.png_pass_start@PAGE
Lloh8:
	add	x11, x11, _png_read_finish_row.png_pass_start@PAGEOFF
	add	x10, x10, x13
	add	x11, x11, x13
Lloh9:
	adrp	x12, _png_read_finish_row.png_pass_ystart@PAGE
Lloh10:
	add	x12, x12, _png_read_finish_row.png_pass_ystart@PAGEOFF
Lloh11:
	adrp	x14, _png_read_finish_row.png_pass_yinc@PAGE
Lloh12:
	add	x14, x14, _png_read_finish_row.png_pass_yinc@PAGEOFF
	add	x12, x12, x13
	add	x13, x14, x13
	mov	w14, #6
	cmp	w8, #6
	csel	w14, w8, w14, gt
	sub	x15, x14, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x14, x16
	cmp	x15, x16
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x16, x14, #2
	ldr	w17, [x10, x16]
	ldr	w0, [x11, x16]
	mvn	w0, w0
	ldp	w1, w2, [x19, #24]
	add	w1, w17, w1
	add	w0, w1, w0
	sdiv	w17, w0, w17
	str	w17, [x19, #16]
	tst	w9, w2
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #32]
	ldr	w1, [x13, x16]
	ldr	w16, [x12, x16]
	mvn	w16, w16
	add	w0, w1, w0
	add	w16, w0, w16
	sdiv	w0, w16, w1
	str	w0, [x19, #4]
	add	x16, x14, #1
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w17, LBB0_3
LBB0_7:
	add	w8, w8, w14
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	w8, w8, w14
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_png_read_finish_IDAT
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @png_read_finish_row.png_pass_start
_png_read_finish_row.png_pass_start:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0

	.p2align	2                               ; @png_read_finish_row.png_pass_inc
_png_read_finish_row.png_pass_inc:
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1

	.p2align	2                               ; @png_read_finish_row.png_pass_ystart
_png_read_finish_row.png_pass_ystart:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	1                               ; 0x1

	.p2align	2                               ; @png_read_finish_row.png_pass_yinc
_png_read_finish_row.png_pass_yinc:
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	2                               ; 0x2

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_read_finish_row"

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