	.file	"extr_hif_usb.c_ath9k_hif_usb_rx_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ath9k_htc: RX memory allocation error\n"
	.text
	.p2align 4
	.type	ath9k_hif_usb_rx_stream, @function
ath9k_hif_usb_rx_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rsi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PKT_NUM_IN_TRANSFER[rip]
	mov	QWORD PTR -128[rbp], rsp
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L32:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L32
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L33
.L4:
	lea	rax, 7[rsp]
	lea	rbx, 24[r13]
	mov	r14, rax
	and	rax, -8
	mov	rdi, rbx
	mov	QWORD PTR -96[rbp], rbx
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	shr	r14, 3
	mov	r12d, DWORD PTR [rax]
	mov	DWORD PTR -100[rbp], r12d
	call	spin_lock@PLT
	mov	r15d, DWORD PTR 0[r13]
	test	r15d, r15d
	jne	.L5
	mov	rdi, rbx
	call	spin_unlock@PLT
	mov	QWORD PTR -88[rbp], 0
	test	r12d, r12d
	jg	.L18
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, QWORD PTR -96[rbp]
	mov	QWORD PTR -112[rbp], r9
	call	spin_lock@PLT
	mov	esi, ebx
	mov	rdx, QWORD PTR -80[rbp]
	mov	r9, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR MAX_RX_BUF_SIZE[rip]
	mov	QWORD PTR 40[r13], rdx
	mov	rdi, r9
	sub	esi, eax
	sub	eax, r15d
	sub	eax, 4
	mov	DWORD PTR 0[r13], esi
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	DWORD PTR 4[r13], eax
	call	__dev_alloc_skb@PLT
	mov	r14, rax
	test	rax, rax
	je	.L34
	mov	esi, 32
	mov	rdi, rax
	call	skb_reserve@PLT
	mov	edi, DWORD PTR skb_allocated[rip]
	call	RX_STAT_INC@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, QWORD PTR 8[r14]
	movsx	rdx, DWORD PTR 4[r13]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, 16[rax+r12]
	call	memcpy@PLT
	mov	QWORD PTR 32[r13], r14
	mov	rdi, QWORD PTR -96[rbp]
	call	spin_unlock@PLT
	cmp	DWORD PTR -100[rbp], ebx
	jle	.L17
.L25:
	mov	r15d, ebx
.L18:
	mov	rax, QWORD PTR -72[rbp]
	movsx	r12, r15d
	sal	r12, 2
	mov	rbx, QWORD PTR 8[rax]
	lea	rdi, [rbx+r12]
	call	get_unaligned_le16@PLT
	lea	rdi, 8[rbx+r12]
	mov	r14, rax
	call	get_unaligned_le16@PLT
	cmp	QWORD PTR ATH_USB_RX_STREAM_MODE_TAG[rip], rax
	jne	.L35
	mov	rax, r14
	mov	edx, 4
	and	eax, 3
	sub	rdx, rax
	mov	eax, edx
	cmp	rdx, 4
	jne	.L12
	xor	eax, eax
	xor	edx, edx
.L12:
	lea	ebx, 4[r15+r14]
	mov	QWORD PTR -80[rbp], rdx
	lea	r9, 32[r14]
	add	ebx, eax
	cmp	DWORD PTR MAX_RX_BUF_SIZE[rip], ebx
	jl	.L36
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	rdi, r9
	call	__dev_alloc_skb@PLT
	mov	r15, rax
	test	rax, rax
	je	.L37
	mov	esi, 32
	mov	rdi, rax
	call	skb_reserve@PLT
	mov	edi, DWORD PTR skb_allocated[rip]
	call	RX_STAT_INC@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, QWORD PTR 8[r15]
	mov	rdx, r14
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, 16[rax+r12]
	call	memcpy@PLT
	mov	rsi, r14
	mov	rdi, r15
	call	skb_put@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	mov	QWORD PTR [rcx+rax*8], r15
	add	rax, 1
	mov	QWORD PTR -88[rbp], rax
	cmp	DWORD PTR -100[rbp], ebx
	jg	.L25
.L17:
	cmp	QWORD PTR -88[rbp], 0
	je	.L7
.L9:
	mov	rbx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -88[rbp]
	lea	r12, [rbx+rax*8]
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[r13]
	add	rbx, 8
	mov	ecx, DWORD PTR USB_WLAN_RX_PIPE[rip]
	mov	edx, DWORD PTR [rsi]
	call	ath9k_htc_rx_msg@PLT
	mov	edi, DWORD PTR skb_completed[rip]
	call	RX_STAT_INC@PLT
	cmp	r12, rbx
	jne	.L19
