	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hqdn3d_denoise_temporal
_hqdn3d_denoise_temporal:               ## @hqdn3d_denoise_temporal
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movq	%r9, %r12
	movq	%rdx, %r13
	addq	$8192, %r12                     ## imm = 0x2000
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movl	%eax, %r15d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	%rax, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzwl	(%r13,%rbx,2), %edi
	movq	%rsi, %r14
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_hqdn3d_lowpass_mul
	movq	%r14, %rsi
	movw	%ax, (%r13,%rbx,2)
	addl	$127, %eax
	movb	%ah, (%rsi,%rbx)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hqdn3d_denoise_temporal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hqdn3d_denoise_temporal
_hqdn3d_denoise_temporal:               ; @hqdn3d_denoise_temporal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w4, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	w24, #0
	add	x23, x5, #2, lsl #12            ; =8192
	sxtw	x25, w20
	sbfiz	x26, x20, #1, #32
	mov	w27, w3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x25
	add	w24, w24, #1
	add	x21, x21, x26
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w24, w8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x19, x28, #1
	ldrh	w0, [x21, x19]
	mov	w1, #0
	mov	x2, x23
	bl	_hqdn3d_lowpass_mul
	strh	w0, [x21, x19]
	add	w8, w0, #127
	lsr	w8, w8, #8
	strb	w8, [x22, x28]
	add	x28, x28, #1
	cmp	x27, x28
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hqdn3d_denoise_temporal
.subsections_via_symbols
