	.file	"extr_usbtest.c_test_queue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"micro"
.LC1:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"iso period %d %sframes, wMaxPacket %d, transactions: %d\n"
	.section	.rodata.str1.1
.LC3:
	.string	"total %lu msec (%lu packets)\n"
.LC4:
	.string	"submit iso[%d], error %d\n"
	.text
	.p2align 4
	.type	test_queue, @function
test_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, edx
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 120
	mov	QWORD PTR -112[rbp], rcx
	mov	QWORD PTR -136[rbp], rdi
	mov	rsi, rsp
	mov	DWORD PTR -124[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_SGLEN[rip]
	mov	rcx, rax
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L64:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L64
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L65
	mov	esi, DWORD PTR [rbx]
	mov	QWORD PTR -104[rbp], rsp
	test	esi, esi
	je	.L5
.L70:
	mov	eax, DWORD PTR UINT_MAX[rip]
	cdq
	idiv	esi
	cmp	DWORD PTR 4[rbx], eax
	jg	.L5
	cmp	esi, ecx
	jg	.L5
	lea	rax, -96[rbp]
	xor	esi, esi
	mov	edx, 40
	mov	rdi, rax
	mov	QWORD PTR -120[rbp], rax
	call	memset@PLT
	mov	eax, DWORD PTR 4[rbx]
	imul	eax, DWORD PTR [rbx]
	mov	r15, QWORD PTR -136[rbp]
	mov	DWORD PTR -96[rbp], eax
	xor	eax, eax
	cmp	QWORD PTR -112[rbp], 0
	setne	al
	mov	QWORD PTR -64[rbp], r15
	mov	DWORD PTR -92[rbp], eax
	lea	rax, -76[rbp]
	mov	rdi, rax
	mov	QWORD PTR -152[rbp], rax
	call	init_completion@PLT
	lea	rax, -72[rbp]
	mov	rdi, rax
	mov	QWORD PTR -144[rbp], rax
	call	spin_lock_init@PLT
	mov	rdi, r15
	call	testdev_to_usbdev@PLT
	mov	r8d, DWORD PTR [rbx]
	mov	r15, rax
	test	r8d, r8d
	je	.L35
	xor	r14d, r14d
	mov	rax, rbx
	xor	r12d, r12d
	mov	rbx, r14
	mov	r14, rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L68:
	mov	ecx, edx
	mov	r8d, DWORD PTR -124[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	mov	esi, r13d
	mov	rdi, r15
	call	iso_alloc_urb@PLT
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, r12d
	mov	QWORD PTR [rcx+rdx*8], rax
	mov	edx, DWORD PTR [r14]
	test	rax, rax
	je	.L66
.L11:
	mov	rsi, QWORD PTR -120[rbp]
	add	r12d, 1
	add	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rax], rsi
	cmp	r12d, edx
	jnb	.L67
.L13:
	mov	edi, DWORD PTR -92[rbp]
	mov	edx, DWORD PTR 8[r14]
	test	edi, edi
	jne	.L68
	xor	ecx, ecx
	mov	esi, r13d
	mov	rdi, r15
	call	complicated_alloc_urb@PLT
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, r12d
	mov	QWORD PTR [rcx+rdx*8], rax
	mov	edx, DWORD PTR [r14]
	test	rax, rax
	jne	.L11
.L66:
	mov	r13d, DWORD PTR ENOMEM[rip]
	mov	rbx, r14
	neg	r13d
.L12:
	test	edx, edx
	je	.L1
	mov	r14, QWORD PTR -104[rbp]
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L33:
	mov	eax, r12d
	mov	rdi, QWORD PTR [r14+rax*8]
	test	rdi, rdi
	je	.L32
	call	simple_free_urb@PLT
.L32:
	add	r12d, 1
	cmp	DWORD PTR [rbx], r12d
	ja	.L33
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L69
	lea	rsp, -40[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L65:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	mov	esi, DWORD PTR [rbx]
	mov	QWORD PTR -104[rbp], rsp
	test	esi, esi
	jne	.L70
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L67:
	mov	rax, r14
	mov	r14, rbx
	mov	rbx, rax
.L8:
	mov	esi, DWORD PTR -92[rbp]
	test	esi, esi
	je	.L14
	mov	r12d, DWORD PTR 4[rbx]
	mov	rax, QWORD PTR USB_SPEED_SUPER[rip]
	cmp	QWORD PTR [r15], rax
	jge	.L71
	mov	rdi, QWORD PTR -112[rbp]
	call	usb_endpoint_maxp_mult@PLT
	mov	r9d, eax
.L16:
	mov	rdi, QWORD PTR -112[rbp]
	movsx	r13, r12d
	mov	DWORD PTR -120[rbp], r9d
	call	usb_endpoint_maxp@PLT
	mov	r12, QWORD PTR -112[rbp]
	mov	r9d, DWORD PTR -120[rbp]
	lea	r11, .LC0[rip]
	mov	r8d, eax
	mov	rax, QWORD PTR USB_SPEED_HIGH[rip]
	cmp	QWORD PTR [r15], rax
	lea	rax, .LC1[rip]
	cmovl	r11, rax
	mov	eax, DWORD PTR [r12]
	imul	r14, r13
	mov	r13d, 1
	mov	edx, r13d
	lea	rsi, .LC2[rip]
	lea	ecx, -1[rax]
	mov	DWORD PTR -112[rbp], eax
	mov	rax, QWORD PTR -136[rbp]
	sal	edx, cl
	mov	rcx, r11
	mov	rdi, QWORD PTR [rax]
	movsx	rdx, edx
	xor	eax, eax
	call	dev_info@PLT
	mov	ecx, DWORD PTR [r12]
	mov	rax, QWORD PTR USB_SPEED_HIGH[rip]
	sub	ecx, 1
	sal	r13d, cl
	movsx	rdx, r13d
	imul	rdx, r14
	cmp	QWORD PTR [r15], rax
	jl	.L18
	shr	rdx, 3
.L18:
	mov	rax, QWORD PTR -136[rbp]
	mov	rcx, r14
	lea	rsi, .LC3[rip]
	mov	rdi, QWORD PTR [rax]
	xor	eax, eax
	call	dev_info@PLT
.L14:
	mov	rdi, QWORD PTR -144[rbp]
	call	spin_lock_irq@PLT
	mov	r13d, DWORD PTR [rbx]
	test	r13d, r13d
	je	.L19
	mov	r13, QWORD PTR -104[rbp]
	xor	r14d, r14d
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L20:
	add	r14d, 1
	cmp	DWORD PTR [rbx], r14d
	jbe	.L72
.L23:
	mov	r12d, r14d
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	add	DWORD PTR -68[rbp], 1
	mov	r15, QWORD PTR 0[r13+r12*8]
	mov	rdi, r15
	call	usb_submit_urb@PLT
	test	eax, eax
	jns	.L20
	mov	rdi, QWORD PTR -136[rbp]
	mov	ecx, eax
	mov	edx, r14d
	mov	r13d, eax
	lea	rsi, .LC4[rip]
	call	ERROR@PLT
	test	r14d, r14d
	je	.L73
	mov	rdi, r15
	call	simple_free_urb@PLT
	mov	rax, QWORD PTR -104[rbp]
	sub	DWORD PTR -68[rbp], 1
	mov	rdi, QWORD PTR -144[rbp]
	mov	DWORD PTR -88[rbp], 1
	mov	QWORD PTR [rax+r12*8], 0
	call	spin_unlock_irq@PLT
	mov	rdi, QWORD PTR -152[rbp]
	call	wait_for_completion@PLT
	mov	ecx, DWORD PTR [rbx]
	test	ecx, ecx
	je	.L1
.L22:
	mov	r14, QWORD PTR -104[rbp]
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L29:
	mov	eax, r12d
	mov	rdi, QWORD PTR [r14+rax*8]
	test	rdi, rdi
	je	.L28
	call	simple_free_urb@PLT
.L28:
	add	r12d, 1
	cmp	DWORD PTR [rbx], r12d
	ja	.L29
.L27:
	test	r13d, r13d
	jne	.L1
.L30:
	mov	r13d, DWORD PTR -88[rbp]
	test	r13d, r13d
	je	.L74
	mov	r13d, DWORD PTR EACCES[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L72:
	mov	rdi, QWORD PTR -144[rbp]
	mov	r13d, eax
	call	spin_unlock_irq@PLT
	mov	rdi, QWORD PTR -152[rbp]
	call	wait_for_completion@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L22
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L71:
	mov	esi, r13d
	mov	rdi, r15
	call	ss_isoc_get_packet_num@PLT
	mov	r9d, eax
	jmp	.L16
.L73:
	mov	rdi, QWORD PTR -144[rbp]
	call	spin_unlock_irq@PLT
	mov	edx, DWORD PTR [rbx]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L74:
	mov	eax, DWORD PTR -92[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	test	eax, eax
	je	.L31
	movsx	rax, DWORD PTR -80[rbp]
	mov	rdx, rax
	imul	rax, rax, 1717986919
	sar	edx, 31
	sar	rax, 34
	sub	eax, edx
.L31:
	cmp	ecx, eax
	jle	.L1
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L1
.L35:
	xor	r14d, r14d
	jmp	.L8
.L19:
	mov	rdi, QWORD PTR -144[rbp]
	call	spin_unlock_irq@PLT
	mov	rdi, QWORD PTR -152[rbp]
	call	wait_for_completion@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jne	.L22
	jmp	.L30
.L69:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_queue, .-test_queue
	.comm	USB_SPEED_SUPER,8,8
	.comm	USB_SPEED_HIGH,8,8
	.comm	UINT_MAX,4,4
	.comm	MAX_SGLEN,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EACCES,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_usbtest.c_test_queue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"micro\000"
	.align	2
.LC1:
	.ascii	"\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"iso period %d %sframes, wMaxPacket %d, transactions"
	.ascii	": %d\012\000"
	.align	2
.LC3:
	.ascii	"total %lu msec (%lu packets)\012\000"
	.align	2
.LC4:
	.ascii	"submit iso[%d], error %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_queue, %function
test_queue:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #68
	mov	r4, r1
	ldr	r1, .L72
	ldr	r9, [r4]
	ldr	r5, [r1]
	mov	r8, r3
	lsl	ip, r5, #2
	ldr	r3, .L72+4
	add	ip, ip, #7
	bic	ip, ip, #7
	str	r0, [fp, #-80]
	cmp	r9, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	sub	sp, sp, ip
	beq	.L2
	ldr	r3, .L72+8
	mov	r1, r9
	ldr	r0, [r3]
	mov	r7, r2
	bl	__aeabi_idiv
	ldr	r1, [r4, #4]
	cmp	r1, r0
	bgt	.L2
	cmp	r9, r5
	bgt	.L2
	mov	r5, #0
	subs	r3, r8, r5
	movne	r3, #1
	mul	r9, r1, r9
	str	r9, [fp, #-76]
	ldr	r9, [fp, #-80]
	sub	r0, fp, #56
	str	r3, [fp, #-72]
	str	r9, [fp, #-44]
	str	r5, [fp, #-68]
	str	r5, [fp, #-64]
	str	r5, [fp, #-60]
	str	r5, [fp, #-56]
	str	r5, [fp, #-52]
	str	r5, [fp, #-48]
	bl	init_completion
	sub	r0, fp, #52
	bl	spin_lock_init
	mov	r0, r9
	bl	testdev_to_usbdev
	ldr	r9, [r4]
	mov	r10, r0
	cmp	r9, r5
	add	r6, sp, #8
	beq	.L5
	mov	r9, r5
	b	.L10
.L66:
	ldr	r3, [fp, #4]
	mov	r1, r7
	str	r3, [sp]
	mov	r0, r10
	mov	r3, r2
	mov	r2, r8
	bl	iso_alloc_urb
	cmp	r0, #0
	ldr	r3, [r4]
	str	r0, [r6, r5, lsl #2]
	beq	.L65
.L8:
	ldr	r2, [r0, #4]
	add	r5, r5, #1
	cmp	r5, r3
	sub	r3, fp, #76
	str	r3, [r0]
	add	r9, r9, r2
	bcs	.L5
.L10:
	ldr	r3, [fp, #-72]
	ldr	r2, [r4, #8]
	cmp	r3, #0
	bne	.L66
	mov	r1, r7
	mov	r0, r10
	bl	complicated_alloc_urb
	cmp	r0, #0
	ldr	r3, [r4]
	str	r0, [r6, r5, lsl #2]
	bne	.L8
.L65:
	ldr	r2, .L72+12
	ldr	r5, [r2]
	rsb	r5, r5, #0
.L9:
	cmp	r3, #0
	beq	.L1
	mov	r7, #0
	sub	r6, r6, #4
.L30:
	ldr	r0, [r6, #4]!
	cmp	r0, #0
	beq	.L29
	bl	simple_free_urb
	ldr	r3, [r4]
.L29:
	add	r7, r7, #1
	cmp	r3, r7
	bhi	.L30
	b	.L1
.L2:
	ldr	r3, .L72+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L72+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L67
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L72+20
	ldr	r1, [r10]
	ldr	r2, [r3]
	ldr	r3, [r4, #4]
	cmp	r1, r2
	str	r3, [fp, #-84]
	bge	.L68
	mov	r0, r8
	bl	usb_endpoint_maxp_mult
	ldr	r3, [fp, #-84]
	str	r0, [fp, #-92]
.L13:
	ldr	r5, .L72+24
	ldr	ip, [r10]
	ldr	lr, [r5]
	ldr	r0, .L72+28
	cmp	ip, lr
	mul	r9, r3, r9
	ldr	r3, .L72+32
	movge	r3, r0
	mov	r1, #1
	ldr	r2, [r8]
	str	r3, [fp, #-88]
	sub	r2, r2, #1
	ldr	r3, [fp, #-80]
	lsl	r2, r1, r2
	mov	r0, r8
	ldr	r7, [r3]
	str	r2, [fp, #-84]
	bl	usb_endpoint_maxp
	ldr	r1, [fp, #-92]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-84]
	str	r0, [sp]
	str	r1, [sp, #4]
	mov	r0, r7
	ldr	r1, .L72+36
	bl	dev_info
	ldr	r3, [r5]
	ldr	r1, [r10]
	ldr	r2, [r8]
	cmp	r1, r3
	sub	r2, r2, #1
	ldr	r3, [fp, #-80]
	lsl	r2, r9, r2
	ldr	r0, [r3]
	ldr	r1, .L72+40
	mov	r3, r9
	lsrge	r2, r2, #3
	bl	dev_info
.L11:
	sub	r0, fp, #52
	bl	spin_lock_irq
	ldr	r5, [r4]
	cmp	r5, #0
	beq	.L16
	sub	r3, r6, #4
	mov	r8, r3
	mov	r10, #0
	ldr	r9, .L72+44
	str	r3, [fp, #-84]
	b	.L20
.L17:
	ldr	r3, [r4]
	add	r10, r10, #1
	cmp	r3, r10
	bls	.L69
.L20:
	ldr	r3, [fp, #-48]
	ldr	r7, [r8, #4]!
	add	r3, r3, #1
	mov	r0, r7
	ldr	r1, [r9]
	str	r3, [fp, #-48]
	bl	usb_submit_urb
	cmp	r0, #0
	bge	.L17
	mov	r5, r0
	mov	r2, r10
	mov	r3, r5
	ldr	r0, [fp, #-80]
	ldr	r1, .L72+48
	bl	ERROR
	cmp	r10, #0
	beq	.L70
	mov	r0, r7
	bl	simple_free_urb
	mov	r1, #0
	mov	r2, #1
	ldr	r3, [fp, #-48]
	str	r1, [r6, r10, lsl #2]
	sub	r3, r3, #1
	sub	r0, fp, #52
	str	r3, [fp, #-48]
	str	r2, [fp, #-68]
	bl	spin_unlock_irq
	sub	r0, fp, #56
	bl	wait_for_completion
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L1
.L19:
	mov	r6, #0
	ldr	r8, [fp, #-84]
.L26:
	ldr	r0, [r8, #4]!
	cmp	r0, #0
	beq	.L25
	bl	simple_free_urb
	ldr	r3, [r4]
.L25:
	add	r6, r6, #1
	cmp	r3, r6
	bhi	.L26
.L24:
	cmp	r5, #0
	bne	.L1
.L27:
	ldr	r5, [fp, #-68]
	cmp	r5, #0
	beq	.L71
	ldr	r3, .L72+52
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L69:
	mov	r5, r0
	sub	r0, fp, #52
	bl	spin_unlock_irq
	sub	r0, fp, #56
	bl	wait_for_completion
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L19
	b	.L24
.L68:
	mov	r1, r7
	mov	r0, r10
	bl	ss_isoc_get_packet_num
	ldr	r3, [fp, #-84]
	str	r0, [fp, #-92]
	b	.L13
.L70:
	sub	r0, fp, #52
	bl	spin_unlock_irq
	ldr	r3, [r4]
	b	.L9
.L71:
	ldr	r3, [fp, #-72]
	ldr	r1, [fp, #-64]
	cmp	r3, #0
	ldrne	r2, [fp, #-60]
	ldrne	r0, .L72+56
	asrne	r3, r2, #31
	smullne	ip, r2, r0, r2
	rsbne	r3, r3, r2, asr #2
	cmp	r1, r3
	ldrgt	r3, .L72+60
	ldrgt	r5, [r3]
	rsbgt	r5, r5, #0
	b	.L1
.L16:
	sub	r0, fp, #52
	bl	spin_unlock_irq
	sub	r0, fp, #56
	bl	wait_for_completion
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L27
	sub	r2, r6, #4
	str	r2, [fp, #-84]
	b	.L19
.L67:
	bl	__stack_chk_fail
.L73:
	.align	2
.L72:
	.word	MAX_SGLEN
	.word	.LC5
	.word	UINT_MAX
	.word	ENOMEM
	.word	EINVAL
	.word	USB_SPEED_SUPER
	.word	USB_SPEED_HIGH
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	GFP_ATOMIC
	.word	.LC4
	.word	EACCES
	.word	1717986919
	.word	EIO
	.size	test_queue, .-test_queue
	.comm	USB_SPEED_SUPER,4,4
	.comm	USB_SPEED_HIGH,4,4
	.comm	UINT_MAX,4,4
	.comm	MAX_SGLEN,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
