	.file	"extr_al_hal_udma_main.c_al_udma_cdesc_packet_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"udma [%s %d]: packet completed. first desc %p (ixd 0x%x) descs %d\n"
	.text
	.p2align 4
	.globl	al_udma_cdesc_packet_get
	.type	al_udma_cdesc_packet_get, @function
al_udma_cdesc_packet_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	eax, DWORD PTR [rdi]
	xor	edi, edi
	test	DWORD PTR AL_UDMA_Q_FLAGS_NO_COMP_UPDATE[rip], eax
	sete	dil
	call	al_assert@PLT
	mov	r12, QWORD PTR 40[rbx]
	mov	edi, DWORD PTR [r12]
	call	swap32_from_le@PLT
	mov	rdi, rbx
	mov	rsi, rax
	mov	rbp, rax
	call	al_udma_new_cdesc@PLT
	xor	edi, edi
	cmp	QWORD PTR AL_FALSE[rip], rax
	sete	dil
	xor	r13d, r13d
	call	unlikely@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 8[rbx]
	lea	r13, 1[rax]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, r12
	mov	rdi, rbx
	call	al_cdesc_next_update@PLT
	mov	edi, DWORD PTR [rax]
	mov	r12, rax
	call	swap32_from_le@PLT
	mov	rdi, rbx
	mov	rsi, rax
	mov	rbp, rax
	call	al_udma_new_cdesc@PLT
	xor	edi, edi
	cmp	QWORD PTR AL_FALSE[rip], rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L9
	xor	edi, edi
	add	r13, 1
	cmp	QWORD PTR 16[rbx], r13
	setge	dil
	call	al_assert@PLT
.L3:
	mov	rdi, rbp
	call	cdesc_is_last@PLT
	test	eax, eax
	je	.L5
	mov	esi, DWORD PTR 24[rbx]
	mov	rdi, rbx
	call	al_udma_cdesc_idx_to_ptr@PLT
	mov	rsi, r12
	mov	rdi, rbx
	mov	QWORD PTR [r14], rax
	mov	QWORD PTR 8[rbx], 0
	call	al_cdesc_next_update@PLT
	mov	edx, DWORD PTR 28[rbx]
	mov	r8d, DWORD PTR 24[rbx]
	mov	r9, r13
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR 32[rbx]
	lea	rdi, .LC0[rip]
	mov	rcx, QWORD PTR [r14]
	mov	esi, DWORD PTR [rax]
	call	al_dbg@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	QWORD PTR 8[rbx], r13
	xor	r13d, r13d
	mov	QWORD PTR 40[rbx], r12
	mov	rax, r13
	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	al_udma_cdesc_packet_get, .-al_udma_cdesc_packet_get
	.comm	AL_UDMA_Q_FLAGS_NO_COMP_UPDATE,4,4
	.comm	AL_FALSE,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_al_hal_udma_main.c_al_udma_cdesc_packet_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"udma [%s %d]: packet completed. first desc %p (ixd "
	.ascii	"0x%x) descs %d\012\000"
	.text
	.align	2
	.global	al_udma_cdesc_packet_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	al_udma_cdesc_packet_get, %function
al_udma_cdesc_packet_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r3, .L10
	ldr	r2, [r0]
	ldr	r3, [r3]
	sub	sp, sp, #8
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	mov	r10, r1
	bl	al_assert
	ldr	r5, [r6, #24]
	ldr	r9, .L10+4
	ldr	r0, [r5]
	bl	swap32_from_le
	mov	r4, r0
	mov	r0, r6
	mov	r1, r4
	bl	al_udma_new_cdesc
	ldr	r3, [r9]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	movne	r8, #0
	bne	.L1
	ldr	r8, [r6, #4]
	add	r8, r8, #1
	b	.L3
.L5:
	mov	r1, r5
	mov	r0, r6
	bl	al_cdesc_next_update
	mov	r5, r0
	ldr	r0, [r0]
	bl	swap32_from_le
	mov	r4, r0
	mov	r0, r6
	mov	r1, r4
	bl	al_udma_new_cdesc
	ldr	r3, [r9]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L9
	ldr	r0, [r6, #8]
	add	r8, r8, #1
	cmp	r0, r8
	movlt	r0, #0
	movge	r0, #1
	bl	al_assert
.L3:
	mov	r0, r4
	bl	cdesc_is_last
	subs	r7, r0, #0
	beq	.L5
	ldr	r1, [r6, #12]
	mov	r0, r6
	bl	al_udma_cdesc_idx_to_ptr
	mov	r3, #0
	str	r0, [r10]
	mov	r1, r5
	str	r3, [r6, #4]
	mov	r0, r6
	bl	al_cdesc_next_update
	ldr	r3, [r6, #20]
	ldr	r2, [r6, #12]
	ldr	r1, [r3]
	str	r0, [r6, #24]
	ldr	r3, [r10]
	stm	sp, {r2, r8}
	ldr	r0, .L10+8
	ldr	r2, [r6, #16]
	bl	al_dbg
.L1:
	mov	r0, r8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	str	r8, [r6, #4]
	mov	r8, r7
	mov	r0, r8
	str	r5, [r6, #24]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	AL_UDMA_Q_FLAGS_NO_COMP_UPDATE
	.word	AL_FALSE
	.word	.LC0
	.size	al_udma_cdesc_packet_get, .-al_udma_cdesc_packet_get
	.comm	AL_UDMA_Q_FLAGS_NO_COMP_UPDATE,4,4
	.comm	AL_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
