	.file	"extr_endpoint.c_sync_ep_set_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sync_ep_set_params, @function
sync_ep_set_params:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR SYNC_URBS[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rcx, 16[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	esi, 0[0+rax*4]
	mov	rax, QWORD PTR 40[rdi]
	mov	edi, DWORD PTR [rax]
	call	usb_buffer_alloc@PLT
	mov	QWORD PTR 24[rbp], rax
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR SYNC_URBS[rip]
	xor	ebx, ebx
	test	eax, eax
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rcx, QWORD PTR 24[rbp]
	lea	rdx, 0[0+rbx*4]
	add	rbx, 1
	add	rcx, rdx
	add	rdx, QWORD PTR 16[rbp]
	mov	DWORD PTR [rax], 4
	mov	QWORD PTR 40[rax], rdx
	mov	edx, DWORD PTR 8[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	ecx, DWORD PTR 0[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	edx, DWORD PTR URB_ISO_ASAP[rip]
	or	edx, DWORD PTR URB_NO_TRANSFER_DMA_MAP[rip]
	mov	DWORD PTR 8[rax], 1
	mov	DWORD PTR 4[rax], edx
	mov	edx, 1
	sal	edx, cl
	mov	QWORD PTR 24[rax], r12
	mov	DWORD PTR 12[rax], edx
	mov	edx, DWORD PTR snd_complete_urb[rip]
	mov	DWORD PTR 16[rax], edx
	mov	eax, DWORD PTR SYNC_URBS[rip]
	cmp	eax, ebx
	jle	.L4
.L3:
	mov	rdx, QWORD PTR 32[rbp]
	lea	rax, [rbx+rbx*2]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 1
	lea	r12, [rdx+rax*8]
	mov	DWORD PTR [r12], ebx
	mov	QWORD PTR 16[r12], rbp
	mov	DWORD PTR 4[r12], 1
	call	usb_alloc_urb@PLT
	mov	QWORD PTR 8[r12], rax
	test	rax, rax
	jne	.L6
	xor	esi, esi
	mov	rdi, rbp
	call	release_urbs@PLT
.L11:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	DWORD PTR 4[rbp], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sync_ep_set_params, .-sync_ep_set_params
	.comm	snd_complete_urb,4,4
	.comm	URB_NO_TRANSFER_DMA_MAP,4,4
	.comm	URB_ISO_ASAP,4,4
	.comm	SYNC_URBS,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_endpoint.c_sync_ep_set_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sync_ep_set_params, %function
sync_ep_set_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r6, .L12
	ldr	r3, [r0, #24]
	ldr	r1, [r6]
	ldr	r2, .L12+4
	ldr	r0, [r3]
	ldr	r2, [r2]
	add	r3, r5, #12
	lsl	r1, r1, #2
	bl	usb_buffer_alloc
	cmp	r0, #0
	str	r0, [r5, #16]
	beq	.L10
	ldr	r1, [r6]
	cmp	r1, #0
	ble	.L4
	mov	r4, #0
	ldr	r10, .L12+8
	ldr	r9, .L12+12
	ldr	r8, .L12+16
	b	.L3
.L6:
	mov	ip, #4
	ldr	lr, [r5, #16]
	ldr	r2, [r5, #12]
	add	lr, lr, r4, lsl #2
	ldr	r1, [r10]
	str	lr, [r0, #32]
	ldr	lr, [r9]
	add	r2, r2, r4, lsl #2
	orr	r1, r1, lr
	str	r2, [r0, #28]
	ldr	lr, [r5, #8]
	ldr	r2, [r5]
	str	r1, [r0, #4]
	ldr	r1, [r6]
	ldr	r3, [r8]
	add	r4, r4, #1
	lsl	r2, r7, r2
	cmp	r1, r4
	str	lr, [r0, #24]
	str	r7, [r0, #8]
	str	r2, [r0, #12]
	str	fp, [r0, #20]
	str	ip, [r0]
	str	r3, [r0, #16]
	ble	.L4
.L3:
	mov	r7, #1
	ldr	r2, [r5, #20]
	ldr	r3, .L12+4
	add	fp, r2, r4, lsl #4
	str	r4, [r2, r4, lsl #4]
	mov	r0, r7
	ldr	r1, [r3]
	str	r5, [fp, #12]
	str	r7, [fp, #4]
	bl	usb_alloc_urb
	cmp	r0, #0
	str	r0, [fp, #8]
	bne	.L6
	mov	r1, r0
	mov	r0, r5
	bl	release_urbs
.L10:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r0, #0
	str	r1, [r5, #4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	SYNC_URBS
	.word	GFP_KERNEL
	.word	URB_ISO_ASAP
	.word	URB_NO_TRANSFER_DMA_MAP
	.word	snd_complete_urb
	.word	ENOMEM
	.size	sync_ep_set_params, .-sync_ep_set_params
	.comm	snd_complete_urb,4,4
	.comm	URB_NO_TRANSFER_DMA_MAP,4,4
	.comm	URB_ISO_ASAP,4,4
	.comm	SYNC_URBS,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
