	.file	"extr_uaudio.c_uaudio_chan_fill_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uaudio_chan_fill_info, @function
uaudio_chan_fill_info:
.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
	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, 24
	.cfi_def_cfa_offset 80
	mov	r14d, DWORD PTR uaudio_default_bits[rip]
	mov	ebx, DWORD PTR uaudio_default_channels[rip]
	mov	r13, QWORD PTR uaudio_default_rate[rip]
	mov	edx, r14d
	sar	edx, 31
	shr	edx, 29
	lea	eax, [r14+rdx]
	and	eax, 7
	sub	eax, edx
	sub	r14d, eax
	mov	DWORD PTR 4[rsp], r14d
	je	.L21
	cmp	r14d, 32
	jg	.L21
	lea	rax, 4[rbp]
	mov	QWORD PTR 8[rsp], rax
	test	ebx, ebx
	je	.L37
.L4:
	cmp	DWORD PTR UAUDIO_CHANNELS_MAX[rip], ebx
	cmovle	ebx, DWORD PTR UAUDIO_CHANNELS_MAX[rip]
.L6:
	mov	ecx, DWORD PTR SBUF_AUTOEXTEND[rip]
	xor	esi, esi
	lea	rdi, 4[rbp]
	mov	edx, 4096
	call	sbuf_new@PLT
	test	rax, rax
	jne	.L38
	test	ebx, ebx
	je	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r15d, DWORD PTR 4[rsp]
	.p2align 4,,10
	.p2align 3
.L13:
	test	r13, r13
	jne	.L39
.L11:
	mov	rax, QWORD PTR uaudio_rate_list[rip]
	mov	r14d, 8
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	je	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r8d, r15d
	mov	ecx, ebx
	mov	rsi, r12
	mov	rdi, rbp
	call	uaudio_chan_fill_info_sub@PLT
	mov	rax, QWORD PTR uaudio_rate_list[rip]
	mov	rdx, QWORD PTR [rax+r14]
	add	r14, 8
	test	rdx, rdx
	jne	.L12
.L15:
	sub	r15d, 8
	jne	.L13
	sub	ebx, 1
	jne	.L16
.L17:
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L9
	add	rsp, 24
	.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
.L21:
	.cfi_restore_state
	lea	rax, 4[rbp]
	mov	DWORD PTR 4[rsp], 32
	mov	QWORD PTR 8[rsp], rax
	test	ebx, ebx
	jne	.L4
.L37:
	mov	rdi, r12
	call	usbd_get_speed@PLT
	mov	ebx, DWORD PTR UAUDIO_CHANNELS_MAX[rip]
	add	eax, -128
	cmp	eax, 1
	ja	.L6
	mov	edx, 4096
	xor	esi, esi
	lea	rdi, 4[rbp]
	mov	ebx, 4
	mov	ecx, DWORD PTR SBUF_AUTOEXTEND[rip]
	call	sbuf_new@PLT
	test	rax, rax
	je	.L16
	mov	DWORD PTR 0[rbp], 1
	jmp	.L16
.L38:
	mov	DWORD PTR 0[rbp], 1
	test	ebx, ebx
	jne	.L16
.L9:
	mov	rdi, QWORD PTR 8[rsp]
	add	rsp, 24
	.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
	jmp	sbuf_finish@PLT
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	mov	r8d, r15d
	mov	ecx, ebx
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	uaudio_chan_fill_info_sub@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	uaudio_chan_fill_info, .-uaudio_chan_fill_info
	.comm	uaudio_rate_list,8,8
	.comm	uaudio_default_rate,8,8
	.comm	uaudio_default_channels,4,4
	.comm	uaudio_default_bits,4,4
	.comm	UAUDIO_CHANNELS_MAX,4,4
	.comm	SBUF_AUTOEXTEND,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_uaudio.c_uaudio_chan_fill_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uaudio_chan_fill_info, %function
uaudio_chan_fill_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L35
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, [r3]
	sub	sp, sp, #20
	rsbs	r2, fp, #0
	and	r2, r2, #7
	and	r3, fp, #7
	rsbpl	r3, r2, #0
	subs	fp, fp, r3
	moveq	r3, #1
	movne	r3, #0
	cmp	fp, #32
	orrgt	r3, r3, #1
	ldr	r2, .L35+4
	cmp	r3, #0
	ldr	r7, [r2]
	ldr	r3, .L35+8
	movne	fp, #32
	add	r2, r0, #4
	cmp	r7, #0
	mov	r8, r0
	mov	r9, r1
	ldr	r10, [r3]
	str	r2, [sp, #12]
	beq	.L32
	ldr	r3, .L35+12
	ldr	r3, [r3]
	cmp	r7, r3
	movge	r7, r3
.L5:
	ldr	r3, .L35+16
	mov	r2, #4096
	mov	r1, #0
	ldr	r3, [r3]
	ldr	r0, [sp, #12]
	bl	sbuf_new
	cmp	r0, #0
	bne	.L33
	cmp	r7, #0
	beq	.L16
.L17:
	ldr	r6, .L35+20
.L15:
	mov	r5, fp
.L12:
	cmp	r10, #0
	bne	.L34
.L10:
	ldr	r3, [r6]
	ldr	r2, [r3]
	cmp	r2, #0
	movne	r4, #4
	beq	.L14
.L11:
	mov	r3, r7
	mov	r1, r9
	mov	r0, r8
	str	r5, [sp]
	bl	uaudio_chan_fill_info_sub
	ldr	r3, [r6]
	ldr	r2, [r3, r4]
	add	r4, r4, #4
	cmp	r2, #0
	bne	.L11
.L14:
	subs	r5, r5, #8
	bne	.L12
	subs	r7, r7, #1
	bne	.L15
.L16:
	ldr	r3, [r8]
	cmp	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r3, #1
	cmp	r7, #0
	str	r3, [r8]
	bne	.L17
.L8:
	ldr	r0, [sp, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	sbuf_finish
.L34:
	mov	r3, r7
	mov	r2, r10
	mov	r1, r9
	mov	r0, r8
	str	r5, [sp]
	bl	uaudio_chan_fill_info_sub
	b	.L10
.L32:
	mov	r0, r1
	bl	usbd_get_speed
	sub	r3, r0, #128
	cmp	r3, #1
	ldrhi	r3, .L35+12
	ldrhi	r7, [r3]
	bhi	.L5
.L4:
	ldr	r3, .L35+16
	mov	r1, r7
	mov	r2, #4096
	ldr	r3, [r3]
	ldr	r0, [sp, #12]
	bl	sbuf_new
	cmp	r0, #0
	moveq	r7, #4
	movne	r3, #1
	movne	r7, #4
	strne	r3, [r8]
	b	.L17
.L36:
	.align	2
.L35:
	.word	uaudio_default_bits
	.word	uaudio_default_channels
	.word	uaudio_default_rate
	.word	UAUDIO_CHANNELS_MAX
	.word	SBUF_AUTOEXTEND
	.word	uaudio_rate_list
	.size	uaudio_chan_fill_info, .-uaudio_chan_fill_info
	.comm	uaudio_rate_list,4,4
	.comm	uaudio_default_rate,4,4
	.comm	uaudio_default_channels,4,4
	.comm	uaudio_default_bits,4,4
	.comm	UAUDIO_CHANNELS_MAX,4,4
	.comm	SBUF_AUTOEXTEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
