	.file	"extr_txrx.c_cw1200_tx_h_wsm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Bug: no space allocated for WSM header. headroom: %d\n"
	.text
	.p2align 4
	.type	cw1200_tx_h_wsm, @function
cw1200_tx_h_wsm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR 8[rsi]
	call	skb_headroom@PLT
	mov	rdi, QWORD PTR 8[rbx]
	cmp	eax, 23
	jbe	.L6
	mov	esi, 24
	call	skb_push@PLT
	add	DWORD PTR 16[rbx], 24
	mov	edx, 24
	xor	esi, esi
	mov	rdi, rax
	mov	r12, rax
	call	memset@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	__cpu_to_le16@PLT
	mov	edi, 4
	mov	QWORD PTR 16[r12], rax
	call	__cpu_to_le16@PLT
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 8[r12], rax
	call	wsm_queue_id_to_wsm@PLT
	mov	DWORD PTR [r12], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	call	skb_headroom@PLT
	lea	rsi, .LC0[rip]
	mov	edx, eax
	mov	rax, QWORD PTR [r12]
	xor	r12d, r12d
	mov	edi, DWORD PTR [rax]
	call	wiphy_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cw1200_tx_h_wsm, .-cw1200_tx_h_wsm
	.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_txrx.c_cw1200_tx_h_wsm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Bug: no space allocated for WSM header. headroom: %"
	.ascii	"d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cw1200_tx_h_wsm, %function
cw1200_tx_h_wsm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r1, #4]
	mov	r4, r1
	bl	skb_headroom
	cmp	r0, #11
	bls	.L6
	mov	r1, #12
	ldr	r0, [r4, #4]
	bl	skb_push
	mov	r2, #12
	ldr	r3, [r4, #8]
	mov	r1, #0
	add	r3, r3, r2
	str	r3, [r4, #8]
	mov	r5, r0
	bl	memset
	ldr	r3, [r4, #4]
	ldr	r0, [r3]
	bl	__cpu_to_le16
	mov	r3, r0
	mov	r0, #4
	str	r3, [r5, #8]
	bl	__cpu_to_le16
	mov	r3, r0
	ldr	r0, [r4]
	str	r3, [r5, #4]
	bl	wsm_queue_id_to_wsm
	str	r0, [r5]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, [r5]
	ldr	r0, [r4, #4]
	ldr	r4, [r3]
	bl	skb_headroom
	mov	r5, #0
	mov	r2, r0
	ldr	r1, .L7
	mov	r0, r4
	bl	wiphy_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	cw1200_tx_h_wsm, .-cw1200_tx_h_wsm
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
