	.file	"extr_af_afftdn.c_set_noise_profile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"bn="
.LC6:
	.string	"%d "
.LC7:
	.string	"\n"
	.text
	.p2align 4
	.type	set_noise_profile, @function
set_noise_profile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 216
	.cfi_def_cfa_offset 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 200[rsp], rax
	xor	eax, eax
	lea	r13, 80[rsp]
	.p2align 4,,10
	.p2align 3
.L2:
	movsd	xmm0, QWORD PTR [rdx+rax]
	movsd	QWORD PTR 0[r13+rax], xmm0
	add	rax, 8
	cmp	rax, 120
	jne	.L2
	pxor	xmm1, xmm1
	test	r14d, r14d
	je	.L3
	mov	r8, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	rsi, r8
.L4:
	xor	eax, eax
	movapd	xmm2, xmm1
	.p2align 4,,10
	.p2align 3
.L5:
	movsd	xmm0, QWORD PTR [rdx+rax]
	mulsd	xmm0, QWORD PTR 0[r13+rax]
	add	rax, 8
	addsd	xmm2, xmm0
	cmp	rax, 120
	jne	.L5
	add	ecx, 15
	movsd	QWORD PTR [rsi], xmm2
	add	rdx, 120
	add	rsi, 8
	cmp	ecx, 75
	jne	.L4
	mov	edi, DWORD PTR 40[rbp]
	mov	edx, 5
	mov	rsi, r8
	call	solve@PLT
	mov	rcx, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	mov	rdi, r13
	xor	esi, esi
	pxor	xmm1, xmm1
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	movapd	xmm2, xmm1
.L8:
	movsd	xmm0, QWORD PTR [rdx+rax]
	mulsd	xmm0, QWORD PTR [rcx+rax]
	add	rax, 8
	addsd	xmm2, xmm0
	cmp	rax, 40
	jne	.L8
	add	esi, 5
	movsd	QWORD PTR [rdi], xmm2
	add	rdx, 40
	add	rdi, 8
	cmp	esi, 75
	jne	.L7
.L3:
	mov	rbx, r13
	lea	r15, 200[rsp]
	movapd	xmm0, xmm1
	mov	rax, r13
	.p2align 4,,10
	.p2align 3
.L9:
	addsd	xmm0, QWORD PTR [rax]
	add	rax, 8
	cmp	r15, rax
	jne	.L9
	divsd	xmm0, QWORD PTR .LC1[rip]
	pxor	xmm1, xmm1
	mov	edx, 75
	subsd	xmm0, QWORD PTR .LC2[rip]
	cvttsd2si	eax, xmm0
	cvtsi2sd	xmm1, eax
	test	r14d, r14d
	je	.L39
.L10:
	mov	rax, QWORD PTR [r12]
	pxor	xmm0, xmm0
	movsd	xmm2, QWORD PTR .LC4[rip]
	mov	eax, DWORD PTR 28[rax]
	sub	eax, edx
	cvtsi2sd	xmm0, eax
	subsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	comisd	xmm1, xmm0
	jbe	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	subsd	xmm1, xmm2
	comisd	xmm1, xmm0
	ja	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movsd	xmm0, QWORD PTR [rbx]
	add	rbx, 8
	subsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbx], xmm0
	cmp	r15, rbx
	jne	.L14
	test	r14d, r14d
	jne	.L40
.L15:
	cmp	QWORD PTR 32[rbp], 0
	je	.L1
	addsd	xmm1, QWORD PTR .LC8[rip]
	pxor	xmm0, xmm0
	cvtsd2ss	xmm0, xmm1
	movss	DWORD PTR 24[rbp], xmm0
