	.file	"extr_pci_hda.c_hda_reset_regs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Reset the HDA controller registers ...\n"
	.text
	.p2align 4
	.type	hda_reset_regs, @function
hda_reset_regs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	DPRINTF@PLT
	mov	edi, DWORD PTR 0[rbp]
	xor	esi, esi
	mov	edx, 4
	call	memset@PLT
	mov	ecx, DWORD PTR HDAC_GCAP_ISS_SHIFT[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR HDA_ISS_NO[rip]
	mov	eax, DWORD PTR HDA_OSS_NO[rip]
	mov	rsi, QWORD PTR HDAC_GCAP[rip]
	sal	edx, cl
	mov	ecx, DWORD PTR HDAC_GCAP_OSS_SHIFT[rip]
	sal	eax, cl
	or	edx, eax
	or	edx, DWORD PTR HDAC_GCAP_64OK[rip]
	call	hda_set_reg_by_offset@PLT
	mov	rsi, QWORD PTR HDAC_VMAJ[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	hda_set_reg_by_offset@PLT
	mov	rsi, QWORD PTR HDAC_OUTPAY[rip]
	mov	edx, 60
	mov	rdi, rbp
	call	hda_set_reg_by_offset@PLT
	mov	rsi, QWORD PTR HDAC_INPAY[rip]
	mov	edx, 29
	mov	rdi, rbp
	call	hda_set_reg_by_offset@PLT
	mov	rsi, QWORD PTR HDAC_CORBSIZE[rip]
	mov	edx, DWORD PTR HDAC_CORBSIZE_CORBSZCAP_256[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR HDAC_CORBSIZE_CORBSIZE_256[rip]
	call	hda_set_reg_by_offset@PLT
	mov	rsi, QWORD PTR HDAC_RIRBSIZE[rip]
	mov	edx, DWORD PTR HDAC_RIRBSIZE_RIRBSZCAP_256[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR HDAC_RIRBSIZE_RIRBSIZE_256[rip]
	call	hda_set_reg_by_offset@PLT
	cmp	QWORD PTR HDA_IOSS_NO[rip], 0
	jle	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbx
	add	rbx, 1
	call	hda_get_offset_stream@PLT
	mov	edx, DWORD PTR HDA_FIFO_SIZE[rip]
	add	rax, QWORD PTR HDAC_SDFIFOS[rip]
	mov	rdi, rbp
	mov	rsi, rax
	call	hda_set_reg_by_offset@PLT
	cmp	QWORD PTR HDA_IOSS_NO[rip], rbx
	jg	.L3
.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	hda_reset_regs, .-hda_reset_regs
	.comm	HDA_OSS_NO,4,4
	.comm	HDA_ISS_NO,4,4
	.comm	HDA_IOSS_NO,8,8
	.comm	HDA_FIFO_SIZE,4,4
	.comm	HDAC_VMAJ,8,8
	.comm	HDAC_SDFIFOS,8,8
	.comm	HDAC_RIRBSIZE_RIRBSZCAP_256,4,4
	.comm	HDAC_RIRBSIZE_RIRBSIZE_256,4,4
	.comm	HDAC_RIRBSIZE,8,8
	.comm	HDAC_OUTPAY,8,8
	.comm	HDAC_INPAY,8,8
	.comm	HDAC_GCAP_OSS_SHIFT,4,4
	.comm	HDAC_GCAP_ISS_SHIFT,4,4
	.comm	HDAC_GCAP_64OK,4,4
	.comm	HDAC_GCAP,8,8
	.comm	HDAC_CORBSIZE_CORBSZCAP_256,4,4
	.comm	HDAC_CORBSIZE_CORBSIZE_256,4,4
	.comm	HDAC_CORBSIZE,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_pci_hda.c_hda_reset_regs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Reset the HDA controller registers ...\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hda_reset_regs, %function
hda_reset_regs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, .L7
	bl	DPRINTF
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [r5]
	bl	memset
	ldr	r3, .L7+4
	ldr	r2, .L7+8
	ldr	ip, .L7+12
	ldr	r0, .L7+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, .L7+20
	ldr	ip, [ip]
	ldr	r0, [r0]
	lsl	r3, r3, r2
	ldr	r2, [r1]
	ldr	r1, .L7+24
	orr	r3, r3, ip, lsl r0
	orr	r2, r3, r2
	ldr	r1, [r1]
	mov	r0, r5
	bl	hda_set_reg_by_offset
	ldr	r3, .L7+28
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r5
	bl	hda_set_reg_by_offset
	ldr	r3, .L7+32
	mov	r2, #60
	ldr	r1, [r3]
	mov	r0, r5
	bl	hda_set_reg_by_offset
	ldr	r3, .L7+36
	mov	r2, #29
	ldr	r1, [r3]
	mov	r0, r5
	bl	hda_set_reg_by_offset
	ldr	r2, .L7+40
	ldr	r3, .L7+44
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L7+48
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	bl	hda_set_reg_by_offset
	ldr	r2, .L7+52
	ldr	r3, .L7+56
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L7+60
	ldr	r6, .L7+64
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	bl	hda_set_reg_by_offset
	ldr	r3, [r6]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r4, #0
	ldr	r8, .L7+68
	ldr	r7, .L7+72
.L3:
	mov	r0, r4
	bl	hda_get_offset_stream
	ldr	r1, [r7]
	ldr	r2, [r8]
	add	r1, r0, r1
	mov	r0, r5
	bl	hda_set_reg_by_offset
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	HDA_OSS_NO
	.word	HDAC_GCAP_OSS_SHIFT
	.word	HDA_ISS_NO
	.word	HDAC_GCAP_ISS_SHIFT
	.word	HDAC_GCAP_64OK
	.word	HDAC_GCAP
	.word	HDAC_VMAJ
	.word	HDAC_OUTPAY
	.word	HDAC_INPAY
	.word	HDAC_CORBSIZE_CORBSZCAP_256
	.word	HDAC_CORBSIZE_CORBSIZE_256
	.word	HDAC_CORBSIZE
	.word	HDAC_RIRBSIZE_RIRBSZCAP_256
	.word	HDAC_RIRBSIZE_RIRBSIZE_256
	.word	HDAC_RIRBSIZE
	.word	HDA_IOSS_NO
	.word	HDA_FIFO_SIZE
	.word	HDAC_SDFIFOS
	.size	hda_reset_regs, .-hda_reset_regs
	.comm	HDA_OSS_NO,4,4
	.comm	HDA_ISS_NO,4,4
	.comm	HDA_IOSS_NO,4,4
	.comm	HDA_FIFO_SIZE,4,4
	.comm	HDAC_VMAJ,4,4
	.comm	HDAC_SDFIFOS,4,4
	.comm	HDAC_RIRBSIZE_RIRBSZCAP_256,4,4
	.comm	HDAC_RIRBSIZE_RIRBSIZE_256,4,4
	.comm	HDAC_RIRBSIZE,4,4
	.comm	HDAC_OUTPAY,4,4
	.comm	HDAC_INPAY,4,4
	.comm	HDAC_GCAP_OSS_SHIFT,4,4
	.comm	HDAC_GCAP_ISS_SHIFT,4,4
	.comm	HDAC_GCAP_64OK,4,4
	.comm	HDAC_GCAP,4,4
	.comm	HDAC_CORBSIZE_CORBSZCAP_256,4,4
	.comm	HDAC_CORBSIZE_CORBSIZE_256,4,4
	.comm	HDAC_CORBSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
