	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlmeans_add_frame
_nlmeans_add_frame:                     ## @nlmeans_add_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r8
	movq	16(%rdi), %r10
	movl	(%rax), %eax
	movl	%eax, %ecx
	addl	$2, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %r9d
	addl	$2, %r9d
	sarl	%r9d
	leal	15(%r9), %eax
	addl	$30, %r9d
	testl	%eax, %eax
	cmovnsl	%eax, %r9d
	andl	$-16, %r9d
	movq	16(%rsi), %rax
	movl	12(%rax), %edi
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	(%r8,%r8,2), %rax
	movq	16(%r10,%rax,8), %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_nlmeans_alloc
	movq	8(%rbx), %rcx
	movq	16(%rbx), %r8
	leaq	(%rcx,%rcx,2), %rax
	movups	(%r14), %xmm0
	movups	%xmm0, (%r8,%rax,8)
	movq	(%rbx), %rcx
	movl	4(%rcx), %ecx
	movl	%ecx, %edx
	addl	$2, %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx), %r9d
	addl	$2, %r9d
	sarl	%r9d
	leal	15(%r9), %ecx
	addl	$30, %r9d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r9d
	andl	$-16, %r9d
	movq	16(%r14), %rdx
	movl	28(%rdx), %edi
	movl	24(%rdx), %esi
	movl	16(%rdx), %ecx
	movl	20(%rdx), %edx
	movq	16(%r8,%rax,8), %r8
	addq	$4, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_nlmeans_alloc
	movq	8(%rbx), %rcx
	movq	16(%rbx), %r8
	leaq	(%rcx,%rcx,2), %rax
	movups	(%r14), %xmm0
	movups	%xmm0, (%r8,%rax,8)
	movq	(%rbx), %rcx
	movl	8(%rcx), %ecx
	movl	%ecx, %edx
	addl	$2, %edx
	shrl	$31, %edx
	leal	(%rcx,%rdx), %r9d
	addl	$2, %r9d
	sarl	%r9d
	leal	15(%r9), %ecx
	addl	$30, %r9d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r9d
	andl	$-16, %r9d
	movq	16(%r14), %rdx
	movl	44(%rdx), %edi
	movl	40(%rdx), %esi
	movl	32(%rdx), %ecx
	movl	36(%rdx), %edx
	movq	16(%r8,%rax,8), %r8
	addq	$8, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_nlmeans_alloc
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	(%rax,%rax,2), %rdx
	movups	(%r14), %xmm0
	movups	%xmm0, (%rcx,%rdx,8)
	incq	%rax
	movq	%rax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nlmeans_add_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlmeans_add_frame
_nlmeans_add_frame:                     ; @nlmeans_add_frame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x0]
	ldr	w8, [x8]
	add	w10, w8, #2
	add	w8, w8, #3
	cmp	w10, #0
	csel	w8, w8, w10, lt
	asr	w8, w8, #1
	add	w10, w8, #15
	add	w8, w8, #30
	cmp	w10, #0
	csel	w8, w8, w10, lt
	and	w5, w8, #0xfffffff0
	ldr	x8, [x1, #16]
	ldp	w1, w0, [x8, #8]
	ldp	w3, w2, [x8]
	ldr	x8, [x19, #16]
	mov	w21, #24
	madd	x8, x9, x21, x8
	ldr	x4, [x8, #16]
	bl	_nlmeans_alloc
	ldp	x9, x8, [x19, #8]
	ldr	x10, [x19]
	madd	x8, x9, x21, x8
	ldr	q0, [x20]
	str	q0, [x8]
	ldr	w9, [x10, #4]
	add	w10, w9, #2
	add	w9, w9, #3
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #1
	add	w10, w9, #15
	add	w9, w9, #30
	cmp	w10, #0
	csel	w9, w9, w10, lt
	and	w5, w9, #0xfffffff0
	ldr	x9, [x20, #16]
	ldp	w1, w0, [x9, #24]
	ldp	w3, w2, [x9, #16]
	ldr	x8, [x8, #16]
	add	x4, x8, #4
	bl	_nlmeans_alloc
	ldp	x9, x8, [x19, #8]
	ldr	x10, [x19]
	madd	x8, x9, x21, x8
	ldr	q0, [x20]
	str	q0, [x8]
	ldr	w9, [x10, #8]
	add	w10, w9, #2
	add	w9, w9, #3
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #1
	add	w10, w9, #15
	add	w9, w9, #30
	cmp	w10, #0
	csel	w9, w9, w10, lt
	and	w5, w9, #0xfffffff0
	ldr	x9, [x20, #16]
	ldp	w1, w0, [x9, #40]
	ldp	w3, w2, [x9, #32]
	ldr	x8, [x8, #16]
	add	x4, x8, #8
	bl	_nlmeans_alloc
	ldp	x9, x8, [x19, #8]
	mul	x10, x9, x21
	ldr	q0, [x20]
	str	q0, [x8, x10]
	add	x8, x9, #1
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nlmeans_add_frame
.subsections_via_symbols
