	.file	"extr_usb_msc_test.c_do_io_test.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERROR: Data comparison failure\n"
	.align 8
.LC1:
	.string	"Maximum number of errors exceeded\n"
	.text
	.p2align 4
	.type	do_io_test, @function
do_io_test:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rdi]
	mov	QWORD PTR [rsp], r8
	cmp	eax, 142
	je	.L2
	mov	r15d, 1
	cmp	eax, 143
	jne	.L2
	xor	eax, eax
	call	usb_ts_rand_noise@PLT
	and	eax, 1
	mov	r15d, eax
.L2:
	xor	ebp, ebp
	cmp	DWORD PTR 4[r14], 141
	je	.L39
	mov	ecx, DWORD PTR 8[r14]
	cmp	ecx, 146
	je	.L4
.L40:
	jg	.L5
	cmp	ecx, 144
	je	.L6
	cmp	ecx, 145
	jne	.L8
	xor	eax, eax
	call	usb_ts_rand_noise@PLT
	mov	ecx, eax
	shr	ecx, 5
	imul	rcx, rcx, 175921861
	shr	rcx, 39
	imul	ecx, ecx, 100000
	sub	eax, ecx
	mov	edi, eax
	call	usleep@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 12[r14]
	lea	ecx, -128[rax]
	cmp	ecx, 12
	ja	.L10
	lea	rsi, .L12[rip]
	movsx	rax, DWORD PTR [rsi+rcx*4]
	add	rax, rsi
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L12:
	.long	.L23-.L12
	.long	.L22-.L12
	.long	.L21-.L12
	.long	.L20-.L12
	.long	.L19-.L12
	.long	.L18-.L12
	.long	.L17-.L12
	.long	.L34-.L12
	.long	.L15-.L12
	.long	.L10-.L12
	.long	.L14-.L12
	.long	.L13-.L12
	.long	.L11-.L12
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	ecx, 147
	jne	.L8
	mov	edi, 100000
	call	usleep@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L39:
	xor	eax, eax
	call	usb_ts_rand_noise@PLT
	mov	ecx, DWORD PTR 8[r14]
	mov	ebp, eax
	cmp	ecx, 146
	jne	.L40
.L4:
	mov	edi, 10000
	call	usleep@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L34:
	mov	ecx, 2
	.p2align 4,,10
	.p2align 3
.L16:
	xor	edx, edx
	mov	eax, ebp
	mov	esi, DWORD PTR block_size[rip]
	div	ebx
	sub	ebx, edx
	mov	edi, edx
	cmp	ebx, ecx
	cmova	ebx, ecx
	imul	edx, esi
	imul	esi, ebx
	sal	rdx, 2
	test	r15d, r15d
	je	.L25
	add	rdx, r13
	mov	ecx, r12d
	mov	DWORD PTR 12[rsp], edi
	call	do_read_10@PLT
	mov	edi, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L26
.L37:
	mov	rcx, QWORD PTR stats[rip]
.L27:
	imul	ebx, DWORD PTR block_size[rip]
	add	DWORD PTR stats[rip+8], ebx
.L29:
	add	rcx, QWORD PTR stats[rip+16]
	add	rcx, QWORD PTR stats[rip+24]
	cmp	rcx, QWORD PTR 16[r14]
	jge	.L41
	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
	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
.L15:
	.cfi_restore_state
	mov	ecx, 256
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ecx, 16
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ecx, 128
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, 1024
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L23:
	xor	eax, eax
	call	usb_ts_rand_noise@PLT
	movzx	ecx, ax
.L24:
	test	ecx, ecx
	mov	eax, 1
	cmove	ecx, eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L22:
	movzx	ecx, WORD PTR xfer_current_id[rip]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L21:
	mov	ecx, 8
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L20:
	mov	ecx, 64
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L19:
	mov	ecx, 512
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	mov	ecx, 4
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	mov	ecx, 32
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, 1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L25:
	mov	ecx, r12d
	add	rdx, QWORD PTR [rsp]
	call	do_write_10@PLT
	imul	ebx, DWORD PTR block_size[rip]
	mov	rcx, QWORD PTR stats[rip]
	add	DWORD PTR stats[rip+12], ebx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L41:
	lea	rdi, .LC1[rip]
	call	printf@PLT
	mov	DWORD PTR 24[r14], 1
	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
	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
.L6:
	.cfi_restore_state
	xor	eax, eax
	call	usb_ts_rand_noise@PLT
	mov	esi, 3518437209
	mov	ecx, eax
	imul	rcx, rsi
	shr	rcx, 45
	imul	ecx, ecx, 10000
	sub	eax, ecx
	mov	edi, eax
	call	usleep@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, DWORD PTR block_size[rip]
	mov	rsi, QWORD PTR [rsp]
	imul	edi, edx
	imul	edx, ebx
	sal	rdi, 2
	add	rsi, rdi
	add	rdi, r13
	call	bcmp@PLT
	test	rax, rax
	je	.L37
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	rax, QWORD PTR stats[rip]
	lea	rcx, 1[rax]
	mov	QWORD PTR stats[rip], rcx
	jmp	.L27
	.cfi_endproc
.LFE0:
	.size	do_io_test, .-do_io_test
	.comm	xfer_current_id,4,4
	.comm	stats,32,32
	.comm	block_size,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_usb_msc_test.c_do_io_test.c"
	.text
	.global	__aeabi_uidivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR: Data comparison failure\012\000"
	.align	2
