	.file	"extr_via82xx_modem.c_snd_via82xx_channel_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_via82xx_channel_reset, @function
snd_via82xx_channel_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rsi
	mov	esi, DWORD PTR OFFSET_CONTROL[rip]
	mov	rdi, rbx
	call	VIADEV_REG@PLT
	mov	edi, DWORD PTR VIA_REG_CTRL_PAUSE[rip]
	or	edi, DWORD PTR VIA_REG_CTRL_TERMINATE[rip]
	mov	esi, eax
	or	edi, DWORD PTR VIA_REG_CTRL_RESET[rip]
	call	outb@PLT
	mov	esi, DWORD PTR OFFSET_CONTROL[rip]
	mov	rdi, rbx
	call	VIADEV_REG@PLT
	mov	edi, eax
	call	inb@PLT
	mov	edi, 50
	call	udelay@PLT
	mov	esi, DWORD PTR OFFSET_CONTROL[rip]
	mov	rdi, rbx
	call	VIADEV_REG@PLT
	xor	edi, edi
	mov	esi, eax
	call	outb@PLT
	mov	esi, DWORD PTR OFFSET_STATUS[rip]
	mov	rdi, rbx
	call	VIADEV_REG@PLT
	mov	edi, 3
	mov	esi, eax
	call	outb@PLT
	mov	esi, DWORD PTR OFFSET_TYPE[rip]
	mov	rdi, rbx
	call	VIADEV_REG@PLT
	xor	edi, edi
	mov	esi, eax
	call	outb@PLT
	mov	QWORD PTR [rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_via82xx_channel_reset, .-snd_via82xx_channel_reset
	.comm	VIA_REG_CTRL_TERMINATE,4,4
	.comm	VIA_REG_CTRL_RESET,4,4
	.comm	VIA_REG_CTRL_PAUSE,4,4
	.comm	OFFSET_TYPE,4,4
	.comm	OFFSET_STATUS,4,4
	.comm	OFFSET_CONTROL,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_via82xx_modem.c_snd_via82xx_channel_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_via82xx_channel_reset, %function
snd_via82xx_channel_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r2, .L4
	ldr	r1, .L4+4
	ldr	r3, .L4+8
	ldr	r2, [r2]
	ldr	r5, [r1]
	ldr	r6, .L4+12
	ldr	r3, [r3]
	orr	r5, r5, r2
	ldr	r1, [r6]
	mov	r0, r4
	orr	r5, r5, r3
	bl	VIADEV_REG
	mov	r1, r0
	mov	r0, r5
	bl	outb
	ldr	r1, [r6]
	mov	r0, r4
	bl	VIADEV_REG
	bl	inb
	mov	r0, #50
	bl	udelay
	ldr	r1, [r6]
	mov	r0, r4
	bl	VIADEV_REG
	mov	r1, r0
	mov	r0, #0
	bl	outb
	ldr	r3, .L4+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	VIADEV_REG
	mov	r1, r0
	mov	r0, #3
	bl	outb
	ldr	r3, .L4+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	VIADEV_REG
	mov	r1, r0
	mov	r0, #0
	bl	outb
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	VIA_REG_CTRL_TERMINATE
	.word	VIA_REG_CTRL_PAUSE
	.word	VIA_REG_CTRL_RESET
	.word	OFFSET_CONTROL
	.word	OFFSET_STATUS
	.word	OFFSET_TYPE
	.size	snd_via82xx_channel_reset, .-snd_via82xx_channel_reset
	.comm	VIA_REG_CTRL_TERMINATE,4,4
	.comm	VIA_REG_CTRL_RESET,4,4
	.comm	VIA_REG_CTRL_PAUSE,4,4
	.comm	OFFSET_TYPE,4,4
	.comm	OFFSET_STATUS,4,4
	.comm	OFFSET_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
