	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_reverse_filter_adam7_iterate
_png_reverse_filter_adam7_iterate:      ## @png_reverse_filter_adam7_iterate
	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdx), %rbx
	movq	_passes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jae	LBB0_1
## %bb.2:
	movq	(%r15), %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_png_reverse_filter_init
	cmpl	$1, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_IMAGE_PROCESS_ERROR_END@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_1:
	movq	_IMAGE_PROCESS_END@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_3:
	movq	_IMAGE_PROCESS_NEXT@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_6:
	leaq	52(%r12), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_png_reverse_filter_init
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	32(%r12), %rbx
	movq	_IMAGE_PROCESS_NEXT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_png_reverse_filter_regular_iterate
	cmpl	(%r15), %eax
	je	LBB0_9
## %bb.10:
	movq	_IMAGE_PROCESS_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.11:
	movq	_IMAGE_PROCESS_ERROR_END@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_13
## %bb.12:
	movl	16(%r12), %eax
	addl	%eax, 48(%r12)
	addl	%eax, 44(%r12)
	subl	%eax, 40(%r12)
	movq	32(%r12), %rdx
	movl	28(%r12), %ecx
	movl	24(%r12), %r8d
	movq	(%r12), %r9
	shlq	$2, %r9
	movq	_passes@GOTPCREL(%rip), %rax
	addq	(%rax), %r9
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_png_reverse_filter_adam7_deinterlace_pass
	movq	32(%r12), %rdi
	callq	_free
	movl	$0, 8(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12)
	movq	$0, 32(%r12)
	movq	%r15, %rcx
	jmp	LBB0_13
LBB0_7:
	movq	_IMAGE_PROCESS_ERROR@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_passes,8,3                     ## @passes
	.comm	_IMAGE_PROCESS_END,4,2          ## @IMAGE_PROCESS_END
	.comm	_IMAGE_PROCESS_NEXT,4,2         ## @IMAGE_PROCESS_NEXT
	.comm	_IMAGE_PROCESS_ERROR_END,4,2    ## @IMAGE_PROCESS_ERROR_END
	.comm	_IMAGE_PROCESS_ERROR,4,2        ## @IMAGE_PROCESS_ERROR
	.no_dead_strip	_png_reverse_filter_adam7_iterate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_reverse_filter_adam7_iterate
_png_reverse_filter_adam7_iterate:      ; @png_reverse_filter_adam7_iterate
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x2]
Lloh0:
	adrp	x24, _passes@GOTPAGE
Lloh1:
	ldr	x24, [x24, _passes@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x22, x0
	b.hs	LBB0_4
; %bb.1:
	ldr	x21, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_png_reverse_filter_init
Lloh2:
	adrp	x26, _IMAGE_PROCESS_NEXT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _IMAGE_PROCESS_NEXT@GOTPAGEOFF]
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.2:
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.3:
Lloh4:
	adrp	x25, _IMAGE_PROCESS_ERROR_END@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IMAGE_PROCESS_ERROR_END@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
Lloh6:
	adrp	x25, _IMAGE_PROCESS_END@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IMAGE_PROCESS_END@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	mov	x25, x26
	b	LBB0_11
LBB0_6:
	add	x22, x19, #52
	mov	x0, x22
	mov	x1, x19
	bl	_png_reverse_filter_init
Lloh8:
	adrp	x25, _IMAGE_PROCESS_ERROR@GOTPAGE
Lloh9:
	ldr	x25, [x25, _IMAGE_PROCESS_ERROR@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.7:
	add	x23, x19, #32
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_png_reverse_filter_regular_iterate
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.9:
	ldr	w8, [x25]
Lloh10:
	adrp	x9, _IMAGE_PROCESS_ERROR_END@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IMAGE_PROCESS_ERROR_END@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x19, #16]
	dup.2s	v0, w8
	ldur	d1, [x19, #44]
	add.2s	v0, v1, v0
	stur	d0, [x19, #44]
	ldr	w9, [x19, #40]
	sub	w8, w9, w8
	str	w8, [x19, #40]
	ldr	x2, [x19, #32]
	ldp	w4, w3, [x19, #24]
	ldr	x8, [x24]
	ldr	x9, [x19]
	add	x5, x8, x9, lsl #2
	mov	x0, x21
	mov	x1, x20
	bl	_png_reverse_filter_adam7_deinterlace_pass
	ldr	x0, [x19, #32]
	bl	_free
	str	wzr, [x19, #8]
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #16]
Lloh13:
	adrp	x25, _IMAGE_PROCESS_NEXT@GOTPAGE
Lloh14:
	ldr	x25, [x25, _IMAGE_PROCESS_NEXT@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x25]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_passes,8,3                     ; @passes
	.comm	_IMAGE_PROCESS_END,4,2          ; @IMAGE_PROCESS_END
	.comm	_IMAGE_PROCESS_NEXT,4,2         ; @IMAGE_PROCESS_NEXT
	.comm	_IMAGE_PROCESS_ERROR_END,4,2    ; @IMAGE_PROCESS_ERROR_END
	.comm	_IMAGE_PROCESS_ERROR,4,2        ; @IMAGE_PROCESS_ERROR
	.no_dead_strip	_png_reverse_filter_adam7_iterate
.subsections_via_symbols
