	.file	"extr_hif_usb.c_ath9k_hif_usb_alloc_rx_urbs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath9k_hif_usb_alloc_rx_urbs, @function
ath9k_hif_usb_alloc_rx_urbs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	init_usb_anchor@PLT
	lea	rdi, 8[r14]
	call	spin_lock_init@PLT
	mov	ecx, DWORD PTR MAX_RX_URB_NUM[rip]
	test	ecx, ecx
	jg	.L2
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR MAX_RX_BUF_SIZE[rip]
	call	alloc_skb@PLT
	mov	r12, rax
	test	rax, rax
	je	.L16
	mov	r9d, DWORD PTR ath9k_hif_usb_rx_cb[rip]
	mov	edi, DWORD PTR 4[r14]
	mov	esi, DWORD PTR USB_WLAN_RX_PIPE[rip]
	mov	r13d, DWORD PTR [rax]
	mov	DWORD PTR 12[rsp], r9d
	mov	r15d, DWORD PTR MAX_RX_BUF_SIZE[rip]
	call	usb_rcvbulkpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR 4[r14]
	mov	ecx, r13d
	push	r12
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR 28[rsp]
	mov	edx, eax
	mov	r8d, r15d
	mov	rdi, rbp
	call	usb_fill_bulk_urb@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	usb_anchor_urb@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	call	usb_submit_urb@PLT
	mov	rdi, rbp
	mov	r13d, eax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r13d, r13d
	jne	.L17
	call	usb_free_urb@PLT
	add	ebx, 1
	cmp	DWORD PTR MAX_RX_URB_NUM[rip], ebx
	jle	.L9
.L2:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	xor	edi, edi
	call	usb_alloc_urb@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L5:
	mov	rdi, r14
	call	ath9k_hif_usb_dealloc_rx_urbs@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L7:
	mov	rdi, rbp
	call	usb_free_urb@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	call	usb_unanchor_urb@PLT
	mov	rdi, r12
	call	kfree_skb@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	ath9k_hif_usb_alloc_rx_urbs, .-ath9k_hif_usb_alloc_rx_urbs
	.comm	ath9k_hif_usb_rx_cb,4,4
	.comm	USB_WLAN_RX_PIPE,4,4
	.comm	MAX_RX_URB_NUM,4,4
	.comm	MAX_RX_BUF_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_hif_usb.c_ath9k_hif_usb_alloc_rx_urbs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath9k_hif_usb_alloc_rx_urbs, %function
ath9k_hif_usb_alloc_rx_urbs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	sub	sp, sp, #28
	ldr	r10, .L16
	bl	init_usb_anchor
	add	r0, r8, #8
	bl	spin_lock_init
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L9
	mov	r6, #0
	ldr	r7, .L16+4
	ldr	r9, .L16+8
	ldr	fp, .L16+12
	b	.L2
.L4:
	ldr	r1, [r7]
	ldr	r0, [r9]
	bl	alloc_skb
	subs	r5, r0, #0
	beq	.L14
	ldr	r3, [r8, #4]
	ldr	r2, .L16+16
	mov	r0, r3
	ldr	r1, [r2]
	str	r3, [sp, #20]
	bl	usb_rcvbulkpipe
	ldr	lr, [fp]
	mov	r2, r0
	ldr	ip, [r9]
	ldr	r0, [r5]
	ldr	r3, [sp, #20]
	stm	sp, {ip, lr}
	mov	r1, r3
	str	r5, [sp, #8]
	mov	r3, r0
	mov	r0, r4
	bl	usb_fill_bulk_urb
	mov	r1, r8
	mov	r0, r4
	bl	usb_anchor_urb
	mov	r0, r4
	ldr	r1, [r7]
	bl	usb_submit_urb
	cmp	r0, #0
	bne	.L15
	mov	r0, r4
	bl	usb_free_urb
	ldr	r3, [r10]
	cmp	r3, r6
	ble	.L9
.L2:
	mov	r0, #0
	ldr	r1, [r7]
	bl	usb_alloc_urb
	subs	r4, r0, #0
	add	r6, r6, #1
	bne	.L4
	ldr	r3, .L16+20
	ldr	r0, [r3]
	rsb	r3, r0, #0
.L5:
	mov	r0, r8
	str	r3, [sp, #20]
	bl	ath9k_hif_usb_dealloc_rx_urbs
	ldr	r3, [sp, #20]
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r3, #0
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L16+20
	ldr	r0, [r3]
	rsb	r3, r0, #0
.L7:
	mov	r0, r4
	str	r3, [sp, #20]
	bl	usb_free_urb
	ldr	r3, [sp, #20]
	b	.L5
.L15:
	str	r0, [sp, #20]
	mov	r0, r4
	bl	usb_unanchor_urb
	mov	r0, r5
	bl	kfree_skb
	ldr	r3, [sp, #20]
	b	.L7
.L17:
	.align	2
.L16:
	.word	MAX_RX_URB_NUM
	.word	GFP_KERNEL
	.word	MAX_RX_BUF_SIZE
	.word	ath9k_hif_usb_rx_cb
	.word	USB_WLAN_RX_PIPE
	.word	ENOMEM
	.size	ath9k_hif_usb_alloc_rx_urbs, .-ath9k_hif_usb_alloc_rx_urbs
	.comm	ath9k_hif_usb_rx_cb,4,4
	.comm	USB_WLAN_RX_PIPE,4,4
	.comm	MAX_RX_URB_NUM,4,4
	.comm	MAX_RX_BUF_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
