	.file	"extr_if_mwl.c_mwl_raw_xmit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mwl_raw_xmit, @function
mwl_raw_xmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR [rdi]
	mov	rbx, QWORD PTR [rax]
	mov	eax, DWORD PTR 24[rbx]
	test	eax, eax
	je	.L2
	cmp	QWORD PTR 16[rbx], 0
	je	.L3
.L2:
	mov	rdi, rbp
	call	m_freem@PLT
	mov	eax, DWORD PTR ENETDOWN[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r13, QWORD PTR 8[rbx]
	mov	r12, rdi
	mov	rdi, rsi
	call	M_WME_GETAC@PLT
	mov	rdi, rbx
	mov	r14, QWORD PTR 0[r13+rax*8]
	mov	rsi, r14
	call	mwl_gettxbuf@PLT
	mov	r13, rax
	test	rax, rax
	je	.L9
	mov	rcx, rbp
	mov	rdx, rax
	mov	rsi, r12
	mov	rdi, rbx
	call	mwl_tx_start@PLT
	test	rax, rax
	jne	.L10
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	call	mwl_hal_txstart@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, r14
	call	mwl_puttxbuf_head@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR EIO[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	DWORD PTR 4[rbx], 1
	mov	rdi, rbp
	call	m_freem@PLT
	mov	eax, DWORD PTR ENOBUFS[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mwl_raw_xmit, .-mwl_raw_xmit
	.comm	ENOBUFS,4,4
	.comm	ENETDOWN,4,4
	.comm	EIO,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_mwl.c_mwl_raw_xmit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwl_raw_xmit, %function
mwl_raw_xmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r2]
	mov	r4, r1
	ldr	r3, [r6, #16]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r6, #12]
	cmp	r3, #0
	beq	.L3
.L2:
	mov	r0, r4
	bl	m_freem
	ldr	r3, .L14
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r5, r0
	mov	r0, r1
	ldr	r7, [r6, #8]
	bl	M_WME_GETAC
	ldr	r8, [r7, r0, lsl #2]
	mov	r0, r6
	mov	r1, r8
	bl	mwl_gettxbuf
	subs	r7, r0, #0
	beq	.L12
	mov	r3, r4
	mov	r1, r5
	mov	r2, r7
	mov	r0, r6
	bl	mwl_tx_start
	subs	r4, r0, #0
	bne	.L13
	mov	r1, r4
	ldr	r0, [r6]
	bl	mwl_hal_txstart
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r1, r7
	mov	r0, r8
	bl	mwl_puttxbuf_head
	ldr	r3, .L14+4
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, [r6, #4]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r6, #4]
	bl	m_freem
	ldr	r3, .L14+8
	ldr	r4, [r3]
	b	.L1
.L15:
	.align	2
.L14:
	.word	ENETDOWN
	.word	EIO
	.word	ENOBUFS
	.size	mwl_raw_xmit, .-mwl_raw_xmit
	.comm	ENOBUFS,4,4
	.comm	ENETDOWN,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
