	.file	"extr_denoise.c_hb_denoise_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"y-spatial"
.LC1:
	.string	"cb-spatial"
.LC2:
	.string	"cr-spatial"
.LC3:
	.string	"y-temporal"
.LC4:
	.string	"cb-temporal"
.LC5:
	.string	"cr-temporal"
	.text
	.p2align 4
	.type	hb_denoise_init, @function
hb_denoise_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, 4
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	calloc@PLT
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 8[rsp]
	lea	rdx, .LC0[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rbx, rax
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 16[rbx], rax
	call	hb_dict_extract_double@PLT
	test	eax, eax
	jne	.L2
	movsd	xmm0, QWORD PTR HQDN3D_SPATIAL_LUMA_DEFAULT[rip]
	movsd	QWORD PTR 8[rsp], xmm0
.L2:
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 16[rsp]
	lea	rdx, .LC1[rip]
	call	hb_dict_extract_double@PLT
	test	eax, eax
	jne	.L3
	movsd	xmm0, QWORD PTR HQDN3D_SPATIAL_CHROMA_DEFAULT[rip]
	mulsd	xmm0, QWORD PTR 8[rsp]
	divsd	xmm0, QWORD PTR HQDN3D_SPATIAL_LUMA_DEFAULT[rip]
	movsd	QWORD PTR 16[rsp], xmm0
.L3:
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 24[rsp]
	lea	rdx, .LC2[rip]
	call	hb_dict_extract_double@PLT
	test	eax, eax
	jne	.L4
	movsd	xmm0, QWORD PTR 16[rsp]
	movsd	QWORD PTR 24[rsp], xmm0
.L4:
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 32[rsp]
	lea	rdx, .LC3[rip]
	call	hb_dict_extract_double@PLT
	test	eax, eax
	jne	.L5
	movsd	xmm0, QWORD PTR HQDN3D_TEMPORAL_LUMA_DEFAULT[rip]
	mulsd	xmm0, QWORD PTR 8[rsp]
	divsd	xmm0, QWORD PTR HQDN3D_SPATIAL_LUMA_DEFAULT[rip]
	movsd	QWORD PTR 32[rsp], xmm0
.L5:
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 40[rsp]
	lea	rdx, .LC4[rip]
	call	hb_dict_extract_double@PLT
	test	eax, eax
	jne	.L6
	movsd	xmm0, QWORD PTR 32[rsp]
	mulsd	xmm0, QWORD PTR 16[rsp]
	divsd	xmm0, QWORD PTR 8[rsp]
	movsd	QWORD PTR 40[rsp], xmm0
.L6:
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 48[rsp]
	lea	rdx, .LC5[rip]
	call	hb_dict_extract_double@PLT
	test	eax, eax
	jne	.L7
	movsd	xmm0, QWORD PTR 40[rsp]
	movsd	QWORD PTR 48[rsp], xmm0
.L7:
	mov	rax, QWORD PTR 8[rbx]
	movsd	xmm0, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	call	hqdn3d_precalc_coef@PLT
	mov	rax, QWORD PTR 8[rbx]
	movsd	xmm0, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR 4[rax]
	call	hqdn3d_precalc_coef@PLT
	mov	rax, QWORD PTR 8[rbx]
	movsd	xmm0, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 8[rax]
	call	hqdn3d_precalc_coef@PLT
	mov	rax, QWORD PTR 8[rbx]
	movsd	xmm0, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR 12[rax]
	call	hqdn3d_precalc_coef@PLT
	mov	rax, QWORD PTR 8[rbx]
	movsd	xmm0, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR 16[rax]
	call	hqdn3d_precalc_coef@PLT
	mov	rax, QWORD PTR 8[rbx]
	movsd	xmm0, QWORD PTR 48[rsp]
	mov	edi, DWORD PTR 20[rax]
	call	hqdn3d_precalc_coef@PLT
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hb_denoise_init, .-hb_denoise_init
	.comm	HQDN3D_TEMPORAL_LUMA_DEFAULT,8,8
	.comm	HQDN3D_SPATIAL_LUMA_DEFAULT,8,8
	.comm	HQDN3D_SPATIAL_CHROMA_DEFAULT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_denoise.c_hb_denoise_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"y-spatial\000"
	.align	2
.LC1:
	.ascii	"cb-spatial\000"
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.align	2
.LC2:
	.ascii	"cr-spatial\000"
	.align	2
.LC3:
	.ascii	"y-temporal\000"
	.align	2
.LC4:
	.ascii	"cb-temporal\000"
	.align	2
.LC5:
	.ascii	"cr-temporal\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hb_denoise_init, %function
hb_denoise_init:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #56
	mov	r5, r0
	mov	r6, r1
	mov	r0, #4
	mov	r1, #1
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	calloc
	mov	r4, r0
	str	r0, [r5, #4]
	ldr	r3, [r6]
	mov	r0, sp
	ldr	r1, [r5]
	ldr	r2, .L12+4
	str	r3, [r4, #8]
	bl	hb_dict_extract_double
	cmp	r0, #0
	ldreq	r3, .L12+8
	ldmiaeq	r3, {r2-r3}
	stmeq	sp, {r2-r3}
.L2:
	ldr	r2, .L12+12
	ldr	r1, [r5]
	add	r0, sp, #8
	bl	hb_dict_extract_double
	cmp	r0, #0
	bne	.L3
	ldmia	sp, {r2-r3}
	ldr	r1, .L12+16
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	ldr	r3, .L12+8
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	str	r0, [sp, #8]
	str	r1, [sp, #12]
.L3:
	ldr	r2, .L12+20
	ldr	r1, [r5]
	add	r0, sp, #16
	bl	hb_dict_extract_double
	cmp	r0, #0
	addeq	r3, sp, #8
	ldmiaeq	r3, {r2-r3}
	streq	r2, [sp, #16]
	streq	r3, [sp, #20]
.L4:
	ldr	r2, .L12+24
	ldr	r1, [r5]
	add	r0, sp, #24
	bl	hb_dict_extract_double
	cmp	r0, #0
	bne	.L5
	ldmia	sp, {r2-r3}
	ldr	r1, .L12+28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	ldr	r3, .L12+8
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	str	r0, [sp, #24]
	str	r1, [sp, #28]
.L5:
	ldr	r2, .L12+32
	ldr	r1, [r5]
	add	r0, sp, #32
	bl	hb_dict_extract_double
	cmp	r0, #0
	bne	.L6
	add	r3, sp, #8
	ldmia	r3, {r2-r3}
	add	r1, sp, #24
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	ldmia	sp, {r2-r3}
	bl	__aeabi_ddiv
	str	r0, [sp, #32]
	str	r1, [sp, #36]
.L6:
	ldr	r1, [r5]
	ldr	r2, .L12+36
	add	r0, sp, #40
	bl	hb_dict_extract_double
	cmp	r0, #0
	addeq	r3, sp, #32
	ldmiaeq	r3, {r2-r3}
	streq	r2, [sp, #40]
	streq	r3, [sp, #44]
.L7:
	ldmia	sp, {r2-r3}
	ldr	r1, [r4, #4]
	ldr	r0, [r1]
	bl	hqdn3d_precalc_coef
	add	r3, sp, #24
	ldmia	r3, {r2-r3}
	ldr	r1, [r4, #4]
	ldr	r0, [r1, #4]
	bl	hqdn3d_precalc_coef
	add	r3, sp, #8
	ldmia	r3, {r2-r3}
	ldr	r1, [r4, #4]
	ldr	r0, [r1, #8]
	bl	hqdn3d_precalc_coef
	add	r3, sp, #32
	ldmia	r3, {r2-r3}
	ldr	r1, [r4, #4]
	ldr	r0, [r1, #12]
	bl	hqdn3d_precalc_coef
	add	r3, sp, #16
	ldmia	r3, {r2-r3}
	ldr	r1, [r4, #4]
	ldr	r0, [r1, #16]
	bl	hqdn3d_precalc_coef
	add	r3, sp, #40
	ldmia	r3, {r2-r3}
	ldr	r1, [r4, #4]
	ldr	r0, [r1, #20]
	bl	hqdn3d_precalc_coef
	ldr	r3, [r6]
	str	r3, [r4]
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, #0
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	.LC0
	.word	HQDN3D_SPATIAL_LUMA_DEFAULT
	.word	.LC1
	.word	HQDN3D_SPATIAL_CHROMA_DEFAULT
	.word	.LC2
	.word	.LC3
	.word	HQDN3D_TEMPORAL_LUMA_DEFAULT
	.word	.LC4
	.word	.LC5
	.size	hb_denoise_init, .-hb_denoise_init
	.comm	HQDN3D_TEMPORAL_LUMA_DEFAULT,8,8
	.comm	HQDN3D_SPATIAL_LUMA_DEFAULT,8,8
	.comm	HQDN3D_SPATIAL_CHROMA_DEFAULT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
