	.file	"extr_idma.c_idma_enqueue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	idma_enqueue, @function
idma_enqueue:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	mov	r12, QWORD PTR 8[rbp]
	lea	r13, 4[r12]
	mov	rdi, r13
	call	spin_lock@PLT
	mov	QWORD PTR 8[r12], rbx
	mov	rdi, r13
	call	spin_unlock@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, QWORD PTR I2SLVL0ADDR[rip]
	add	edi, DWORD PTR idma[rip]
	add	rsi, QWORD PTR idma[rip+8]
	call	writel@PLT
	mov	edi, DWORD PTR idma[rip]
	mov	rsi, QWORD PTR I2SSTR0[rip]
	add	rsi, QWORD PTR idma[rip+8]
	call	writel@PLT
	mov	rdi, QWORD PTR I2SSIZE[rip]
	add	rdi, QWORD PTR idma[rip+8]
	call	readl@PLT
	mov	edx, DWORD PTR I2SSIZE_TRNMSK[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR I2SSIZE_SHIFT[rip]
	mov	r8d, eax
	mov	rsi, QWORD PTR I2SSIZE[rip]
	mov	eax, edx
	sar	edi, 2
	add	rsi, QWORD PTR idma[rip+8]
	sal	eax, cl
	and	edi, edx
	not	eax
	sal	edi, cl
	and	eax, r8d
	or	edi, eax
	call	writel@PLT
	mov	rdi, QWORD PTR I2SAHB[rip]
	add	rdi, QWORD PTR idma[rip+8]
	call	readl@PLT
	or	eax, DWORD PTR AHB_INTENLVL0[rip]
	mov	rsi, QWORD PTR I2SAHB[rip]
	mov	edi, eax
	add	rsi, QWORD PTR idma[rip+8]
	call	writel@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	idma_enqueue, .-idma_enqueue
	.comm	idma,16,16
	.comm	I2SSTR0,8,8
	.comm	I2SSIZE_TRNMSK,4,4
	.comm	I2SSIZE_SHIFT,4,4
	.comm	I2SSIZE,8,8
	.comm	I2SLVL0ADDR,8,8
	.comm	I2SAHB,8,8
	.comm	AHB_INTENLVL0,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_idma.c_idma_enqueue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	idma_enqueue, %function
idma_enqueue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r8, [r0]
	ldr	r4, .L4
	ldr	r6, [r8, #4]
	ldr	r7, .L4+4
	add	r9, r6, #4
	mov	r0, r9
	bl	spin_lock
	str	r5, [r6, #8]
	mov	r0, r9
	bl	spin_unlock
	ldr	r3, .L4+8
	ldr	r2, [r6]
	ldr	r0, [r4]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	add	r0, r0, r2
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L4+12
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	ldr	r0, [r4]
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r7]
	ldr	r0, [r4, #4]
	ldr	r5, .L4+16
	add	r0, r0, r3
	bl	readl
	ldr	r1, .L4+20
	ldr	r3, .L4+24
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r2, [r8]
	ldr	lr, [r4, #4]
	ldr	r1, [r7]
	bic	r0, r0, r3, lsl ip
	and	r2, r3, r2, asr #2
	add	r1, lr, r1
	orr	r0, r0, r2, lsl ip
	bl	writel
	ldr	r3, [r5]
	ldr	r0, [r4, #4]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L4+28
	ldr	r1, [r4, #4]
	ldr	r2, [r5]
	ldr	r3, [r3]
	add	r1, r1, r2
	orr	r0, r0, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	idma
	.word	I2SSIZE
	.word	I2SLVL0ADDR
	.word	I2SSTR0
	.word	I2SAHB
	.word	I2SSIZE_SHIFT
	.word	I2SSIZE_TRNMSK
	.word	AHB_INTENLVL0
	.size	idma_enqueue, .-idma_enqueue
	.comm	idma,8,4
	.comm	I2SSTR0,4,4
	.comm	I2SSIZE_TRNMSK,4,4
	.comm	I2SSIZE_SHIFT,4,4
	.comm	I2SSIZE,4,4
	.comm	I2SLVL0ADDR,4,4
	.comm	I2SAHB,4,4
	.comm	AHB_INTENLVL0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
