	.file	"extr_rt_pci_rbus.c_ac0_dma_done_tasklet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ac0_dma_done_tasklet, @function
ac0_dma_done_tasklet:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR fRTMP_ADAPTER_HALT_IN_PROGRESS[rip]
	or	esi, DWORD PTR fRTMP_ADAPTER_NIC_NOT_EXIST[rip]
	call	RTMP_TEST_FLAG@PLT
	test	rax, rax
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR INT_AC0_DLY[rip]
	mov	esi, 1
	xor	edx, edx
	mov	rdi, rbp
	lea	r12, 4[rbp]
	mov	r13, QWORD PTR 8[rbp]
	not	eax
	and	DWORD PTR 0[rbp], eax
	call	RTMPHandleTxRingDmaDoneInterrupt@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	rbx, rax
	call	RTMP_INT_LOCK@PLT
	mov	esi, DWORD PTR INT_AC0_DLY[rip]
	test	DWORD PTR 0[rbp], esi
	jne	.L5
	test	rbx, rbx
	jne	.L5
	mov	rdi, rbp
	call	rt2860_int_enable@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r13
	call	tasklet_hi_schedule@PLT
.L7:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	xor	esi, esi
	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
	jmp	RTMP_INT_UNLOCK@PLT
	.cfi_endproc
.LFE0:
	.size	ac0_dma_done_tasklet, .-ac0_dma_done_tasklet
	.comm	fRTMP_ADAPTER_NIC_NOT_EXIST,4,4
	.comm	fRTMP_ADAPTER_HALT_IN_PROGRESS,4,4
	.comm	INT_AC0_DLY,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_rt_pci_rbus.c_ac0_dma_done_tasklet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ac0_dma_done_tasklet, %function
ac0_dma_done_tasklet:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L8
	ldr	r3, .L8+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	sub	sp, sp, #8
	orr	r1, r1, r3
	mov	r4, r0
	bl	RTMP_TEST_FLAG
	cmp	r0, #0
	beq	.L7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r2, #1
	ldr	r7, .L8+8
	ldr	r3, [r4]
	ldr	r1, [r7]
	str	r0, [sp, #4]
	bic	r3, r3, r1
	str	r2, [sp]
	str	r3, [r4]
	add	r3, sp, #8
	ldmdb	r3, {r1, r2}
	mov	r0, r4
	ldr	r8, [r4, #8]
	bl	RTMPHandleTxRingDmaDoneInterrupt
	mov	r5, r0
	add	r6, r4, #4
	mov	r1, #0
	mov	r0, r6
	bl	RTMP_INT_LOCK
	ldr	r1, [r7]
	ldr	r3, [r4]
	and	r3, r3, r1
	orrs	r3, r3, r5
	beq	.L3
	mov	r0, r8
	bl	tasklet_hi_schedule
.L5:
	mov	r0, r6
	mov	r1, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	RTMP_INT_UNLOCK
.L3:
	mov	r0, r4
	bl	rt2860_int_enable
	b	.L5
.L9:
	.align	2
.L8:
	.word	fRTMP_ADAPTER_HALT_IN_PROGRESS
	.word	fRTMP_ADAPTER_NIC_NOT_EXIST
	.word	INT_AC0_DLY
	.size	ac0_dma_done_tasklet, .-ac0_dma_done_tasklet
	.comm	fRTMP_ADAPTER_NIC_NOT_EXIST,4,4
	.comm	fRTMP_ADAPTER_HALT_IN_PROGRESS,4,4
	.comm	INT_AC0_DLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
