	.file	"extr_softdma.c_softdma_worker.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"softdma_wait"
	.text
	.p2align 4
	.type	softdma_worker, @function
softdma_worker:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	rbx, 8[rdi]
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbx
	call	mtx_lock@PLT
.L2:
	mov	eax, DWORD PTR hz[rip]
	xor	edx, edx
	mov	rcx, rbp
	mov	rsi, rbx
	mov	rdi, r13
	mov	r8d, eax
	shr	r8d, 31
	add	r8d, eax
	sar	r8d
	call	mtx_sleep@PLT
	cmp	QWORD PTR 0[r13], 0
	je	.L2
	mov	rsi, r12
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR [rsp], 0
	call	softdma_process_descriptors@PLT
	mov	QWORD PTR 0[r13], 0
	mov	edi, DWORD PTR 12[r13]
	mov	rsi, r12
	call	xdma_callback@PLT
	mov	rdi, rbx
	call	mtx_unlock@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	softdma_worker, .-softdma_worker
	.comm	hz,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_softdma.c_softdma_worker.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"softdma_wait\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	softdma_worker, %function
softdma_worker:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L9
	sub	sp, sp, #24
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r8, #0
	ldr	r7, .L9+4
	ldr	r6, .L9+8
	add	r5, r0, #4
.L3:
	mov	r0, r5
	bl	mtx_lock
.L2:
	ldr	r2, [r7]
	mov	r3, r6
	add	r2, r2, r2, lsr #31
	asr	r2, r2, #1
	str	r2, [sp]
	mov	r1, r5
	mov	r2, #0
	mov	r0, r4
	bl	mtx_sleep
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L2
	add	r1, sp, #12
	mov	r0, r4
	str	r8, [sp, #16]
	str	r8, [sp, #12]
	bl	softdma_process_descriptors
	ldr	r0, [r4, #8]
	str	r8, [r4]
	add	r1, sp, #12
	bl	xdma_callback
	mov	r0, r5
	bl	mtx_unlock
	b	.L3
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	hz
	.word	.LC0
	.size	softdma_worker, .-softdma_worker
	.comm	hz,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
