	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_denoise
_do_denoise:                            ## @do_denoise
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rbx
	movq	8(%rsi), %r12
	movq	16(%rsi), %rsi
	movq	16(%r12), %rax
	movslq	%edx, %r13
	leaq	(,%r13,4), %rcx
	movl	(%rax,%r13,4), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	24(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	addq	16(%rbx), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %edi
	testl	%r13d, %r13d
	movl	(%rbx), %esi
	cmovel	%r13d, %esi
	movq	_CHROMA_SPATIAL@GOTPCREL(%rip), %r14
	cmoveq	_LUMA_SPATIAL@GOTPCREL(%rip), %r14
	movq	_CHROMA_TMP@GOTPCREL(%rip), %r15
	cmoveq	_LUMA_TMP@GOTPCREL(%rip), %r15
	callq	_AV_CEIL_RSHIFT
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %edi
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %esi
LBB0_2:
	callq	_AV_CEIL_RSHIFT
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r12), %rcx
	movl	(%rcx,%r13,4), %r10d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	(%rcx,%r13,4), %r11d
	movq	8(%rbx), %rcx
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %r14d
	movq	(%r15), %rdx
	movl	(%rcx,%rdx,4), %r15d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	%rax
	callq	_denoise
	addq	$48, %rsp
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHROMA_SPATIAL,8,3             ## @CHROMA_SPATIAL
	.comm	_LUMA_SPATIAL,8,3               ## @LUMA_SPATIAL
	.comm	_CHROMA_TMP,8,3                 ## @CHROMA_TMP
	.comm	_LUMA_TMP,8,3                   ## @LUMA_TMP
	.no_dead_strip	_do_denoise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_denoise
_do_denoise:                            ; @do_denoise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	ldp	x27, x26, [x1, #8]
	ldr	x8, [x27, #16]
	sbfiz	x28, x19, #2, #32
	ldr	w9, [x8, x28]
	ldr	x21, [x0]
	ldr	x8, [x26, #16]
	ldr	w8, [x8, x28]
	stp	w8, w9, [sp, #24]               ; 8-byte Folded Spill
	ldp	x25, x8, [x21, #16]
	ldr	w23, [x8, x28]
	ldr	w0, [x27, #12]
	ldr	w8, [x21]
	cmp	w2, #0
	csel	w1, wzr, w8, eq
Lloh0:
	adrp	x8, _CHROMA_SPATIAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHROMA_SPATIAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LUMA_SPATIAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LUMA_SPATIAL@GOTPAGEOFF]
Lloh4:
	adrp	x10, _CHROMA_TMP@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CHROMA_TMP@GOTPAGEOFF]
	csel	x20, x9, x8, eq
Lloh6:
	adrp	x8, _LUMA_TMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LUMA_TMP@GOTPAGEOFF]
	csel	x22, x8, x10, eq
	bl	_AV_CEIL_RSHIFT
	mov	x24, x0
	add	x25, x25, x28
	ldr	w0, [x27, #8]
	ldr	w8, [x21, #4]
	cmp	w19, #0
	csel	w1, wzr, w8, eq
	bl	_AV_CEIL_RSHIFT
	mov	x6, x0
	ldr	x8, [x27]
	ldr	w7, [x8, x28]
	ldr	x8, [x26]
	ldr	w8, [x8, x28]
	ldr	x9, [x21, #8]
	ldr	x10, [x20]
	ldr	w10, [x9, x10, lsl #2]
	ldr	x11, [x22]
	ldr	w9, [x9, x11, lsl #2]
	stp	w10, w9, [sp, #4]
	str	w8, [sp]
	mov	x0, x21
	ldp	w2, w1, [sp, #24]               ; 8-byte Folded Reload
	mov	x3, x23
	mov	x4, x25
	mov	x5, x24
	bl	_denoise
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHROMA_SPATIAL,8,3             ; @CHROMA_SPATIAL
	.comm	_LUMA_SPATIAL,8,3               ; @LUMA_SPATIAL
	.comm	_CHROMA_TMP,8,3                 ; @CHROMA_TMP
	.comm	_LUMA_TMP,8,3                   ; @LUMA_TMP
	.no_dead_strip	_do_denoise
.subsections_via_symbols
