	.file	"extr_uas.c_uas_configure_endpoints.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uas_configure_endpoints, @function
uas_configure_endpoints:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	xmm0, xmm0
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR 48[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	rsi, rsp
	movaps	XMMWORD PTR [rsp], xmm0
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	edi, DWORD PTR [rax]
	call	uas_find_endpoints@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rsp]
	call	usb_endpoint_num@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	usb_sndbulkpipe@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 40[rbx], rax
	call	usb_endpoint_num@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	usb_rcvbulkpipe@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	QWORD PTR 32[rbx], rax
	call	usb_endpoint_num@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	usb_rcvbulkpipe@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	QWORD PTR 24[rbx], rax
	call	usb_endpoint_num@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	usb_sndbulkpipe@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR USB_SPEED_SUPER[rip]
	cmp	QWORD PTR 0[rbp], rax
	jge	.L3
	mov	QWORD PTR [rbx], 32
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR MAX_CMNDS[rip]
	lea	rsi, 8[rsp]
	mov	edx, 3
	mov	r8d, DWORD PTR GFP_NOIO[rip]
	call	usb_alloc_streams@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	js	.L5
	mov	DWORD PTR 4[rbx], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12d, eax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	uas_configure_endpoints, .-uas_configure_endpoints
	.comm	USB_SPEED_SUPER,8,8
	.comm	MAX_CMNDS,4,4
	.comm	GFP_NOIO,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_uas.c_uas_configure_endpoints.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uas_configure_endpoints, %function
uas_configure_endpoints:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r3, #0
	mov	r4, r0
	ldr	r2, [r0, #8]
	sub	sp, sp, #32
	ldr	r0, [r2]
	ldr	r2, .L10
	add	r1, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	ldr	r6, [r4, #28]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	bl	uas_find_endpoints
	subs	r5, r0, #0
	beq	.L8
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r5
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, [sp, #12]
	bl	usb_endpoint_num
	mov	r1, r0
	mov	r0, r6
	bl	usb_sndbulkpipe
	mov	r3, r0
	ldr	r0, [sp, #16]
	str	r3, [r4, #24]
	bl	usb_endpoint_num
	mov	r1, r0
	mov	r0, r6
	bl	usb_rcvbulkpipe
	mov	r3, r0
	ldr	r0, [sp, #20]
	str	r3, [r4, #20]
	bl	usb_endpoint_num
	mov	r1, r0
	mov	r0, r6
	bl	usb_rcvbulkpipe
	mov	r3, r0
	ldr	r0, [sp, #24]
	str	r3, [r4, #16]
	bl	usb_endpoint_num
	mov	r1, r0
	mov	r0, r6
	bl	usb_sndbulkpipe
	ldr	r3, .L10+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	str	r0, [r4, #12]
	cmp	r2, r3
	movlt	r3, #32
	stmlt	r4, {r3, r5}
	blt	.L1
.L3:
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp]
	ldr	r0, [r4, #8]
	mov	r2, #3
	add	r1, sp, #16
	bl	usb_alloc_streams
	cmp	r0, #0
	movge	r3, #1
	movlt	r5, r0
	str	r0, [r4]
	strge	r3, [r4, #4]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	USB_SPEED_SUPER
	.word	GFP_NOIO
	.word	MAX_CMNDS
	.size	uas_configure_endpoints, .-uas_configure_endpoints
	.comm	USB_SPEED_SUPER,4,4
	.comm	MAX_CMNDS,4,4
	.comm	GFP_NOIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
