	.file	"extr_rtl2832_sdr.c_rtl2832_sdr_alloc_urbs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"alloc urb=%d\n"
	.text
	.p2align 4
	.type	rtl2832_sdr_alloc_urbs, @function
rtl2832_sdr_alloc_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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR MAX_BULK_BUFS[rip]
	mov	r13, QWORD PTR 40[rdi]
	test	ecx, ecx
	jg	.L7
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r9d, DWORD PTR rtl2832_sdr_urb_complete[rip]
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, 129
	mov	edi, DWORD PTR 32[rbx]
	mov	r15d, DWORD PTR BULK_BUFFER_SIZE[rip]
	mov	DWORD PTR 12[rsp], r9d
	mov	r14d, DWORD PTR [rax+rbp*4]
	call	usb_rcvbulkpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR 32[rbx]
	mov	r8d, r15d
	mov	edx, eax
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, r14d
	mov	rdi, QWORD PTR [rax+rbp*8]
	push	rbx
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR 28[rsp]
	call	usb_fill_bulk_urb@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR URB_NO_TRANSFER_DMA_MAP[rip]
	mov	rax, QWORD PTR [rax+rbp*8]
	mov	DWORD PTR 4[rax], edx
	mov	rdx, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rdx+rbp*4]
	add	rbp, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR [rbx], 1
	cmp	DWORD PTR MAX_BULK_BUFS[rip], ebp
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jle	.L8
.L7:
	mov	edx, ebp
	mov	rsi, r12
	mov	rdi, r13
	call	dev_dbg@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	xor	edi, edi
	lea	r15, [rax+rbp*8]
	call	usb_alloc_urb@PLT
	mov	QWORD PTR [r15], rax
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rax+rbp*8], 0
	jne	.L4
	test	ebp, ebp
	je	.L5
	lea	r12d, -1[rbp]
	xor	ebp, ebp
	sal	r12, 3
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR 16[rbx]
	add	rbp, 8
.L6:
	mov	rdi, QWORD PTR [rax+rbp]
	call	usb_free_urb@PLT
	cmp	r12, rbp
	jne	.L17
.L5:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L8:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	rtl2832_sdr_alloc_urbs, .-rtl2832_sdr_alloc_urbs
	.comm	rtl2832_sdr_urb_complete,4,4
	.comm	URB_NO_TRANSFER_DMA_MAP,4,4
	.comm	MAX_BULK_BUFS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	BULK_BUFFER_SIZE,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_rtl2832_sdr.c_rtl2832_sdr_alloc_urbs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"alloc urb=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl2832_sdr_alloc_urbs, %function
rtl2832_sdr_alloc_urbs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L16
	ldr	r7, [r0, #20]
	ldr	r3, [r6]
	sub	sp, sp, #28
	cmp	r3, #0
	ble	.L8
	mov	r4, r0
	mov	r5, #0
	ldr	fp, .L16+4
	ldr	r10, .L16+8
	ldr	r9, .L16+12
	b	.L7
.L4:
	ldr	r3, [r4, #16]
	mov	r1, #129
	mov	r0, r3
	str	r3, [sp, #20]
	bl	usb_rcvbulkpipe
	ldr	r1, [r4, #12]
	ldr	ip, [fp]
	ldr	lr, [r1, r5, lsl #2]
	ldr	r3, [sp, #20]
	str	ip, [sp, #4]
	ldr	ip, [r10]
	mov	r2, r0
	mov	r1, r3
	mov	r0, r8
	mov	r3, lr
	str	r4, [sp, #8]
	str	ip, [sp]
	bl	usb_fill_bulk_urb
	ldr	r2, [r4, #8]
	ldr	r3, [r9]
	ldr	r2, [r2, r5, lsl #2]
	ldr	r1, [r4, #4]
	ldr	r0, [r6]
	str	r3, [r2, #4]
	ldr	r3, [r4]
	ldr	r1, [r1, r5, lsl #2]
	add	r5, r5, #1
	add	r3, r3, #1
	cmp	r0, r5
	str	r1, [r2]
	str	r3, [r4]
	ble	.L8
.L7:
	mov	r2, r5
	ldr	r1, .L16+16
	mov	r0, r7
	bl	dev_dbg
	ldr	r3, .L16+20
	mov	r0, #0
	ldr	r1, [r3]
	ldr	r8, [r4, #8]
	bl	usb_alloc_urb
	ldr	r2, [r4, #8]
	str	r0, [r8, r5, lsl #2]
	ldr	r8, [r2, r5, lsl #2]
	cmp	r8, #0
	bne	.L4
	cmp	r5, #0
	beq	.L5
	mov	r6, r8
	b	.L6
.L15:
	ldr	r2, [r4, #8]
.L6:
	ldr	r0, [r2, r6, lsl #2]
	add	r6, r6, #1
	bl	usb_free_urb
	cmp	r6, r5
	bne	.L15
.L5:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	MAX_BULK_BUFS
	.word	rtl2832_sdr_urb_complete
	.word	BULK_BUFFER_SIZE
	.word	URB_NO_TRANSFER_DMA_MAP
	.word	.LC0
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	rtl2832_sdr_alloc_urbs, .-rtl2832_sdr_alloc_urbs
	.comm	rtl2832_sdr_urb_complete,4,4
	.comm	URB_NO_TRANSFER_DMA_MAP,4,4
	.comm	MAX_BULK_BUFS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	BULK_BUFFER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
