	.file	"extr_arqueue.c_ARQ_PostRequestAsync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ARQ_PostRequestAsync
	.type	ARQ_PostRequestAsync, @function
ARQ_PostRequestAsync:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	QWORD PTR 32[rdi], rdx
	mov	ecx, DWORD PTR ARQ_TASK_READY[rip]
	mov	rax, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	QWORD PTR 56[rdi], rsi
	mov	DWORD PTR 40[rdi], ecx
	test	rax, rax
	cmove	rax, QWORD PTR __ARQCallbackDummy[rip]
	mov	QWORD PTR 16[rdi], r8
	mov	QWORD PTR 24[rdi], r9
	mov	QWORD PTR 8[rdi], rdx
	mov	QWORD PTR 48[rdi], rbp
	mov	QWORD PTR [rdi], rax
	xor	edi, edi
	call	_CPU_ISR_Disable@PLT
	cmp	QWORD PTR ARQ_PRIO_LO[rip], rbp
	lea	rsi, 44[rbx]
	je	.L11
	lea	rdi, __ARQReqQueueHi[rip]
	call	__lwp_queue_appendI@PLT
.L4:
	mov	eax, DWORD PTR __ARQReqPendingLo[rip]
	test	eax, eax
	jne	.L6
	cmp	QWORD PTR __ARQReqPendingHi[rip], 0
	je	.L12
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	_CPU_ISR_Restore@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, __ARQReqQueueLo[rip]
	call	__lwp_queue_appendI@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, __ARQReqQueueHi[rip]
	call	__lwp_queue_getI@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L13
	cmp	QWORD PTR __ARQReqPendingHi[rip], 0
	jne	.L6
	xor	eax, eax
	call	__ARQServiceQueueLo@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR ARQ_TASK_RUNNING[rip]
	mov	rcx, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 24[rbx]
	mov	DWORD PTR 40[rbx], eax
	mov	rdi, QWORD PTR 32[rbx]
	call	AR_StartDMA@PLT
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR __ARQReqPendingHi[rip], rbx
	mov	QWORD PTR __ARQCallbackHi[rip], rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ARQ_PostRequestAsync, .-ARQ_PostRequestAsync
	.comm	__ARQReqQueueLo,4,4
	.comm	__ARQReqQueueHi,4,4
	.comm	__ARQReqPendingLo,4,4
	.comm	__ARQReqPendingHi,8,8
	.comm	__ARQCallbackHi,8,8
	.comm	__ARQCallbackDummy,8,8
	.comm	ARQ_TASK_RUNNING,4,4
	.comm	ARQ_TASK_READY,4,4
	.comm	ARQ_PRIO_LO,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_arqueue.c_ARQ_PostRequestAsync.c"
	.text
	.align	2
	.global	ARQ_PostRequestAsync
	.syntax unified
	.arm
	.fpu softvfp
	.type	ARQ_PostRequestAsync, %function
ARQ_PostRequestAsync:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r3
	mov	r4, r0
	ldr	r3, [sp, #28]
	ldr	ip, .L13
	cmp	r3, #0
	ldreq	r3, .L13+4
	ldr	lr, [ip]
	ldreq	r3, [r3]
	str	r1, [r0, #32]
	str	r2, [r0, #16]
	ldr	ip, [sp, #16]
	ldr	r1, [sp, #20]
	ldr	r2, [sp, #24]
	str	lr, [r0, #20]
	str	ip, [r0, #8]
	str	r1, [r0, #12]
	str	r2, [r0, #4]
	str	r5, [r0, #28]
	str	r3, [r4], #24
	mov	r0, #0
	bl	_CPU_ISR_Disable
	ldr	r3, .L13+8
	mov	r1, r4
	ldr	r3, [r3]
	cmp	r3, r5
	ldreq	r0, .L13+12
	ldrne	r0, .L13+16
	bl	__lwp_queue_appendI
	ldr	r3, .L13+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r4, .L13+24
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L11
.L6:
	pop	{r4, r5, r6, lr}
	mov	r0, #0
	b	_CPU_ISR_Restore
.L11:
	ldr	r0, .L13+16
	bl	__lwp_queue_getI
	subs	r5, r0, #0
	bne	.L12
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L6
	bl	__ARQServiceQueueLo
	b	.L6
.L12:
	ldr	r2, .L13+28
	ldr	r3, [r5, #4]
	ldr	r1, [r2]
	ldr	r0, [r5, #16]
	ldr	r2, [r5, #8]
	str	r1, [r5, #20]
	ldr	r1, [r5, #12]
	bl	AR_StartDMA
	ldr	r2, [r5]
	ldr	r3, .L13+32
	str	r5, [r4]
	str	r2, [r3]
	b	.L6
.L14:
	.align	2
.L13:
	.word	ARQ_TASK_READY
	.word	__ARQCallbackDummy
	.word	ARQ_PRIO_LO
	.word	__ARQReqQueueLo
	.word	__ARQReqQueueHi
	.word	__ARQReqPendingLo
	.word	__ARQReqPendingHi
	.word	ARQ_TASK_RUNNING
	.word	__ARQCallbackHi
	.size	ARQ_PostRequestAsync, .-ARQ_PostRequestAsync
	.comm	__ARQReqQueueLo,4,4
	.comm	__ARQReqQueueHi,4,4
	.comm	__ARQReqPendingLo,4,4
	.comm	__ARQReqPendingHi,4,4
	.comm	__ARQCallbackHi,4,4
	.comm	__ARQCallbackDummy,4,4
	.comm	ARQ_TASK_RUNNING,4,4
	.comm	ARQ_TASK_READY,4,4
	.comm	ARQ_PRIO_LO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
