	.file	"extr_pcm_drm_eld.c_eld_limit_rates.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	eld_limit_rates, @function
eld_limit_rates:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	esi, DWORD PTR 8[rsi]
	call	hw_param_interval@PLT
	mov	r12, QWORD PTR [rbx]
	mov	r13, rax
	mov	rdi, r12
	call	drm_eld_sad@PLT
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR SNDRV_PCM_HW_PARAM_CHANNELS[rip]
	mov	rdi, rbp
	mov	rbx, rax
	call	hw_param_interval_c@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	drm_eld_sad_count@PLT
	test	eax, eax
	je	.L2
	sub	eax, 1
	mov	r12d, 7
	lea	rax, 3[rax+rax*2]
	lea	r14, [rbx+rax*4]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	sad_max_channels@PLT
	cmp	DWORD PTR 0[rbp], eax
	ja	.L3
	or	r12d, DWORD PTR 4[rbx]
.L3:
	add	rbx, 12
	cmp	rbx, r14
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, 7
.L5:
	mov	r14d, DWORD PTR eld_rates[rip]
	mov	edi, r14d
	call	ARRAY_SIZE@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	ecx, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	edx, r14d
	pop	r12
	.cfi_def_cfa_offset 24
	mov	rdi, r13
	mov	esi, eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	snd_interval_list@PLT
	.cfi_endproc
.LFE0:
	.size	eld_limit_rates, .-eld_limit_rates
	.comm	eld_rates,4,4
	.comm	SNDRV_PCM_HW_PARAM_CHANNELS,4,4
	.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_pcm_drm_eld.c_eld_limit_rates.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eld_limit_rates, %function
eld_limit_rates:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, [r1, #4]
	mov	r5, r0
	bl	hw_param_interval
	ldr	r6, [r4]
	mov	r8, r0
	mov	r0, r6
	bl	drm_eld_sad
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L15
	mov	r0, r5
	ldr	r1, [r3]
	bl	hw_param_interval_c
	mov	r7, r0
	mov	r0, r6
	bl	drm_eld_sad_count
	subs	r5, r0, #0
	beq	.L2
	mov	r6, #7
.L4:
	mov	r0, r4
	bl	sad_max_channels
	ldr	r3, [r7]
	add	r4, r4, #12
	cmp	r3, r0
	ldrls	r3, [r4, #-8]
	orrls	r6, r6, r3
	subs	r5, r5, #1
	bne	.L4
	b	.L5
.L2:
	mov	r6, #7
.L5:
	ldr	r4, .L15+4
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	mov	r3, r6
	mov	r1, r0
	ldr	r2, [r4]
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	snd_interval_list
.L16:
	.align	2
.L15:
	.word	SNDRV_PCM_HW_PARAM_CHANNELS
	.word	eld_rates
	.size	eld_limit_rates, .-eld_limit_rates
	.comm	eld_rates,4,4
	.comm	SNDRV_PCM_HW_PARAM_CHANNELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
