	.file	"extr_if_iwi.c_iwi_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iwi_start, @function
iwi_start:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	lea	r12, 4[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	IWI_LOCK_ASSERT@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	M_WME_GETAC@PLT
	mov	rdx, QWORD PTR 8[rbx]
	movsx	rsi, eax
	mov	eax, DWORD PTR IWI_TX_RING_COUNT[rip]
	mov	rcx, rsi
	sub	eax, 7
	cmp	eax, DWORD PTR [rdx+rsi*4]
	jle	.L8
	mov	r13, QWORD PTR 0[rbp]
	mov	rsi, rbp
	mov	rdi, rbx
	mov	rdx, r13
	call	iwi_tx_start@PLT
	test	rax, rax
	jne	.L9
	mov	DWORD PTR [rbx], 5
.L2:
	mov	rdi, r12
	call	mbufq_dequeue@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L5
	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
.L8:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	mov	rdi, r12
	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	mbufq_prepend@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR IFCOUNTER_OERRORS[rip]
	mov	edx, 1
	mov	edi, DWORD PTR [rax]
	call	if_inc_counter@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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	ieee80211_free_node@PLT
	.cfi_endproc
.LFE0:
	.size	iwi_start, .-iwi_start
	.comm	IWI_TX_RING_COUNT,4,4
	.comm	IFCOUNTER_OERRORS,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_if_iwi.c_iwi_start.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwi_start, %function
iwi_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r7, #5
	bl	IWI_LOCK_ASSERT
	ldr	r6, .L10
	add	r5, r4, #4
	b	.L2
.L3:
	ldr	r9, [r8]
	mov	r1, r8
	mov	r2, r9
	mov	r0, r4
	bl	iwi_tx_start
	cmp	r0, #0
	bne	.L9
	str	r7, [r4]
.L2:
	mov	r0, r5
	bl	mbufq_dequeue
	subs	r8, r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	bl	M_WME_GETAC
	ldr	r1, [r4, #8]
	ldr	r2, [r6]
	ldr	r1, [r1, r0, lsl #2]
	sub	r2, r2, #7
	cmp	r2, r1
	mov	r3, r0
	bgt	.L3
	mov	r1, r8
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mbufq_prepend
.L9:
	ldr	r3, [r9]
	ldr	r2, .L10+4
	ldr	r0, [r3]
	ldr	r1, [r2]
	mov	r2, #1
	bl	if_inc_counter
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ieee80211_free_node
.L11:
	.align	2
.L10:
	.word	IWI_TX_RING_COUNT
	.word	IFCOUNTER_OERRORS
	.size	iwi_start, .-iwi_start
	.comm	IWI_TX_RING_COUNT,4,4
	.comm	IFCOUNTER_OERRORS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
