	.file	"extr_cs5530.c_cs5530_set_dma_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cs5530_set_dma_mode, @function
cs5530_set_dma_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rsi]
	add	eax, -128
	cmp	eax, 5
	ja	.L2
	lea	rdx, CSWTCH.1[rip]
	mov	r12d, DWORD PTR [rdx+rax*4]
	call	CS5530_BASEREG@PLT
	lea	r13, 4[rax]
	mov	rbx, rax
	mov	rdi, r13
	call	inl@PLT
	mov	edx, eax
	and	edx, -2147483648
	or	r12d, edx
	test	BYTE PTR 4[rbp], 1
	je	.L6
	test	r12d, 1048576
	je	.L4
	or	eax, 1048576
	mov	edi, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	call	CS5530_BASEREG@PLT
	lea	r13, 4[rax]
	mov	rbx, rax
	mov	rdi, r13
	call	inl@PLT
	mov	r12d, eax
	and	r12d, -2147483648
	test	BYTE PTR 4[rbp], 1
	je	.L6
.L4:
	and	eax, -1048577
	mov	edi, eax
.L5:
	mov	rsi, r13
	call	outl@PLT
	lea	rsi, 12[rbx]
.L14:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	outl@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rsi, r13
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	cs5530_set_dma_mode, .-cs5530_set_dma_mode
	.section	.rodata
	.align 16
	.type	CSWTCH.1, @object
	.size	CSWTCH.1, 24
CSWTCH.1:
	.long	9506864
	.long	9507136
	.long	9572944
	.long	8224
	.long	74017
	.long	489329
	.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_cs5530.c_cs5530_set_dma_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cs5530_set_dma_mode, %function
cs5530_set_dma_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	sub	r3, r3, #128
	cmp	r3, #5
	mov	r4, r1
	bhi	.L2
	ldr	r2, .L15
	ldr	r7, [r2, r3, lsl #2]
	bl	CS5530_BASEREG
	add	r6, r0, #4
	mov	r5, r0
	mov	r0, r6
	bl	inl
	ldr	r3, [r4, #4]
	and	r4, r0, #-2147483648
	tst	r3, #1
	orr	r4, r4, r7
	beq	.L6
	tst	r4, #1048576
	beq	.L4
	orr	r0, r0, #1048576
	b	.L5
.L2:
	bl	CS5530_BASEREG
	add	r6, r0, #4
	mov	r5, r0
	mov	r0, r6
	bl	inl
	ldr	r3, [r4, #4]
	and	r4, r0, #-2147483648
	tst	r3, #1
	beq	.L6
.L4:
	bic	r0, r0, #1048576
.L5:
	mov	r1, r6
	bl	outl
	mov	r0, r4
	add	r1, r5, #12
	pop	{r4, r5, r6, r7, r8, lr}
	b	outl
.L6:
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	outl
.L16:
	.align	2
.L15:
	.word	.LANCHOR0
	.size	cs5530_set_dma_mode, .-cs5530_set_dma_mode
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.1, %object
	.size	CSWTCH.1, 24
CSWTCH.1:
	.word	9506864
	.word	9507136
	.word	9572944
	.word	8224
	.word	74017
	.word	489329
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
