	.file	"extr_usx2yhwdeppcm.c_usX2Y_usbpcm_urbs_allocate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	usX2Y_usbpcm_urbs_allocate, @function
usX2Y_usbpcm_urbs_allocate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	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
	mov	rax, QWORD PTR 8[rdi]
	mov	rcx, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	mov	esi, DWORD PTR [rdi]
	mov	rdx, QWORD PTR 16[rax]
	mov	r14, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR [rdx+rcx*8]
	cmp	rcx, rdi
	mov	QWORD PTR 8[rsp], rcx
	mov	rdi, r14
	sete	bl
	je	.L19
	call	usb_rcvisocpipe@PLT
	mov	r12d, eax
.L3:
	mov	edx, ebx
	mov	esi, r12d
	mov	rdi, r14
	call	usb_maxpacket@PLT
	mov	DWORD PTR 24[r15], eax
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR NRURBS[rip]
	xor	ebp, ebp
	test	eax, eax
	jg	.L5
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	call	usb_kill_urb@PLT
	add	rbp, 1
	cmp	DWORD PTR NRURBS[rip], ebp
	jle	.L13
.L5:
	mov	rax, QWORD PTR 16[r15]
	lea	r13, [rax+rbp*8]
	mov	rdi, QWORD PTR 0[r13]
	test	rdi, rdi
	jne	.L20
	mov	ebx, DWORD PTR GFP_KERNEL[rip]
	xor	eax, eax
	call	nr_of_packs@PLT
	mov	edi, eax
	mov	esi, ebx
	call	usb_alloc_urb@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rbx, rax
	test	rax, rax
	je	.L21
	mov	rax, QWORD PTR 8[r15]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR 8[rsp], r15
	je	.L22
	cmp	DWORD PTR [r15], 8
	je	.L23
	mov	eax, DWORD PTR [rax]
.L11:
	mov	DWORD PTR 40[rbx], eax
	xor	eax, eax
	add	rbp, 1
	mov	QWORD PTR 32[rbx], r14
	mov	DWORD PTR [rbx], r12d
	call	nr_of_packs@PLT
	mov	edx, DWORD PTR i_usX2Y_usbpcm_subs_startup[rip]
	cmp	DWORD PTR NRURBS[rip], ebp
	mov	DWORD PTR 24[rbx], eax
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR 16[rax], r15
	mov	DWORD PTR 4[rax], 1
	mov	DWORD PTR 8[rax], edx
	jg	.L5
.L13:
	add	rsp, 24
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rax]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR 4[rax]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR EINVAL[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
.L19:
	.cfi_restore_state
	call	usb_sndisocpipe@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r15
	call	usX2Y_usbpcm_urbs_release@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	usX2Y_usbpcm_urbs_allocate, .-usX2Y_usbpcm_urbs_allocate
	.comm	i_usX2Y_usbpcm_subs_startup,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,8,8
	.comm	NRURBS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_usx2yhwdeppcm.c_usX2Y_usbpcm_urbs_allocate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usX2Y_usbpcm_urbs_allocate, %function
usX2Y_usbpcm_urbs_allocate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	ldr	r2, [r0, #4]
	ldr	r1, .L21
	ldr	r8, [r2, #4]
	ldr	r0, [r1]
	ldr	r1, [r2, #8]
	sub	sp, sp, #12
	ldr	r3, [r1, r0, lsl #2]
	mov	r0, r8
	cmp	r3, r10
	moveq	r4, #1
	movne	r4, #0
	ldr	r1, [r10]
	str	r3, [sp, #4]
	beq	.L18
	bl	usb_rcvisocpipe
	str	r0, [sp]
.L3:
	mov	r2, r4
	mov	r0, r8
	ldr	r1, [sp]
	bl	usb_maxpacket
	cmp	r0, #0
	str	r0, [r10, #12]
	beq	.L4
	ldr	r6, .L21+4
	ldr	r2, [r6]
	cmp	r2, #0
	ble	.L13
	mov	r3, r10
	mov	r4, #0
	mov	r10, r8
	ldr	fp, .L21+8
	mov	r8, r3
	b	.L5
.L19:
	bl	usb_kill_urb
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L13
.L5:
	ldr	r9, [r8, #8]
	lsl	r7, r4, #2
	ldr	r0, [r9, r4, lsl #2]
	cmp	r0, #0
	bne	.L19
	bl	nr_of_packs
	ldr	r3, .L21+12
	ldr	r1, [r3]
	bl	usb_alloc_urb
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r9, r4, lsl #2]
	beq	.L20
	ldr	r1, [r8, #4]
	ldr	r3, [sp, #4]
	ldr	r1, [r1]
	cmp	r3, r8
	ldreq	r1, [r1, #8]
	beq	.L11
	ldr	r0, [r8]
	cmp	r0, #8
	ldreq	r1, [r1, #4]
	ldrne	r1, [r1]
.L11:
	ldr	r3, [sp]
	str	r1, [r5, #24]
	str	r3, [r5]
	str	r10, [r5, #20]
	bl	nr_of_packs
	mov	r2, #1
	ldr	r3, [r9, r7]
	ldr	r1, [fp]
	str	r0, [r5, #16]
	str	r8, [r3, #12]
	str	r2, [r3, #4]
	str	r1, [r3, #8]
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L13:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L21+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	bl	usb_sndisocpipe
	str	r0, [sp]
	b	.L3
.L20:
	mov	r0, r8
	bl	usX2Y_usbpcm_urbs_release
	ldr	r3, .L21+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	NRURBS
	.word	i_usX2Y_usbpcm_subs_startup
	.word	GFP_KERNEL
	.word	EINVAL
	.word	ENOMEM
	.size	usX2Y_usbpcm_urbs_allocate, .-usX2Y_usbpcm_urbs_allocate
	.comm	i_usX2Y_usbpcm_subs_startup,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	NRURBS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
