	.file	"extr_rt2x00queue.c_rt2x00queue_alloc_rxskb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rt2x00queue_alloc_rxskb
	.type	rt2x00queue_alloc_rxskb, @function
rt2x00queue_alloc_rxskb:
.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
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	rbx, QWORD PTR 16[rax]
	mov	ebp, DWORD PTR 4[rax]
	add	ebp, DWORD PTR [rax]
	add	ebp, DWORD PTR 8[rax]
	mov	rdi, rbx
	call	rt2x00_has_cap_hw_crypto@PLT
	mov	esi, r12d
	cmp	rax, 1
	sbb	edx, edx
	and	edx, -16
	cmp	rax, 1
	sbb	r13d, r13d
	lea	edi, 20[rdx+rbp]
	call	__dev_alloc_skb@PLT
	and	r13d, -8
	add	r13d, 12
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	esi, r13d
	mov	rdi, rax
	call	skb_reserve@PLT
	mov	esi, ebp
	mov	rdi, r12
	call	skb_put@PLT
	mov	rdi, r12
	call	get_skb_frame_desc@PLT
	xor	esi, esi
	mov	edx, 8
	mov	rdi, rax
	mov	rbp, rax
	call	memset@PLT
	mov	esi, DWORD PTR REQUIRE_DMA[rip]
	mov	rdi, rbx
	call	rt2x00_has_cap_flag@PLT
	test	rax, rax
	jne	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, 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
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, DWORD PTR [r12]
	mov	edi, DWORD PTR [rbx]
	call	dma_map_single@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	mov	r13d, eax
	call	dma_mapping_error@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L15
	mov	DWORD PTR 4[rbp], r13d
	mov	eax, DWORD PTR SKBDESC_DMA_MAPPED_RX[rip]
	or	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, 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
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	dev_kfree_skb_any@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rt2x00queue_alloc_rxskb, .-rt2x00queue_alloc_rxskb
	.comm	SKBDESC_DMA_MAPPED_RX,4,4
	.comm	REQUIRE_DMA,4,4
	.comm	DMA_FROM_DEVICE,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_rt2x00queue.c_rt2x00queue_alloc_rxskb.c"
	.text
	.align	2
	.global	rt2x00queue_alloc_rxskb
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt2x00queue_alloc_rxskb, %function
rt2x00queue_alloc_rxskb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r3]
	ldmib	r3, {r2, r3, r6}
	add	r5, r5, r2
	mov	r0, r6
	mov	r4, r1
	add	r5, r5, r3
	bl	rt2x00_has_cap_hw_crypto
	cmp	r0, #0
	moveq	r0, #4
	movne	r0, #20
	moveq	r7, r0
	mov	r1, r4
	add	r0, r0, r5
	movne	r7, #12
	bl	__dev_alloc_skb
	subs	r4, r0, #0
	beq	.L1
	mov	r1, r7
	bl	skb_reserve
	mov	r1, r5
	mov	r0, r4
	bl	skb_put
	mov	r0, r4
	bl	get_skb_frame_desc
	mov	r2, #8
	mov	r1, #0
	mov	r5, r0
	bl	memset
	ldr	r3, .L16
	mov	r0, r6
	ldr	r1, [r3]
	bl	rt2x00_has_cap_flag
	cmp	r0, #0
	bne	.L14
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, .L16+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	ldr	r0, [r6]
	bl	dma_map_single
	mov	r7, r0
	ldr	r0, [r6]
	mov	r1, r7
	bl	dma_mapping_error
	bl	unlikely
	cmp	r0, #0
	bne	.L15
	ldr	r2, .L16+8
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r0, r4
	orr	r3, r3, r2
	str	r7, [r5, #4]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r4
	bl	dev_kfree_skb_any
	mov	r4, #0
	b	.L1
.L17:
	.align	2
.L16:
	.word	REQUIRE_DMA
	.word	DMA_FROM_DEVICE
	.word	SKBDESC_DMA_MAPPED_RX
	.size	rt2x00queue_alloc_rxskb, .-rt2x00queue_alloc_rxskb
	.comm	SKBDESC_DMA_MAPPED_RX,4,4
	.comm	REQUIRE_DMA,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
