	.file	"extr_ux500_dma.c_ux500_dma_channel_program.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ux500_dma_channel_program, @function
ux500_dma_channel_program:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR [rdi]
	mov	rbx, rdi
	mov	edi, 1
	cmp	rax, QWORD PTR MUSB_DMA_STATUS_UNKNOWN[rip]
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR MUSB_DMA_STATUS_BUSY[rip], rax
	sete	dil
.L2:
	call	BUG_ON@PLT
	mov	r8d, r14d
	mov	ecx, r13d
	mov	edx, r12d
	mov	rax, QWORD PTR MUSB_DMA_STATUS_BUSY[rip]
	mov	QWORD PTR 8[rbx], 0
	mov	esi, ebp
	mov	rdi, rbx
	mov	QWORD PTR [rbx], rax
	call	ux500_configure_channel@PLT
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR MUSB_DMA_STATUS_FREE[rip]
	mov	QWORD PTR [rbx], rdx
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ux500_dma_channel_program, .-ux500_dma_channel_program
	.comm	MUSB_DMA_STATUS_UNKNOWN,8,8
	.comm	MUSB_DMA_STATUS_FREE,8,8
	.comm	MUSB_DMA_STATUS_BUSY,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_ux500_dma.c_ux500_dma_channel_program.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ux500_dma_channel_program, %function
ux500_dma_channel_program:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	ldr	r0, .L7
	ldr	ip, [r4]
	ldr	r0, [r0]
	sub	sp, sp, #12
	cmp	ip, r0
	ldrne	r8, .L7+4
	moveq	r0, #1
	ldrne	r0, [r8]
	ldreq	r8, .L7+4
	subne	r0, r0, ip
	clzne	r0, r0
	lsrne	r0, r0, #5
	mov	r7, r3
	mov	r5, r1
	mov	r6, r2
	ldr	r9, [sp, #40]
	bl	BUG_ON
	mov	r0, #0
	ldr	r3, [r8]
	str	r9, [sp]
	mov	r2, r6
	str	r3, [r4]
	str	r0, [r4, #4]
	mov	r3, r7
	mov	r1, r5
	mov	r0, r4
	bl	ux500_configure_channel
	cmp	r0, #0
	ldreq	r3, .L7+8
	ldreq	r3, [r3]
	streq	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	.align	2
.L7:
	.word	MUSB_DMA_STATUS_UNKNOWN
	.word	MUSB_DMA_STATUS_BUSY
	.word	MUSB_DMA_STATUS_FREE
	.size	ux500_dma_channel_program, .-ux500_dma_channel_program
	.comm	MUSB_DMA_STATUS_UNKNOWN,4,4
	.comm	MUSB_DMA_STATUS_FREE,4,4
	.comm	MUSB_DMA_STATUS_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
