	.file	"extr_atiixp.c_snd_atiixp_chip_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_atiixp_chip_start, @function
snd_atiixp_chip_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR CMD[rip]
	mov	rbp, rdi
	call	atiixp_read@PLT
	mov	ecx, DWORD PTR ATI_REG_CMD_SPDF_THRESHOLD_SHIFT[rip]
	mov	esi, 2
	mov	rdi, rbp
	sal	esi, cl
	or	esi, DWORD PTR ATI_REG_CMD_BURST_EN[rip]
	or	esi, eax
	mov	edx, esi
	mov	esi, DWORD PTR CMD[rip]
	call	atiixp_write@PLT
	mov	esi, DWORD PTR SPDF_CMD[rip]
	mov	rdi, rbp
	call	atiixp_read@PLT
	mov	edx, DWORD PTR ATI_REG_SPDF_CMD_LFSR[rip]
	or	edx, DWORD PTR ATI_REG_SPDF_CMD_SINGLE_CH[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SPDF_CMD[rip]
	not	edx
	and	edx, eax
	call	atiixp_write@PLT
	mov	esi, DWORD PTR ISR[rip]
	mov	rdi, rbp
	mov	edx, -1
	call	atiixp_write@PLT
	mov	esi, DWORD PTR IER[rip]
	mov	edx, DWORD PTR ATI_REG_IER_IO_STATUS_EN[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR ATI_REG_IER_IN_XRUN_EN[rip]
	or	edx, DWORD PTR ATI_REG_IER_OUT_XRUN_EN[rip]
	or	edx, DWORD PTR ATI_REG_IER_SPDF_XRUN_EN[rip]
	or	edx, DWORD PTR ATI_REG_IER_SPDF_STATUS_EN[rip]
	call	atiixp_write@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_atiixp_chip_start, .-snd_atiixp_chip_start
	.comm	SPDF_CMD,4,4
	.comm	ISR,4,4
	.comm	IER,4,4
	.comm	CMD,4,4
	.comm	ATI_REG_SPDF_CMD_SINGLE_CH,4,4
	.comm	ATI_REG_SPDF_CMD_LFSR,4,4
	.comm	ATI_REG_IER_SPDF_XRUN_EN,4,4
	.comm	ATI_REG_IER_SPDF_STATUS_EN,4,4
	.comm	ATI_REG_IER_OUT_XRUN_EN,4,4
	.comm	ATI_REG_IER_IO_STATUS_EN,4,4
	.comm	ATI_REG_IER_IN_XRUN_EN,4,4
	.comm	ATI_REG_CMD_SPDF_THRESHOLD_SHIFT,4,4
	.comm	ATI_REG_CMD_BURST_EN,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_atiixp.c_snd_atiixp_chip_start.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_atiixp_chip_start, %function
snd_atiixp_chip_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L4
	mov	r4, r0
	ldr	r1, [r6]
	bl	atiixp_read
	mov	r1, #2
	ldr	r2, .L4+4
	ldr	r3, .L4+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r5, .L4+12
	orr	r2, r3, r1, lsl r2
	orr	r2, r2, r0
	ldr	r1, [r6]
	mov	r0, r4
	bl	atiixp_write
	ldr	r1, [r5]
	mov	r0, r4
	bl	atiixp_read
	ldr	r3, .L4+16
	ldr	r2, .L4+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r5]
	orr	r2, r3, r2
	bic	r2, r0, r2
	mov	r0, r4
	bl	atiixp_write
	ldr	r3, .L4+24
	mov	r0, r4
	ldr	r1, [r3]
	mvn	r2, #0
	bl	atiixp_write
	ldr	r1, .L4+28
	ldr	r3, .L4+32
	ldr	r2, .L4+36
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r0, .L4+40
	ldr	r2, [r2]
	ldr	r1, .L4+44
	ldr	r0, [r0]
	orr	r3, r3, ip
	orr	r3, r3, r2
	ldr	r2, [r1]
	ldr	r1, .L4+48
	orr	r3, r3, r0
	ldr	r1, [r1]
	mov	r0, r4
	orr	r2, r3, r2
	bl	atiixp_write
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	CMD
	.word	ATI_REG_CMD_SPDF_THRESHOLD_SHIFT
	.word	ATI_REG_CMD_BURST_EN
	.word	SPDF_CMD
	.word	ATI_REG_SPDF_CMD_LFSR
	.word	ATI_REG_SPDF_CMD_SINGLE_CH
	.word	ISR
	.word	ATI_REG_IER_IN_XRUN_EN
	.word	ATI_REG_IER_IO_STATUS_EN
	.word	ATI_REG_IER_OUT_XRUN_EN
	.word	ATI_REG_IER_SPDF_XRUN_EN
	.word	ATI_REG_IER_SPDF_STATUS_EN
	.word	IER
	.size	snd_atiixp_chip_start, .-snd_atiixp_chip_start
	.comm	SPDF_CMD,4,4
	.comm	ISR,4,4
	.comm	IER,4,4
	.comm	CMD,4,4
	.comm	ATI_REG_SPDF_CMD_SINGLE_CH,4,4
	.comm	ATI_REG_SPDF_CMD_LFSR,4,4
	.comm	ATI_REG_IER_SPDF_XRUN_EN,4,4
	.comm	ATI_REG_IER_SPDF_STATUS_EN,4,4
	.comm	ATI_REG_IER_OUT_XRUN_EN,4,4
	.comm	ATI_REG_IER_IO_STATUS_EN,4,4
	.comm	ATI_REG_IER_IN_XRUN_EN,4,4
	.comm	ATI_REG_CMD_SPDF_THRESHOLD_SHIFT,4,4
	.comm	ATI_REG_CMD_BURST_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
