	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_denoise_init
_hb_denoise_init:                       ## @hb_denoise_init
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$4, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	%rax, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, 16(%r15)
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-32(%rbp), %rdi
	callq	_hb_dict_extract_double
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -32(%rbp)
LBB0_2:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	leaq	-40(%rbp), %rdi
	callq	_hb_dict_extract_double
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_HQDN3D_SPATIAL_CHROMA_DEFAULT@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	-32(%rbp), %xmm0
	movq	_HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	movsd	%xmm0, -40(%rbp)
LBB0_4:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	leaq	-72(%rbp), %rdi
	callq	_hb_dict_extract_double
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, -72(%rbp)
LBB0_6:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdx
	leaq	-56(%rbp), %rdi
	callq	_hb_dict_extract_double
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_HQDN3D_TEMPORAL_LUMA_DEFAULT@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	-32(%rbp), %xmm0
	movq	_HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	movsd	%xmm0, -56(%rbp)
LBB0_8:
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	leaq	-48(%rbp), %rdi
	callq	_hb_dict_extract_double
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	mulsd	-40(%rbp), %xmm0
	divsd	-32(%rbp), %xmm0
	movsd	%xmm0, -48(%rbp)
LBB0_10:
	movl	(%rbx), %esi
	leaq	L_.str.5(%rip), %rdx
	leaq	-64(%rbp), %rdi
	callq	_hb_dict_extract_double
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movsd	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, -64(%rbp)
LBB0_12:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_hqdn3d_precalc_coef
	movq	8(%r15), %rax
	movl	4(%rax), %edi
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_hqdn3d_precalc_coef
	movq	8(%r15), %rax
	movl	8(%rax), %edi
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_hqdn3d_precalc_coef
	movq	8(%r15), %rax
	movl	12(%rax), %edi
	movsd	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_hqdn3d_precalc_coef
	movq	8(%r15), %rax
	movl	16(%rax), %edi
	movsd	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_hqdn3d_precalc_coef
	movq	8(%r15), %rax
	movl	20(%rax), %edi
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_hqdn3d_precalc_coef
	movq	(%r14), %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"y-spatial"

	.comm	_HQDN3D_SPATIAL_LUMA_DEFAULT,8,3 ## @HQDN3D_SPATIAL_LUMA_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"cb-spatial"

	.comm	_HQDN3D_SPATIAL_CHROMA_DEFAULT,8,3 ## @HQDN3D_SPATIAL_CHROMA_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"cr-spatial"

L_.str.3:                               ## @.str.3
	.asciz	"y-temporal"

	.comm	_HQDN3D_TEMPORAL_LUMA_DEFAULT,8,3 ## @HQDN3D_TEMPORAL_LUMA_DEFAULT
L_.str.4:                               ## @.str.4
	.asciz	"cb-temporal"

L_.str.5:                               ## @.str.5
	.asciz	"cr-temporal"

	.no_dead_strip	_hb_denoise_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_denoise_init
_hb_denoise_init:                       ; @hb_denoise_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x21, x0
	mov	w0, #4
	mov	w1, #1
	bl	_calloc
	mov	x20, x0
	str	x0, [x21, #8]
	ldr	x8, [x19]
	str	x8, [x0, #16]
	ldr	w1, [x21]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #40
	bl	_hb_dict_extract_double
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	d0, [x8]
	str	d0, [sp, #40]
LBB0_2:
	ldr	w1, [x21]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #32
	bl	_hb_dict_extract_double
	cbnz	w0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _HQDN3D_SPATIAL_CHROMA_DEFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HQDN3D_SPATIAL_CHROMA_DEFAULT@GOTPAGEOFF]
Lloh9:
	ldr	d0, [x8]
	ldr	d1, [sp, #40]
	fmul	d0, d0, d1
Lloh10:
	adrp	x8, _HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	d1, [x8]
	fdiv	d0, d0, d1
	str	d0, [sp, #32]
LBB0_4:
	ldr	w1, [x21]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_hb_dict_extract_double
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	d0, [sp, #32]
	str	d0, [sp, #24]
LBB0_6:
	ldr	w1, [x21]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #16
	bl	_hb_dict_extract_double
	cbnz	w0, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _HQDN3D_TEMPORAL_LUMA_DEFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HQDN3D_TEMPORAL_LUMA_DEFAULT@GOTPAGEOFF]
Lloh19:
	ldr	d0, [x8]
	ldr	d1, [sp, #40]
	fmul	d0, d0, d1
Lloh20:
	adrp	x8, _HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HQDN3D_SPATIAL_LUMA_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	d1, [x8]
	fdiv	d0, d0, d1
	str	d0, [sp, #16]
LBB0_8:
	ldr	w1, [x21]
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #8
	bl	_hb_dict_extract_double
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	d0, [sp, #16]
	ldr	d1, [sp, #32]
	fmul	d0, d0, d1
	ldr	d1, [sp, #40]
	fdiv	d0, d0, d1
	str	d0, [sp, #8]
LBB0_10:
	ldr	w1, [x21]
Lloh25:
	adrp	x2, l_.str.5@PAGE
Lloh26:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, sp
	bl	_hb_dict_extract_double
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	d0, [sp, #8]
	str	d0, [sp]
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	d0, [sp, #40]
	bl	_hqdn3d_precalc_coef
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	ldr	d0, [sp, #16]
	bl	_hqdn3d_precalc_coef
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	ldr	d0, [sp, #32]
	bl	_hqdn3d_precalc_coef
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #12]
	ldr	d0, [sp, #8]
	bl	_hqdn3d_precalc_coef
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #16]
	ldr	d0, [sp, #24]
	bl	_hqdn3d_precalc_coef
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #20]
	ldr	d0, [sp]
	bl	_hqdn3d_precalc_coef
	ldr	x8, [x19]
	str	x8, [x20]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"y-spatial"

	.comm	_HQDN3D_SPATIAL_LUMA_DEFAULT,8,3 ; @HQDN3D_SPATIAL_LUMA_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"cb-spatial"

	.comm	_HQDN3D_SPATIAL_CHROMA_DEFAULT,8,3 ; @HQDN3D_SPATIAL_CHROMA_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"cr-spatial"

l_.str.3:                               ; @.str.3
	.asciz	"y-temporal"

	.comm	_HQDN3D_TEMPORAL_LUMA_DEFAULT,8,3 ; @HQDN3D_TEMPORAL_LUMA_DEFAULT
l_.str.4:                               ; @.str.4
	.asciz	"cb-temporal"

l_.str.5:                               ; @.str.5
	.asciz	"cr-temporal"

	.no_dead_strip	_hb_denoise_init
.subsections_via_symbols
