	.file	"extr_hw.c__rtl88ee_return_beacon_queue_skb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rtl88ee_return_beacon_queue_skb, @function
_rtl88ee_return_beacon_queue_skb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	call	rtl_priv@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	rtl_pcipriv@PLT
	mov	edi, eax
	call	rtl_pcidev@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	rbx, rax
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR BEACON_QUEUE[rip]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 8[rbx]
	lea	r14, [rax+rdx*8]
	call	spin_lock_irqsave@PLT
	lea	rbx, 12[r14]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR [r14]
	mov	rax, QWORD PTR 16[r14]
	mov	rdi, rbx
	lea	rsi, [rax+rdx*4]
	mov	QWORD PTR 16[rsp], rsi
	call	__skb_dequeue@PLT
	mov	r9d, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	ecx, DWORD PTR HW_DESC_TXBUFF_ADDR[rip]
	mov	rdi, r12
	mov	r13d, DWORD PTR [rax]
	mov	r15, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, 1
	mov	DWORD PTR 12[rsp], r9d
	mov	rsi, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	r9d, DWORD PTR 12[rsp]
	mov	edx, r13d
	mov	esi, eax
	mov	rax, QWORD PTR 24[rsp]
	mov	ecx, r9d
	mov	edi, DWORD PTR [rax]
	call	pci_unmap_single@PLT
	mov	rdi, r15
	call	kfree_skb@PLT
	mov	rax, QWORD PTR [r14]
	movsx	rcx, DWORD PTR 8[r14]
	xor	edx, edx
	add	rax, 1
	div	rcx
	mov	QWORD PTR [r14], rdx
.L2:
	mov	rdi, rbx
	call	skb_queue_len@PLT
	test	rax, rax
	jne	.L3
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	_rtl88ee_return_beacon_queue_skb, .-_rtl88ee_return_beacon_queue_skb
	.comm	PCI_DMA_TODEVICE,4,4
	.comm	HW_DESC_TXBUFF_ADDR,4,4
	.comm	BEACON_QUEUE,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_hw.c__rtl88ee_return_beacon_queue_skb.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl88ee_return_beacon_queue_skb, %function
_rtl88ee_return_beacon_queue_skb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	bl	rtl_priv
	mov	r9, r0
	mov	r0, fp
	bl	rtl_pcipriv
	bl	rtl_pcidev
	ldr	r3, .L6
	ldr	r4, [r0, #4]
	ldr	r3, [r3]
	mov	r10, r0
	add	r4, r4, r3, lsl #4
	mov	r0, r9
	mov	r1, #0
	add	r6, r4, #8
	bl	spin_lock_irqsave
	b	.L2
.L3:
	ldr	r1, [r4]
	ldr	r7, [r4, #12]
	mov	r0, r6
	add	r7, r7, r1, lsl #2
	bl	__skb_dequeue
	ldr	r3, [r9, #4]
	mov	r5, r0
	ldr	r2, [r3]
	ldr	r3, .L6+4
	mov	r1, r7
	ldr	r3, [r3]
	ldr	r8, [r2]
	mov	r0, fp
	mov	r2, #1
	ldr	r7, [r10]
	blx	r8
	ldr	r3, .L6+8
	mov	r1, r0
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r0, r7
	bl	pci_unmap_single
	mov	r0, r5
	bl	kfree_skb
	ldm	r4, {r0, r1}
	add	r0, r0, #1
	bl	__aeabi_uidivmod
	str	r1, [r4]
.L2:
	mov	r0, r6
	bl	skb_queue_len
	cmp	r0, #0
	bne	.L3
	mov	r0, r9
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L7:
	.align	2
.L6:
	.word	BEACON_QUEUE
	.word	HW_DESC_TXBUFF_ADDR
	.word	PCI_DMA_TODEVICE
	.size	_rtl88ee_return_beacon_queue_skb, .-_rtl88ee_return_beacon_queue_skb
	.comm	PCI_DMA_TODEVICE,4,4
	.comm	HW_DESC_TXBUFF_ADDR,4,4
	.comm	BEACON_QUEUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