.L7:
	mov	rsp, QWORD PTR -128[rbp]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rbx, QWORD PTR 32[r13]
	test	rbx, rbx
	je	.L39
	mov	rax, QWORD PTR -72[rbp]
	movsx	rdi, DWORD PTR 4[r13]
	mov	r9d, r15d
	sub	r9d, DWORD PTR 40[r13]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rbx]
	movsx	rdx, r9d
	mov	r12, rdi
	mov	DWORD PTR -80[rbp], r9d
	lea	rdi, [rax+rdi*4]
	call	memcpy@PLT
	mov	r9d, DWORD PTR -80[rbp]
	mov	DWORD PTR 0[r13], 0
	mov	rdi, rbx
	lea	esi, [r12+r9]
	movsx	rsi, esi
	call	skb_put@PLT
	mov	QWORD PTR 0[0+r14*8], rbx
	mov	rdi, QWORD PTR -96[rbp]
	call	spin_unlock@PLT
	cmp	DWORD PTR -100[rbp], r15d
	mov	QWORD PTR -88[rbp], 1
	jg	.L18
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, DWORD PTR skb_dropped[rip]
	call	RX_STAT_INC@PLT
	mov	rsp, QWORD PTR -128[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rdi, QWORD PTR -96[rbp]
	call	spin_unlock@PLT
	mov	QWORD PTR -88[rbp], 0
	cmp	DWORD PTR -100[rbp], r15d
	jg	.L18
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L33:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, QWORD PTR 16[r13]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	cmp	QWORD PTR -88[rbp], 0
	jne	.L9
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, QWORD PTR 16[r13]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR -96[rbp]
	call	spin_unlock@PLT
	cmp	QWORD PTR -88[rbp], 0
	jne	.L9
	jmp	.L7
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath9k_hif_usb_rx_stream, .-ath9k_hif_usb_rx_stream
	.comm	skb_dropped,4,4
	.comm	skb_completed,4,4
	.comm	skb_allocated,4,4
	.comm	USB_WLAN_RX_PIPE,4,4
	.comm	MAX_RX_BUF_SIZE,4,4
	.comm	MAX_PKT_NUM_IN_TRANSFER,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ATH_USB_RX_STREAM_MODE_TAG,8,8
	.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_rx_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ath9k_htc: RX memory allocation error\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath9k_hif_usb_rx_stream, %function
ath9k_hif_usb_rx_stream:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	r6, r0
	ldr	r3, .L32
	add	r2, r0, #16
	ldr	r3, [r3]
	str	sp, [fp, #-72]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r5, [r1]
	ldr	r3, .L32+4
	str	r2, [fp, #-52]
	mov	r0, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r8, r1
	mov	r4, r2
	str	r5, [fp, #-60]
	bl	spin_lock
	ldr	r7, [r6]
	str	sp, [fp, #-68]
	cmp	r7, #0
	bne	.L2
	mov	r0, r4
	bl	spin_unlock
	cmp	r5, #0
	strgt	r7, [fp, #-48]
	ble	.L4
.L3:
	ldr	r9, .L32+8
	str	r6, [fp, #-56]
	b	.L15
.L28:
	ldr	r0, [fp, #-52]
	str	r1, [fp, #-64]
	bl	spin_lock
	ldr	r2, [r9]
	ldr	ip, [fp, #-56]
	sub	r3, r2, r7
	sub	r3, r3, #4
	sub	r2, r4, r2
	ldr	r1, [fp, #-64]
	stm	ip, {r2, r3}
	ldr	r3, .L32+12
	mov	r0, r1
	str	r5, [ip, #24]
	ldr	r1, [r3]
	bl	__dev_alloc_skb
	subs	r5, r0, #0
	beq	.L25
	mov	r1, #32
	bl	skb_reserve
	ldr	r3, .L32+16
	add	r10, r10, #16
	ldr	r0, [r3]
	bl	RX_STAT_INC
	ldr	r6, [fp, #-56]
	ldr	r1, [r8, #4]
	ldr	r2, [r6, #4]
	add	r1, r1, r10
	ldr	r0, [r5, #4]
	bl	memcpy
	ldr	r0, [fp, #-52]
	str	r5, [r6, #20]
	bl	spin_unlock
	ldr	r3, [fp, #-60]
	cmp	r3, r4
	ble	.L26
.L21:
	mov	r7, r4
.L15:
	ldr	r4, [r8, #4]
	lsl	r10, r7, #2
	add	r0, r4, r7, lsl #2
	bl	get_unaligned_le16
	mov	r6, r0
	add	r0, r10, #8
	add	r0, r4, r0
	bl	get_unaligned_le16
	ldr	r3, .L32+20
	ldr	r1, [r3]
	cmp	r1, r0
	bne	.L27
	and	r5, r6, #3
	cmp	r5, #0
	rsb	r5, r5, #4
	moveq	r5, #0
	add	r4, r7, #4
	ldr	r1, [r9]
	add	r4, r4, r6
	add	r4, r4, r5
	cmp	r1, r4
	add	r1, r6, #32
	blt	.L28
	ldr	r3, .L32+12
	mov	r0, r1
	ldr	r1, [r3]
	bl	__dev_alloc_skb
	subs	r5, r0, #0
	beq	.L29
	mov	r1, #32
	bl	skb_reserve
	ldr	r3, .L32+16
	add	r10, r10, #16
	ldr	r0, [r3]
	bl	RX_STAT_INC
	ldr	r1, [r8, #4]
	mov	r2, r6
	add	r1, r1, r10
	ldr	r0, [r5, #4]
	bl	memcpy
	mov	r1, r6
	mov	r0, r5
	bl	skb_put
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-68]
	str	r5, [r2, r3, lsl #2]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r3, r4
	bgt	.L21
.L26:
	ldr	r6, [fp, #-56]
.L14:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L4
.L6:
	mov	r4, #0
	ldr	r3, [fp, #-68]
	ldr	r7, .L32+24
	ldr	r5, .L32+28
	ldr	r9, [fp, #-48]
	sub	r8, r3, #4
.L16:
	ldr	r1, [r8, #4]!
	ldr	r3, [r7]
	ldr	r2, [r1]
	ldr	r0, [r6, #8]
	bl	ath9k_htc_rx_msg
	add	r4, r4, #1
	ldr	r0, [r5]
	bl	RX_STAT_INC
	cmp	r4, r9
	bne	.L16
.L4:
	ldr	sp, [fp, #-72]
.L1:
	ldr	r3, .L32+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r4, [r6, #20]
	cmp	r4, #0
	beq	.L31
	ldr	r9, [r6, #24]
	ldr	r5, [r6, #4]
	ldr	r0, [r4, #4]
	sub	r9, r7, r9
	mov	r2, r9
	ldr	r1, [r8, #4]
	add	r0, r0, r5, lsl #2
	bl	memcpy
	mov	r3, #0
	add	r1, r5, r9
	str	r3, [r6]
	mov	r0, r4
	bl	skb_put
	ldr	r3, [fp, #-68]
	ldr	r0, [fp, #-52]
	str	r4, [r3]
	bl	spin_unlock
	ldr	r3, [fp, #-60]
	cmp	r3, r7
	mov	r3, #1
	str	r3, [fp, #-48]
	bgt	.L3
	b	.L6
.L31:
	ldr	r0, [fp, #-52]
	bl	spin_unlock
	ldr	r3, [fp, #-60]
	cmp	r3, r7
	strgt	r4, [fp, #-48]
	bgt	.L3
	b	.L4
.L27:
	ldr	r3, .L32+32
	ldr	r0, [r3]
	bl	RX_STAT_INC
	ldr	sp, [fp, #-72]
	b	.L1
.L25:
	ldr	r6, [fp, #-56]
	ldr	r1, .L32+36
	ldr	r0, [r6, #12]
	bl	dev_err
	ldr	r0, [fp, #-52]
	bl	spin_unlock
	b	.L14
.L29:
	ldr	r6, [fp, #-56]
	ldr	r1, .L32+36
	ldr	r0, [r6, #12]
	bl	dev_err
	b	.L14
.L30:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	MAX_PKT_NUM_IN_TRANSFER
	.word	.LC1
	.word	MAX_RX_BUF_SIZE
	.word	GFP_ATOMIC
	.word	skb_allocated
	.word	ATH_USB_RX_STREAM_MODE_TAG
	.word	USB_WLAN_RX_PIPE
	.word	skb_completed
	.word	skb_dropped
	.word	.LC0
	.size	ath9k_hif_usb_rx_stream, .-ath9k_hif_usb_rx_stream
	.comm	skb_dropped,4,4
	.comm	skb_completed,4,4
	.comm	skb_allocated,4,4
	.comm	USB_WLAN_RX_PIPE,4,4
	.comm	MAX_RX_BUF_SIZE,4,4
	.comm	MAX_PKT_NUM_IN_TRANSFER,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ATH_USB_RX_STREAM_MODE_TAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
