	.file	"extr_ar8216.c_ar8216_mangle_tx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar8216_mangle_tx, @function
ar8216_mangle_tx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	xor	edi, edi
	test	rbx, rbx
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L2
	mov	ecx, DWORD PTR [rbx]
	test	ecx, ecx
	jne	.L8
	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
.L8:
	.cfi_restore_state
	mov	rdi, r12
	call	skb_headroom@PLT
	xor	edi, edi
	cmp	eax, 1
	setle	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L5
	mov	ecx, DWORD PTR GFP_ATOMIC[rip]
	xor	edx, edx
	mov	esi, 2
	mov	rdi, r12
	call	pskb_expand_head@PLT
	test	rax, rax
	js	.L2
.L5:
	mov	rdi, r12
	mov	esi, 2
	call	skb_push@PLT
	mov	edx, -32752
	mov	WORD PTR [rax], dx
	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
.L2:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	dev_kfree_skb_any@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	ar8216_mangle_tx, .-ar8216_mangle_tx
	.comm	GFP_ATOMIC,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_ar8216.c_ar8216_mangle_tx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar8216_mangle_tx, %function
ar8216_mangle_tx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0]
	mov	r4, r1
	clz	r0, r6
	lsr	r0, r0, #5
	bl	unlikely
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L11
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r4
	bl	skb_headroom
	cmp	r0, #1
	movgt	r0, #0
	movle	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L12
	mov	r2, r5
	mov	r1, #2
	mov	r0, r4
	ldr	r3, [r3]
	bl	pskb_expand_head
	cmp	r0, #0
	blt	.L2
.L5:
	mov	r1, #2
	mov	r0, r4
	bl	skb_push
	mov	r2, #16
	mvn	r3, #127
	strb	r2, [r0]
	strb	r3, [r0, #1]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	mov	r4, #0
	bl	dev_kfree_skb_any
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	GFP_ATOMIC
	.size	ar8216_mangle_tx, .-ar8216_mangle_tx
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