.L1:
	mov	rax, QWORD PTR 200[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 216
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L40:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_LOG_INFO[rip]
	mov	rdi, rbp
	xor	eax, eax
	xor	ebx, ebx
	lea	rdx, .LC5[rip]
	movsd	QWORD PTR 8[rsp], xmm1
	lea	r14, 16[rsp]
	call	av_log@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	lea	r15, .LC6[rip]
	.p2align 4,,10
	.p2align 3
.L16:
	movsd	xmm0, QWORD PTR 0[r13+rbx*8]
	movsd	QWORD PTR 8[rsp], xmm1
	call	lrint@PLT
	mov	edx, 24
	mov	esi, -24
	mov	DWORD PTR [r14+rbx*4], eax
	mov	edi, eax
	call	av_clip@PLT
	mov	esi, DWORD PTR AV_LOG_INFO[rip]
	mov	rdx, r15
	mov	rdi, rbp
	mov	DWORD PTR [r14+rbx*4], eax
	mov	ecx, eax
	add	rbx, 1
	xor	eax, eax
	call	av_log@PLT
	cmp	rbx, 15
	movsd	xmm1, QWORD PTR 8[rsp]
	jne	.L16
	mov	esi, DWORD PTR AV_LOG_INFO[rip]
	lea	rdx, .LC7[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	av_log@PLT
	mov	rdi, QWORD PTR [r12]
	mov	edx, 60
	mov	rsi, r14
	call	memcpy@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	jmp	.L15
.L39:
	movsd	xmm0, QWORD PTR 136[rsp]
	movsd	QWORD PTR 8[rsp], xmm1
	subsd	xmm0, xmm1
	call	lrint@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	mov	edx, eax
	jmp	.L10
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_noise_profile, .-set_noise_profile
	.comm	AV_LOG_INFO,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1076756480
	.align 8
.LC2:
	.long	0
	.long	1071644672
	.align 8
.LC3:
	.long	0
	.long	-1070333952
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.align 8
.LC8:
	.long	0
	.long	1074003968
	.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_af_afftdn.c_set_noise_profile.c"
	.text
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.global	__aeabi_d2iz
	.global	__aeabi_i2d
	.global	__aeabi_dcmpgt
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bn=\000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.global	__aeabi_d2f
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_noise_profile, %function
set_noise_profile:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #220
	add	ip, sp, #88
	str	r3, [sp, #12]
	ldr	r3, .L44
	str	ip, [sp, #8]
	str	r0, [sp, #16]
	str	r1, [sp, #20]
	ldr	r3, [r3]
	str	r3, [sp, #212]
	mov	r3,#0
	mov	r3, ip
	add	ip, r2, #120
.L2:
	ldmia	r2!, {r0-r1}
	cmp	r2, ip
	stm	r3!, {r0-r1}
	bne	.L2
	ldr	r3, [sp, #12]
	cmp	r3, #0
	beq	.L3
	mov	r9, #0
	ldr	r3, [sp, #16]
	ldm	r3, {r8, fp}
	mov	r10, fp
	str	fp, [sp, #4]
	ldr	fp, [sp, #8]
	add	r8, r8, #120
.L4:
	mov	r7, fp
	mov	r4, #0
	mov	r5, #0
	sub	r6, r8, #120
.L5:
	ldmia	r7!, {r2-r3}
	ldmia	r6!, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	cmp	r6, r8
	mov	r4, r0
	mov	r5, r1
	bne	.L5
	add	r9, r9, #15
	cmp	r9, #75
	stm	r10!, {r4-r5}
	add	r8, r6, #120
	bne	.L4
	mov	r9, #0
	ldr	r4, [sp, #16]
	ldr	fp, [sp, #4]
	mov	r2, #5
	mov	r1, fp
	ldr	r0, [r4, #20]
	bl	solve
	ldr	r2, [r4, #4]
	ldr	r10, [r4, #8]
	ldr	fp, [sp, #8]
	str	r2, [sp, #4]
	add	r8, r2, #40
.L7:
	mov	r7, r10
	mov	r4, #0
	mov	r5, #0
	ldr	r6, [sp, #4]
.L8:
	ldmia	r6!, {r2-r3}
	ldmia	r7!, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	cmp	r8, r6
	mov	r4, r0
	mov	r5, r1
	bne	.L8
	add	r9, r9, #5
	cmp	r9, #75
	stm	fp!, {r4-r5}
	add	r10, r10, #40
	bne	.L7
.L3:
	ldr	r1, [sp, #8]
	mov	r2, #0
	mov	r4, r1
	mov	r3, #0
	add	r8, r1, #120
.L9:
	mov	r0, r2
	mov	r1, r3
	ldmia	r4!, {r2-r3}
	bl	__aeabi_dadd
	cmp	r8, r4
	mov	r2, r0
	mov	r3, r1
	bne	.L9
	mov	r2, #0
	ldr	r3, .L44+4
	bl	__aeabi_ddiv
	ldr	r3, .L44+8
	mov	r2, #0
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	bl	__aeabi_i2d
	ldr	r3, [sp, #12]
	mov	r4, r0
	cmp	r3, #0
	mov	r5, r1
	movne	r0, #75
	beq	.L41
.L10:
	ldr	r3, [sp, #20]
	ldr	r3, [r3]
	ldr	r3, [r3, #28]
	sub	r0, r3, r0
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, #0
	ldr	r3, .L44+12
	mov	r4, r0
	mov	r5, r1
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L11
	mov	r6, #0
	mov	r10, #0
	ldr	r7, .L44+16
	ldr	fp, .L44+12
.L13:
	mov	r0, r4
	mov	r1, r5
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_dsub
	mov	r2, r10
	mov	r3, fp
	mov	r4, r0
	mov	r5, r1
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	bne	.L13
.L11:
	ldr	r6, [sp, #8]
.L14:
	ldmia	r6, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dsub
	stm	r6!, {r0-r1}
	cmp	r8, r6
	bne	.L14
	ldr	r3, [sp, #12]
	cmp	r3, #0
	bne	.L42
.L15:
	ldr	r6, [sp, #16]
	ldr	r3, [r6, #16]
	cmp	r3, #0
	beq	.L1
	mov	r2, #0
	ldr	r3, .L44+20
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	bl	__aeabi_d2f
	str	r0, [r6, #12]	@ float
.L1:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #212]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	add	sp, sp, #220
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	ldr	fp, [sp, #16]
	ldr	r7, .L44+24
	mov	r0, fp
	ldr	r2, .L44+28
	ldr	r1, [r7]
	bl	av_log
	ldr	r9, .L44+32
	ldr	r10, [sp, #8]
	add	r6, sp, #28
.L16:
	ldmia	r10!, {r0-r1}
	bl	lrint
	mov	r2, #24
	mvn	r1, #23
	bl	av_clip
	mov	r3, r0
	mov	r2, r9
	mov	r0, fp
	ldr	r1, [r7]
	str	r3, [r6], #4
	bl	av_log
	cmp	r8, r10
	bne	.L16
	ldr	r1, [r7]
	ldr	r2, .L44+36
	ldr	r0, [sp, #16]
	bl	av_log
	ldr	r3, [sp, #20]
	mov	r2, #60
	ldr	r0, [r3]
	add	r1, sp, #28
	bl	memcpy
	b	.L15
.L41:
	mov	r2, r4
	add	r1, sp, #144
	ldmia	r1, {r0-r1}
	mov	r3, r5
	bl	__aeabi_dsub
	bl	lrint
	b	.L10
.L43:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC3
	.word	1076756480
	.word	1071644672
	.word	-1070333952
	.word	1072693248
	.word	1074003968
	.word	AV_LOG_INFO
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	set_noise_profile, .-set_noise_profile
	.comm	AV_LOG_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
