	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlmeans_filter
_nlmeans_filter:                        ## @nlmeans_filter
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	addq	8(%rdi), %rax
	cmpq	%rax, (%rdi)
	jge	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_2:
	movq	%rdi, %r15
	addq	$40, %rdi
	callq	_taskset_cycle
	movq	16(%r15), %r10
	testq	%r10, %r10
	jle	LBB0_26
## %bb.3:
	movq	32(%r15), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	16(%r15), %r10
	cmpq	%rbx, %r10
	jle	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%rax), %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_free
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	$0, 8(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_free
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	$0, (%rax)
	jmp	LBB0_9
LBB0_10:
	testq	%r10, %r10
	jle	LBB0_26
## %bb.11:
	movq	32(%r15), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movq	16(%r15), %r10
	cmpq	%rbx, %r10
	jle	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rax
	movq	32(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	24(%rax), %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_free
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	$0, 32(%rax)
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_free
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	$0, 24(%rax)
	jmp	LBB0_17
LBB0_18:
	testq	%r10, %r10
	jle	LBB0_26
## %bb.19:
	movq	32(%r15), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movq	16(%r15), %r10
	cmpq	%rbx, %r10
	jle	LBB0_26
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rax
	movq	56(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	48(%rax), %rdi
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	callq	_free
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	$0, 56(%rax)
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	48(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	callq	_free
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	$0, 48(%rax)
	jmp	LBB0_25
LBB0_26:
	movq	8(%r15), %r8
	testq	%r8, %r8
	jle	LBB0_29
## %bb.27:
	movq	32(%r15), %rsi
	leaq	(,%r10,8), %r9
	xorl	%edi, %edi
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rbx
	leaq	(%rsi,%r9), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movq	%rcx, (%rsi,%rdi,8)
	movq	32(%r15), %rsi
	movq	(%rsi,%rdi,8), %rcx
	leaq	(%rsi,%r9), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movl	16(%rbx), %eax
	movl	%eax, 16(%rcx)
	movups	%xmm0, (%rdx)
	movl	40(%rbx), %eax
	movl	%eax, 40(%rcx)
	movups	%xmm0, 24(%rdx)
	movl	64(%rbx), %eax
	movl	%eax, 64(%rcx)
	incq	%rdi
	movups	%xmm0, 48(%rdx)
	cmpq	%rdi, %r8
	jne	LBB0_28
LBB0_29:
	subq	%r10, (%r15)
	leaq	-28(%rbp), %rdi
	callq	_hb_buffer_list_clear
	cmpq	$0, 16(%r15)
	jle	LBB0_32
## %bb.30:
	xorl	%ebx, %ebx
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hb_buffer_list_append
	incq	%rbx
	cmpq	%rbx, 16(%r15)
	jg	LBB0_31
LBB0_32:
	leaq	-28(%rbp), %rdi
	callq	_hb_buffer_list_clear
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nlmeans_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlmeans_filter
_nlmeans_filter:                        ; @nlmeans_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x9, [x0]
	ldr	x10, [x0, #16]
	add	x9, x10, x9
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_33
LBB0_2:
	mov	x19, x0
	add	x0, x0, #40
	bl	_taskset_cycle
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_26
; %bb.3:
	mov	x20, #0
	ldr	x9, [x19, #32]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.le	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9, x20, lsl #3]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x8]
	cmp	x0, x10
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_free
	ldr	x9, [x19, #32]
	ldr	x8, [x9, x20, lsl #3]
	str	xzr, [x8, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_free
	ldr	x9, [x19, #32]
	ldr	x8, [x9, x20, lsl #3]
	str	xzr, [x8]
	b	LBB0_4
LBB0_10:
	cmp	x8, #1
	b.lt	LBB0_26
; %bb.11:
	mov	x20, #0
	ldr	x9, [x19, #32]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.le	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9, x20, lsl #3]
	ldr	x0, [x8, #32]
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x10, [x8, #24]
	cmp	x0, x10
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_free
	ldr	x9, [x19, #32]
	ldr	x8, [x9, x20, lsl #3]
	str	xzr, [x8, #32]
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x8, #24]
	cbz	x0, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_free
	ldr	x9, [x19, #32]
	ldr	x8, [x9, x20, lsl #3]
	str	xzr, [x8, #24]
	b	LBB0_12
LBB0_18:
	cmp	x8, #1
	b.lt	LBB0_26
; %bb.19:
	mov	x20, #0
	ldr	x9, [x19, #32]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.le	LBB0_26
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9, x20, lsl #3]
	ldr	x0, [x8, #56]
	cbz	x0, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x10, [x8, #48]
	cmp	x0, x10
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	bl	_free
	ldr	x9, [x19, #32]
	ldr	x8, [x9, x20, lsl #3]
	str	xzr, [x8, #56]
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x0, [x8, #48]
	cbz	x0, LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	bl	_free
	ldr	x9, [x19, #32]
	ldr	x8, [x9, x20, lsl #3]
	str	xzr, [x8, #48]
	b	LBB0_20
LBB0_26:
	ldr	x9, [x19, #8]
	cmp	x9, #0
	b.le	LBB0_29
; %bb.27:
	mov	x10, #0
	ldr	x11, [x19, #32]
	lsl	x12, x8, #3
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11, x10]
	add	x14, x11, x12
	ldr	x14, [x14, x10]
	str	x14, [x11, x10]
	ldr	x11, [x19, #32]
	ldr	x14, [x11, x10]
	add	x15, x11, x12
	ldr	x15, [x15, x10]
	ldr	w16, [x13, #16]
	str	w16, [x14, #16]
	stp	xzr, xzr, [x15]
	ldr	w16, [x13, #40]
	str	w16, [x14, #40]
	stp	xzr, xzr, [x15, #24]
	ldr	w13, [x13, #64]
	str	w13, [x14, #64]
	stp	xzr, xzr, [x15, #48]
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_28
LBB0_29:
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
	add	x0, sp, #12
	bl	_hb_buffer_list_clear
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_32
; %bb.30:
	mov	x20, #0
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_hb_buffer_list_append
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.gt	LBB0_31
LBB0_32:
	add	x0, sp, #12
	bl	_hb_buffer_list_clear
LBB0_33:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nlmeans_filter
.subsections_via_symbols