.LC1:
	.ascii	"Maximum number of errors exceeded\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_io_test, %function
do_io_test:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r7, r1
	cmp	r0, #142
	mov	r4, r2
	mov	r8, r3
	moveq	r9, #0
	beq	.L2
	cmp	r0, #143
	movne	r9, #1
	bne	.L2
	bl	usb_ts_rand_noise
	and	r9, r0, #1
.L2:
	ldr	r3, [r5, #4]
	cmp	r3, #141
	movne	r6, #0
	beq	.L37
.L3:
	ldr	r3, [r5, #8]
	sub	r3, r3, #144
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L9:
	bl	usb_ts_rand_noise
	ldr	r3, .L38
	umull	r2, r3, r0, r3
	lsr	r3, r3, #13
	rsb	r2, r3, r3, lsl #5
	add	r3, r3, r2, lsl #2
	add	r3, r3, r3, lsl #2
	sub	r0, r0, r3, lsl #4
	bl	usleep
.L4:
	ldr	r3, [r5, #12]
	sub	r3, r3, #128
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L10
.L12:
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L34
	.word	.L15
	.word	.L10
	.word	.L14
	.word	.L13
	.word	.L11
.L37:
	bl	usb_ts_rand_noise
	mov	r6, r0
	b	.L3
.L5:
	ldr	r0, .L38+4
	bl	usleep
	b	.L4
.L8:
	bl	usb_ts_rand_noise
	ldr	r2, .L38+8
	lsr	r3, r0, #5
	umull	r1, r3, r2, r3
	ldr	r2, .L38+4
	lsr	r3, r3, #7
	mul	r3, r2, r3
	sub	r0, r0, r3
	bl	usleep
	b	.L4
.L7:
	ldr	r0, .L38+12
	bl	usleep
	b	.L4
.L34:
	mov	r10, #2
.L16:
	mov	r0, r6
	mov	r1, r4
	bl	__aeabi_uidivmod
	mov	r6, r1
	sub	r4, r4, r1
	cmp	r4, r10
	movcs	r4, r10
	ldr	r10, .L38+16
	cmp	r9, #0
	ldr	r1, [r10]
	mov	r3, r7
	mul	r2, r1, r6
	mul	r1, r4, r1
	lsl	r2, r2, #2
	beq	.L25
	mov	r0, r6
	add	r2, r8, r2
	bl	do_read_10
	cmp	r0, #0
	ldr	r7, [r10]
	beq	.L26
	ldr	r1, .L38+20
	mul	r7, r4, r7
	ldr	r3, [r1]
.L27:
	ldr	r2, [r1, #4]
	add	r2, r2, r7
	str	r2, [r1, #4]
.L29:
	ldr	r2, [r1, #12]
	ldr	r1, [r1, #16]
	add	r3, r3, r2
	ldr	r2, [r5, #16]
	add	r3, r3, r1
	cmp	r3, r2
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r0, .L38+24
	bl	printf
	mov	r3, #1
	str	r3, [r5, #20]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r10, #16
	b	.L16
.L13:
	mov	r10, #128
	b	.L16
.L11:
	mov	r10, #1024
	b	.L16
.L15:
	mov	r10, #256
	b	.L16
.L23:
	bl	usb_ts_rand_noise
	lsl	r10, r0, #16
	lsr	r10, r10, #16
.L24:
	cmp	r10, #1
	movcc	r10, #1
	b	.L16
.L22:
	ldr	r3, .L38+28
	ldrh	r10, [r3]
	b	.L24
.L21:
	mov	r10, #8
	b	.L16
.L20:
	mov	r10, #64
	b	.L16
.L19:
	mov	r10, #512
	b	.L16
.L18:
	mov	r10, #4
	b	.L16
.L17:
	mov	r10, #32
	b	.L16
.L10:
	mov	r10, #1
	b	.L16
.L25:
	ldr	r0, [sp, #32]
	add	r2, r0, r2
	mov	r0, r6
	bl	do_write_10
	ldr	r1, .L38+20
	ldr	r0, [r10]
	ldr	r2, [r1, #8]
	ldr	r3, [r1]
	mla	r4, r0, r4, r2
	str	r4, [r1, #8]
	b	.L29
.L26:
	mul	r1, r6, r7
	mul	r7, r4, r7
	ldr	r3, [sp, #32]
	add	r0, r8, r1, lsl #2
	mov	r2, r7
	add	r1, r3, r1, lsl #2
	bl	memcmp
	cmp	r0, #0
	ldreq	r1, .L38+20
	ldreq	r3, [r1]
	beq	.L27
.L28:
	ldr	r0, .L38+32
	bl	printf
	ldr	r1, .L38+20
	ldr	r7, [r10]
	ldr	r3, [r1]
	mul	r7, r4, r7
	add	r3, r3, #1
	str	r3, [r1]
	b	.L27
.L39:
	.align	2
.L38:
	.word	-776530087
	.word	100000
	.word	175921861
	.word	10000
	.word	block_size
	.word	stats
	.word	.LC1
	.word	xfer_current_id
	.word	.LC0
	.size	do_io_test, .-do_io_test
	.comm	xfer_current_id,4,4
	.comm	stats,20,4
	.comm	block_size,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
