	.file	"extr_patch_ca0132.c_dspio_write_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dspio_write_wait, @function
dspio_write_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	edi, 1000
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	mov	rbp, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY[rip], eax
	je	.L1
	mov	edi, 1
	call	msleep@PLT
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, rbp
	call	time_before@PLT
	test	rax, rax
	je	.L1
.L3:
	mov	ecx, DWORD PTR VENDOR_DSPIO_STATUS[rip]
	xor	r8d, r8d
	xor	edx, edx
	mov	rdi, rbx
	mov	esi, DWORD PTR WIDGET_DSP_CTRL[rip]
	call	snd_hda_codec_read@PLT
	cmp	DWORD PTR VENDOR_STATUS_DSPIO_OK[rip], eax
	jne	.L7
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dspio_write_wait, .-dspio_write_wait
	.comm	jiffies,8,8
	.comm	WIDGET_DSP_CTRL,4,4
	.comm	VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY,4,4
	.comm	VENDOR_STATUS_DSPIO_OK,4,4
	.comm	VENDOR_DSPIO_STATUS,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_patch_ca0132.c_dspio_write_wait.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dspio_write_wait, %function
dspio_write_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	mov	r0, #1000
	bl	msecs_to_jiffies
	ldr	r6, .L8
	mov	r10, #0
	ldr	r3, [r6]
	ldr	r9, .L8+4
	ldr	r8, .L8+8
	ldr	r7, .L8+12
	ldr	fp, .L8+16
	add	r5, r0, r3
	b	.L3
.L7:
	ldr	r3, [fp]
	cmp	r3, r0
	beq	.L1
	mov	r0, #1
	bl	msleep
	mov	r1, r5
	ldr	r0, [r6]
	bl	time_before
	cmp	r0, #0
	beq	.L1
.L3:
	ldr	r3, [r9]
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r8]
	str	r10, [sp]
	bl	snd_hda_codec_read
	ldr	r3, [r7]
	cmp	r3, r0
	bne	.L7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	jiffies
	.word	VENDOR_DSPIO_STATUS
	.word	WIDGET_DSP_CTRL
	.word	VENDOR_STATUS_DSPIO_OK
	.word	VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY
	.size	dspio_write_wait, .-dspio_write_wait
	.comm	jiffies,4,4
	.comm	WIDGET_DSP_CTRL,4,4
	.comm	VENDOR_STATUS_DSPIO_SCP_RESPONSE_QUEUE_EMPTY,4,4
	.comm	VENDOR_STATUS_DSPIO_OK,4,4
	.comm	VENDOR_DSPIO_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
