	.file	"extr_endpoint.c_release_urbs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	release_urbs, @function
release_urbs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, 1
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	QWORD PTR 48[rdi], 0
	mov	QWORD PTR 40[rdi], 0
	call	deactivate_urbs@PLT
	mov	rdi, rbp
	call	wait_clear_urbs@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 32[rbp]
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	release_urb_ctx@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L3
.L2:
	mov	rdx, QWORD PTR 8[rbp]
	test	rdx, rdx
	je	.L4
	mov	eax, DWORD PTR SYNC_URBS[rip]
	mov	ecx, DWORD PTR 16[rbp]
	lea	esi, 0[0+rax*4]
	mov	rax, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR [rax]
	call	usb_buffer_free@PLT
.L4:
	mov	QWORD PTR 8[rbp], 0
	mov	DWORD PTR 0[rbp], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	release_urbs, .-release_urbs
	.comm	SYNC_URBS,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_endpoint.c_release_urbs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	release_urbs, %function
release_urbs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	mov	r5, r0
	mov	r2, #1
	str	r4, [r0, #24]
	str	r4, [r0, #20]
	bl	deactivate_urbs
	mov	r0, r5
	bl	wait_clear_urbs
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L2
.L3:
	ldr	r0, [r5, #16]
	add	r0, r0, r4, lsl #2
	bl	release_urb_ctx
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r2, [r5, #4]
	cmp	r2, #0
	beq	.L4
	ldr	r1, .L11
	ldr	r3, [r5, #12]
	ldr	r1, [r1]
	ldr	r0, [r3]
	lsl	r1, r1, #2
	ldr	r3, [r5, #8]
	bl	usb_buffer_free
.L4:
	mov	r3, #0
	str	r3, [r5, #4]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	SYNC_URBS
	.size	release_urbs, .-release_urbs
	.comm	SYNC_URBS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
