	.file	"263586.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"unknown"
.LC1:
	.string	"low"
.LC2:
	.string	"full"
.LC3:
	.string	"high"
.LC4:
	.string	"??"
	.text
	.type	speed, @function
speed:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 3
	je	.L2
	cmp	DWORD PTR -4[rbp], 3
	ja	.L3
	cmp	DWORD PTR -4[rbp], 2
	je	.L4
	cmp	DWORD PTR -4[rbp], 2
	ja	.L3
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	cmp	DWORD PTR -4[rbp], 1
	je	.L6
	jmp	.L3
.L5:
	lea	rax, .LC0[rip]
	jmp	.L7
.L6:
	lea	rax, .LC1[rip]
	jmp	.L7
.L4:
	lea	rax, .LC2[rip]
	jmp	.L7
.L2:
	lea	rax, .LC3[rip]
	jmp	.L7
.L3:
	lea	rax, .LC4[rip]
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	speed, .-speed
	.local	testdevs
	.comm	testdevs,8,8
	.type	testdev_ffs_ifnum, @function
testdev_ffs_ifnum:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L13:
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L9
	mov	eax, -1
	jmp	.L14
.L9:
	movzx	eax, BYTE PTR -272[rbp]
	movzx	eax, al
	sub	eax, 1
	movsx	rsi, eax
	lea	rax, -272[rbp]
	add	rax, 1
	mov	rdx, QWORD PTR -280[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L11
	mov	eax, -1
	jmp	.L14
.L11:
	movzx	eax, BYTE PTR -272[rbp]
	cmp	al, 9
	jne	.L13
	movzx	eax, BYTE PTR -271[rbp]
	cmp	al, 4
	jne	.L13
	movzx	eax, BYTE PTR -268[rbp]
	cmp	al, 2
	jne	.L13
	movzx	eax, BYTE PTR -267[rbp]
	cmp	al, -1
	jne	.L13
	movzx	eax, BYTE PTR -266[rbp]
	test	al, al
	jne	.L13
	movzx	eax, BYTE PTR -265[rbp]
	test	al, al
	jne	.L13
	movzx	eax, BYTE PTR -270[rbp]
	movzx	eax, al
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	testdev_ffs_ifnum, .-testdev_ffs_ifnum
	.type	testdev_ifnum, @function
testdev_ifnum:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 18
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L17
	mov	eax, -1
	jmp	.L33
.L17:
	movzx	eax, BYTE PTR -32[rbp]
	cmp	al, 18
	jne	.L19
	movzx	eax, BYTE PTR -31[rbp]
	cmp	al, 1
	je	.L20
.L19:
	mov	eax, -1
	jmp	.L33
.L20:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1351
	jne	.L21
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, 4098
	jne	.L21
	mov	eax, 0
	jmp	.L33
.L21:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1351
	jne	.L22
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, 8757
	jne	.L22
	mov	eax, 0
	jmp	.L33
.L22:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1204
	jne	.L23
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, -31213
	jne	.L23
	mov	eax, 0
	jmp	.L33
.L23:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1351
	jne	.L24
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, 128
	jne	.L24
	mov	eax, 0
	jmp	.L33
.L24:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1741
	jne	.L25
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, 267
	jne	.L25
	mov	eax, 0
	jmp	.L33
.L25:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1317
	jne	.L26
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, -23392
	jne	.L26
	mov	eax, 0
	jmp	.L33
.L26:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1317
	jne	.L27
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, -23388
	jne	.L27
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	testdev_ffs_ifnum
	jmp	.L33
.L27:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1317
	jne	.L28
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, -23389
	jne	.L28
	mov	eax, 0
	jmp	.L33
.L28:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, -16
	jne	.L29
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, -16
	jne	.L29
	mov	eax, 0
	jmp	.L33
.L29:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 2914
	jne	.L30
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, 89
	jne	.L30
	mov	eax, 0
	jmp	.L33
.L30:
	movzx	eax, WORD PTR -24[rbp]
	cmp	ax, 1317
	jne	.L31
	movzx	eax, WORD PTR -22[rbp]
	cmp	ax, -23380
	jne	.L31
	movzx	eax, BYTE PTR -28[rbp]
	test	al, al
	je	.L32
	movzx	eax, BYTE PTR -28[rbp]
	cmp	al, -1
	jne	.L31
.L32:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	testdev_ffs_ifnum
	jmp	.L33
.L31:
	mov	eax, -1
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	testdev_ifnum, .-testdev_ifnum
	.section	.rodata
.LC5:
	.string	"rb"
.LC6:
	.string	"malloc"
.LC7:
	.string	"%s speed\t%s\t%u\n"
	.text
	.type	find_testdev, @function
find_testdev:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	cmp	DWORD PTR -68[rbp], 0
	je	.L36
	mov	eax, 0
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 100
	jne	.L38
	mov	eax, 0
	jmp	.L37
.L38:
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L39
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 0
	jmp	.L37
.L39:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	testdev_ifnum
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -36[rbp], 0
	jns	.L40
	mov	eax, 0
	jmp	.L37
.L40:
	mov	esi, 80
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L44
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L42
.L44:
	nop
.L42:
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L37
.L43:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 28[rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 28[rax]
	movzx	r12d, al
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	speed
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, r12d
	mov	rcx, rbx
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR testdevs[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR testdevs[rip], rax
	mov	eax, 0
.L37:
	add	rsp, 64
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	find_testdev, .-find_testdev
	.type	usbdev_ioctl, @function
usbdev_ioctl:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 3222295826
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	usbdev_ioctl, .-usbdev_ioctl
	.section	.rodata
.LC8:
	.string	"can't open dev file r/w"
.LC9:
	.string	"error %d"
.LC10:
	.string	"%s test %d --> %d (%s)\n"
.LC11:
	.string	"%s test %d, %4d.%.06d secs\n"
	.text
	.type	handle_testdev, @function
handle_testdev:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L61
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L50
.L61:
	nop
.L49:
	mov	DWORD PTR -120[rbp], 0
	jmp	.L51
.L58:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 32[rax]
	cmp	eax, -1
	je	.L52
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 32[rax]
	cmp	DWORD PTR -120[rbp], eax
	jne	.L62
.L52:
	mov	edx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR 40[rax], edx
	mov	rax, QWORD PTR -104[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR 28[rax]
	movzx	esi, al
	mov	eax, DWORD PTR -116[rbp]
	mov	rcx, rdx
	mov	edx, -1071098524
	mov	edi, eax
	call	usbdev_ioctl
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], 0
	jns	.L54
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 95
	je	.L63
.L54:
	cmp	DWORD PTR -112[rbp], 0
	jns	.L55
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -108[rbp], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	lea	rcx, -96[rbp]
	mov	edx, 80
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	test	eax, eax
	je	.L56
	mov	edx, DWORD PTR -108[rbp]
	lea	rax, -96[rbp]
	mov	ecx, edx
	lea	rdx, .LC9[rip]
	mov	esi, 80
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -108[rbp]
	mov	DWORD PTR [rax], edx
.L56:
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, -96[rbp]
	mov	edx, DWORD PTR -120[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L57
.L55:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	esi, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -120[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L57:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L53
.L62:
	nop
	jmp	.L53
.L63:
	nop
.L53:
	add	DWORD PTR -120[rbp], 1
.L51:
	cmp	DWORD PTR -120[rbp], 29
	jle	.L58
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR 29[rax]
	and	eax, 1
	test	al, al
	je	.L59
	jmp	.L49
.L59:
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -136[rbp]
.L50:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	handle_testdev, .-handle_testdev
	.type	usbfs_dir_find, @function
usbfs_dir_find:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rax, usbfs_paths.3[rip]
	mov	QWORD PTR -8[rbp], rax
.L67:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -12[rbp], 0
	js	.L65
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	jmp	.L66
.L65:
	add	QWORD PTR -8[rbp], 8
	mov	rax, QWORD PTR end.2[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L67
	mov	eax, 0
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	usbfs_dir_find, .-usbfs_dir_find
	.type	parse_num, @function
parse_num:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rcx, -24[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -16[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L69
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L69
	mov	eax, 4294967295
	cmp	QWORD PTR -16[rbp], rax
	jbe	.L70
.L69:
	mov	eax, -1
	jmp	.L72
.L70:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L72:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	parse_num, .-parse_num
	.section	.rodata
.LC12:
	.string	"DEVICE"
	.align 8
.LC13:
	.string	"usage: %s [-n] [-D dev | -a | -A usbfs-dir]\n\t[-c iterations]  [-t testnum]\n\t[-s packetsize] [-g sglen] [-v vary]\n"
.LC14:
	.string	"D:aA:c:g:hns:t:v:"
	.align 8
.LC15:
	.string	"must specify '-a' or '-D dev', or DEVICE=/proc/bus/usb/BBB/DDD in env\n"
.LC16:
	.string	"usbfs files are missing\n"
	.align 8
.LC17:
	.string	"ftw failed; is usbfs missing?\n"
.LC18:
	.string	"no test devices recognized\n"
.LC19:
	.string	"pthread_create"
	.align 8
.LC20:
	.string	"%s: %s may see only control tests\n"
.LC21:
	.string	"pthread_join"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 216
	.cfi_offset 3, -24
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -168[rbp], 0
	mov	DWORD PTR -208[rbp], 0
	mov	DWORD PTR -204[rbp], 0
	mov	DWORD PTR -200[rbp], 0
	mov	DWORD PTR -196[rbp], -1
	mov	DWORD PTR -156[rbp], 1000
	mov	DWORD PTR -152[rbp], 512
	mov	DWORD PTR -148[rbp], 512
	mov	DWORD PTR -144[rbp], 32
	lea	rdi, .LC12[rip]
	call	getenv@PLT
	mov	QWORD PTR -176[rbp], rax
	jmp	.L75
.L94:
	mov	eax, DWORD PTR -192[rbp]
	sub	eax, 65
	cmp	eax, 53
	ja	.L76
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L78[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L78[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L78:
	.long	.L87-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L86-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L85-.L78
	.long	.L76-.L78
	.long	.L84-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L83-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L82-.L78
	.long	.L76-.L78
	.long	.L81-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L76-.L78
	.long	.L80-.L78
	.long	.L79-.L78
	.long	.L76-.L78
	.long	.L77-.L78
	.text
.L86:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -176[rbp], rax
	jmp	.L75
.L87:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -168[rbp], rax
.L85:
	mov	QWORD PTR -176[rbp], 0
	mov	DWORD PTR -208[rbp], 1
	jmp	.L75
.L84:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -160[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	rdi, rdx
	call	parse_num
	test	eax, eax
	jne	.L113
	jmp	.L75
.L83:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -160[rbp]
	add	rdx, 16
	mov	rsi, rax
	mov	rdi, rdx
	call	parse_num
	test	eax, eax
	jne	.L114
	jmp	.L75
.L82:
	mov	DWORD PTR -204[rbp], 1
	jmp	.L75
.L81:
	mov	DWORD PTR -200[rbp], 1
	jmp	.L75
.L80:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -160[rbp]
	add	rdx, 8
	mov	rsi, rax
	mov	rdi, rdx
	call	parse_num
	test	eax, eax
	jne	.L115
	jmp	.L75
.L79:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	js	.L116
	jmp	.L75
.L77:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -160[rbp]
	add	rdx, 12
	mov	rsi, rax
	mov	rdi, rdx
	call	parse_num
	test	eax, eax
	jne	.L117
	jmp	.L75
.L113:
	nop
	jmp	.L76
.L114:
	nop
	jmp	.L76
.L115:
	nop
	jmp	.L76
.L116:
	nop
	jmp	.L76
.L117:
	nop
	jmp	.L76
.L118:
	nop
.L76:
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L111
.L75:
	mov	rcx, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR -212[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -192[rbp], eax
	cmp	DWORD PTR -192[rbp], -1
	jne	.L94
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -212[rbp], eax
	jne	.L118
	cmp	DWORD PTR -208[rbp], 0
	jne	.L96
	cmp	QWORD PTR -176[rbp], 0
	jne	.L96
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 70
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	jmp	.L76
.L96:
	cmp	QWORD PTR -168[rbp], 0
	jne	.L97
	call	usbfs_dir_find
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L97
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L111
.L97:
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 3
	lea	rsi, find_testdev[rip]
	mov	rdi, rax
	call	ftw@PLT
	test	eax, eax
	je	.L98
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L111
.L98:
	mov	rax, QWORD PTR testdevs[rip]
	test	rax, rax
	jne	.L99
	cmp	QWORD PTR -176[rbp], 0
	jne	.L99
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L111
.L99:
	cmp	DWORD PTR -200[rbp], 0
	je	.L100
	mov	eax, 0
	jmp	.L111
.L100:
	mov	rax, QWORD PTR testdevs[rip]
	test	rax, rax
	je	.L101
	mov	rax, QWORD PTR testdevs[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L101
	cmp	QWORD PTR -176[rbp], 0
	jne	.L101
	mov	rax, QWORD PTR testdevs[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -176[rbp], rax
.L101:
	mov	rax, QWORD PTR testdevs[rip]
	mov	QWORD PTR -184[rbp], rax
	jmp	.L102
.L106:
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, QWORD PTR -160[rbp]
	mov	rbx, QWORD PTR -152[rbp]
	mov	QWORD PTR 40[rax], rcx
	mov	QWORD PTR 48[rax], rbx
	mov	rcx, QWORD PTR -144[rbp]
	mov	rbx, QWORD PTR -136[rbp]
	mov	QWORD PTR 56[rax], rcx
	mov	QWORD PTR 64[rax], rbx
	mov	rdx, QWORD PTR -128[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	eax, DWORD PTR -204[rbp]
	and	eax, 1
	mov	rdx, QWORD PTR -184[rbp]
	and	eax, 1
	mov	ecx, eax
	movzx	eax, BYTE PTR 29[rdx]
	and	eax, -2
	or	eax, ecx
	mov	BYTE PTR 29[rdx], al
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR -196[rbp]
	mov	DWORD PTR 32[rax], edx
	cmp	QWORD PTR -176[rbp], 0
	je	.L103
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L119
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	handle_testdev
	cmp	QWORD PTR -184[rbp], rax
	setne	al
	movzx	eax, al
	jmp	.L111
.L103:
	mov	rax, QWORD PTR -184[rbp]
	lea	rdi, 16[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, rax
	lea	rdx, handle_testdev[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], 0
	je	.L105
	lea	rdi, .LC19[rip]
	call	perror@PLT
	jmp	.L105
.L119:
	nop
.L105:
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -184[rbp], rax
.L102:
	cmp	QWORD PTR -184[rbp], 0
	jne	.L106
	cmp	QWORD PTR -176[rbp], 0
	je	.L107
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -176[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -112[rbp]
	mov	edx, 80
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -204[rbp]
	and	eax, 1
	and	eax, 1
	mov	edx, eax
	movzx	eax, BYTE PTR -83[rbp]
	and	eax, -2
	or	eax, edx
	mov	BYTE PTR -83[rbp], al
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR -80[rbp], eax
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	handle_testdev
	lea	rdx, -112[rbp]
	cmp	rax, rdx
	setne	al
	movzx	eax, al
	jmp	.L111
.L107:
	mov	rax, QWORD PTR testdevs[rip]
	mov	QWORD PTR -184[rbp], rax
	jmp	.L108
.L110:
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L109
	lea	rdi, .LC21[rip]
	call	perror@PLT
.L109:
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -184[rbp], rax
.L108:
	cmp	QWORD PTR -184[rbp], 0
	jne	.L110
	mov	eax, 0
.L111:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L112
	call	__stack_chk_fail@PLT
.L112:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.data.rel.ro.local,"aw"
	.align 16
	.type	usbfs_paths.3, @object
	.size	usbfs_paths.3, 16
usbfs_paths.3:
	.quad	usbfs_path_0.0
	.quad	usbfs_path_1.1
	.section	.data.rel.local,"aw"
	.align 8
	.type	end.2, @object
	.size	end.2, 8
end.2:
	.quad	usbfs_paths.3+16
	.data
	.align 16
	.type	usbfs_path_1.1, @object
	.size	usbfs_path_1.1, 22
usbfs_path_1.1:
	.string	"/proc/bus/usb/devices"
	.align 16
	.type	usbfs_path_0.0, @object
	.size	usbfs_path_0.0, 17
usbfs_path_0.0:
	.string	"/dev/usb/devices"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"263586.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"unknown\000"
	.align	2
.LC1:
	.ascii	"low\000"
	.align	2
.LC2:
	.ascii	"full\000"
	.align	2
.LC3:
	.ascii	"high\000"
	.align	2
.LC4:
	.ascii	"??\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	speed, %function
speed:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	ldr	r3, .L9
	b	.L8
.L6:
	ldr	r3, .L9+4
	b	.L8
.L5:
	ldr	r3, .L9+8
	b	.L8
.L3:
	ldr	r3, .L9+12
	b	.L8
.L2:
	ldr	r3, .L9+16
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	speed, .-speed
	.local	testdevs
	.comm	testdevs,4,4
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	testdev_ffs_ifnum, %function
testdev_ffs_ifnum:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L16:
	sub	r0, fp, #264
	ldr	r3, [fp, #-272]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L12
	mvn	r3, #0
	b	.L17
.L12:
	sub	r0, fp, #264
	add	r0, r0, #1
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-272]
	mov	r2, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L14
	mvn	r3, #0
	b	.L17
.L14:
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L16
	ldrb	r3, [fp, #-263]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L16
	ldrb	r3, [fp, #-260]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L16
	ldrb	r3, [fp, #-259]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L16
	ldrb	r3, [fp, #-258]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldrb	r3, [fp, #-257]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldrb	r3, [fp, #-262]	@ zero_extendqisi2
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.size	testdev_ffs_ifnum, .-testdev_ffs_ifnum
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	testdev_ifnum, %function
testdev_ifnum:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #28
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #18
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L22
	mvn	r3, #0
	b	.L38
.L22:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #18
	bne	.L24
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L25
.L24:
	mvn	r3, #0
	b	.L38
.L25:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+4
	cmp	r3, r2
	bne	.L26
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+8
	cmp	r3, r2
	bne	.L26
	mov	r3, #0
	b	.L38
.L26:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+4
	cmp	r3, r2
	bne	.L27
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+12
	cmp	r3, r2
	bne	.L27
	mov	r3, #0
	b	.L38
.L27:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+16
	cmp	r3, r2
	bne	.L28
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+20
	cmp	r3, r2
	bne	.L28
	mov	r3, #0
	b	.L38
.L28:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+4
	cmp	r3, r2
	bne	.L29
	ldrh	r3, [fp, #-18]
	cmp	r3, #128
	bne	.L29
	mov	r3, #0
	b	.L38
.L29:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+24
	cmp	r3, r2
	bne	.L30
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+28
	cmp	r3, r2
	bne	.L30
	mov	r3, #0
	b	.L38
.L30:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+32
	cmp	r3, r2
	bne	.L31
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+36
	cmp	r3, r2
	bne	.L31
	mov	r3, #0
	b	.L38
.L31:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+32
	cmp	r3, r2
	bne	.L32
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+40
	cmp	r3, r2
	bne	.L32
	ldr	r0, [fp, #-32]
	bl	testdev_ffs_ifnum
	mov	r3, r0
	b	.L38
.L32:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+32
	cmp	r3, r2
	bne	.L33
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+44
	cmp	r3, r2
	bne	.L33
	mov	r3, #0
	b	.L38
.L33:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+48
	cmp	r3, r2
	bne	.L34
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+48
	cmp	r3, r2
	bne	.L34
	mov	r3, #0
	b	.L38
.L34:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+52
	cmp	r3, r2
	bne	.L35
	ldrh	r3, [fp, #-18]
	cmp	r3, #89
	bne	.L35
	mov	r3, #0
	b	.L38
.L35:
	ldrh	r3, [fp, #-20]
	ldr	r2, .L40+32
	cmp	r3, r2
	bne	.L36
	ldrh	r3, [fp, #-18]
	ldr	r2, .L40+56
	cmp	r3, r2
	bne	.L36
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L37
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L36
.L37:
	ldr	r0, [fp, #-32]
	bl	testdev_ffs_ifnum
	mov	r3, r0
	b	.L38
.L36:
	mvn	r3, #0
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC6
	.word	1351
	.word	4098
	.word	8757
	.word	1204
	.word	34323
	.word	1741
	.word	267
	.word	1317
	.word	42144
	.word	42148
	.word	42147
	.word	65520
	.word	2914
	.word	42156
	.size	testdev_ifnum, .-testdev_ifnum
	.section	.rodata
	.align	2
.LC7:
	.ascii	"rb\000"
	.align	2
.LC8:
	.ascii	"malloc\000"
	.align	2
.LC9:
	.ascii	"%s speed\011%s\011%u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_testdev, %function
find_testdev:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L43
	mov	r3, #0
	b	.L44
.L43:
	mov	r1, #47
	ldr	r0, [fp, #-32]
	bl	strrchr
	mov	r3, r0
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L45
	mov	r3, #0
	b	.L44
.L45:
	ldr	r1, .L52
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L46
	ldr	r0, [fp, #-32]
	bl	perror
	mov	r3, #0
	b	.L44
.L46:
	ldr	r0, [fp, #-24]
	bl	testdev_ifnum
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L47
	mov	r3, #0
	b	.L44
.L47:
	mov	r1, #52
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L51
	ldr	r0, [fp, #-32]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L50
	ldr	r0, [fp, #-16]
	bl	free
	b	.L49
.L51:
	nop
.L49:
	ldr	r0, .L52+4
	bl	perror
	mov	r3, #0
	b	.L44
.L50:
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #16]
	ldr	r3, .L52+8
	ldr	r4, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	speed
	mov	r1, r0
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L52+12
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L52+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r2, .L52+16
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	mov	r3, #0
.L44:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC7
	.word	.LC8
	.word	stderr
	.word	.LC9
	.word	testdevs
	.size	find_testdev, .-find_testdev
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbdev_ioctl, %function
usbdev_ioctl:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	sub	r3, fp, #20
	mov	r2, r3
	ldr	r1, .L57+4
	ldr	r0, [fp, #-24]
	bl	ioctl
	mov	r3, r0
	ldr	r2, .L57
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC10
	.word	-1072933614
	.size	usbdev_ioctl, .-usbdev_ioctl
	.section	.rodata
	.align	2
.LC11:
	.ascii	"can't open dev file r/w\000"
	.align	2
.LC12:
	.ascii	"error %d\000"
	.align	2
.LC13:
	.ascii	"%s test %d --> %d (%s)\012\000"
	.align	2
.LC14:
	.ascii	"%s test %d, %4d.%.06d secs\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_testdev, %function
handle_testdev:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #124
	str	r0, [fp, #-120]
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L72
	ldr	r0, .L75+4
	bl	perror
	mov	r3, #0
	b	.L61
.L72:
	nop
.L60:
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L62
.L69:
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #20]
	cmn	r3, #1
	beq	.L63
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	bne	.L73
.L63:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-112]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-112]
	add	r3, r3, #24
	ldr	r2, .L75+8
	ldr	r0, [fp, #-108]
	bl	usbdev_ioctl
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L65
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #95
	beq	.L74
.L65:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L66
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-100]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r1, fp, #96
	mov	r2, #80
	mov	r0, r3
	bl	__xpg_strerror_r
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	sub	r0, fp, #96
	ldr	r3, [fp, #-100]
	ldr	r2, .L75+12
	mov	r1, #80
	bl	snprintf
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-100]
	str	r3, [r2]
.L67:
	ldr	r3, [fp, #-112]
	ldr	r4, [r3, #4]
	bl	__errno_location
	mov	r3, r0
	ldr	r2, [r3]
	sub	r3, fp, #96
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-116]
	mov	r1, r4
	ldr	r0, .L75+16
	bl	printf
	b	.L68
.L66:
	ldr	r3, [fp, #-112]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-112]
	ldr	r2, [r3, #44]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #48]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-116]
	ldr	r0, .L75+20
	bl	printf
.L68:
	ldr	r3, .L75+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L64
.L73:
	nop
	b	.L64
.L74:
	nop
.L64:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L62:
	ldr	r3, [fp, #-116]
	cmp	r3, #29
	ble	.L69
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L70
	b	.L60
.L70:
	ldr	r0, [fp, #-108]
	bl	close
	ldr	r3, [fp, #-120]
.L61:
	ldr	r2, .L75
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L71
	bl	__stack_chk_fail
.L71:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC15
	.word	.LC11
	.word	-1071884956
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	stdout
	.size	handle_testdev, .-handle_testdev
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbfs_dir_find, %function
usbfs_dir_find:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L81
	str	r3, [fp, #-12]
.L80:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L78
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, #47
	mov	r0, r3
	bl	strrchr
	mov	r3, r0
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	b	.L79
.L78:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, .L81+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L80
	mov	r3, #0
.L79:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	usbfs_paths.6787
	.word	end.6788
	.size	usbfs_dir_find, .-usbfs_dir_find
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_num, %function
parse_num:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L89
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strtoul
	str	r0, [fp, #-12]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L84
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L85
.L84:
	mvn	r3, #0
	b	.L87
.L85:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	mov	r3, #0
.L87:
	ldr	r2, .L89
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC16
	.size	parse_num, .-parse_num
	.section	.rodata
	.align	2
.LC17:
	.ascii	"DEVICE\000"
	.align	2
.LC18:
	.ascii	"usage: %s [-n] [-D dev | -a | -A usbfs-dir]\012\011"
	.ascii	"[-c iterations]  [-t testnum]\012\011[-s packetsize"
	.ascii	"] [-g sglen] [-v vary]\012\000"
	.align	2
.LC19:
	.ascii	"D:aA:c:g:hns:t:v:\000"
	.align	2
.LC20:
	.ascii	"must specify '-a' or '-D dev', or DEVICE=/proc/bus/"
	.ascii	"usb/BBB/DDD in env\012\000"
	.align	2
.LC21:
	.ascii	"usbfs files are missing\012\000"
	.align	2
.LC22:
	.ascii	"ftw failed; is usbfs missing?\012\000"
	.align	2
.LC23:
	.ascii	"no test devices recognized\012\000"
	.align	2
.LC24:
	.ascii	"pthread_create\000"
	.align	2
.LC25:
	.ascii	"%s: %s may see only control tests\012\000"
	.align	2
.LC26:
	.ascii	"pthread_join\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L137
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mvn	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #1000
	str	r3, [fp, #-84]
	mov	r3, #512
	str	r3, [fp, #-80]
	mov	r3, #512
	str	r3, [fp, #-76]
	mov	r3, #32
	str	r3, [fp, #-72]
	ldr	r0, .L137+4
	bl	getenv
	str	r0, [fp, #-120]
	b	.L92
.L111:
	ldr	r3, [fp, #-96]
	sub	r3, r3, #65
	cmp	r3, #53
	ldrls	pc, [pc, r3, asl #2]
	b	.L93
.L95:
	.word	.L104
	.word	.L93
	.word	.L93
	.word	.L103
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L102
	.word	.L93
	.word	.L101
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L100
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L99
	.word	.L93
	.word	.L98
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L97
	.word	.L96
	.word	.L93
	.word	.L94
.L103:
	ldr	r3, .L137+8
	ldr	r3, [r3]
	str	r3, [fp, #-120]
	b	.L92
.L104:
	ldr	r3, .L137+8
	ldr	r3, [r3]
	str	r3, [fp, #-116]
.L102:
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #1
	str	r3, [fp, #-112]
	b	.L92
.L101:
	ldr	r3, .L137+8
	ldr	r2, [r3]
	sub	r3, fp, #88
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	parse_num
	mov	r3, r0
	cmp	r3, #0
	bne	.L130
	b	.L92
.L100:
	ldr	r3, .L137+8
	ldr	r2, [r3]
	sub	r3, fp, #88
	add	r3, r3, #16
	mov	r1, r2
	mov	r0, r3
	bl	parse_num
	mov	r3, r0
	cmp	r3, #0
	bne	.L131
	b	.L92
.L99:
	mov	r3, #1
	str	r3, [fp, #-108]
	b	.L92
.L98:
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L92
.L97:
	ldr	r3, .L137+8
	ldr	r2, [r3]
	sub	r3, fp, #88
	add	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	parse_num
	mov	r3, r0
	cmp	r3, #0
	bne	.L132
	b	.L92
.L96:
	ldr	r3, .L137+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	blt	.L133
	b	.L92
.L94:
	ldr	r3, .L137+8
	ldr	r2, [r3]
	sub	r3, fp, #88
	add	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	parse_num
	mov	r3, r0
	cmp	r3, #0
	bne	.L134
	b	.L92
.L130:
	nop
	b	.L93
.L131:
	nop
	b	.L93
.L132:
	nop
	b	.L93
.L133:
	nop
	b	.L93
.L134:
	nop
	b	.L93
.L135:
	nop
.L93:
	ldr	r3, .L137+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L137+16
	bl	fprintf
	mov	r3, #1
	b	.L128
.L92:
	ldr	r2, .L137+20
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-128]
	bl	getopt
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmn	r3, #1
	bne	.L111
	ldr	r3, .L137+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	bne	.L135
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L113
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L113
	ldr	r3, .L137+12
	ldr	r3, [r3]
	mov	r2, #70
	mov	r1, #1
	ldr	r0, .L137+28
	bl	fwrite
	b	.L93
.L113:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L114
	bl	usbfs_dir_find
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L114
	ldr	r3, .L137+12
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L137+32
	bl	fwrite
	mvn	r3, #0
	b	.L128
.L114:
	mov	r2, #3
	ldr	r1, .L137+36
	ldr	r0, [fp, #-116]
	bl	ftw
	mov	r3, r0
	cmp	r3, #0
	beq	.L115
	ldr	r3, .L137+12
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L137+40
	bl	fwrite
	mvn	r3, #0
	b	.L128
.L115:
	ldr	r3, .L137+44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L116
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L116
	ldr	r3, .L137+12
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L137+48
	bl	fwrite
	mvn	r3, #0
	b	.L128
.L116:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L117
	mov	r3, #0
	b	.L128
.L117:
	ldr	r3, .L137+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L118
	ldr	r3, .L137+44
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L118
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L118
	ldr	r3, .L137+44
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-120]
.L118:
	ldr	r3, .L137+44
	ldr	r3, [r3]
	str	r3, [fp, #-124]
	b	.L119
.L123:
	ldr	r3, [fp, #-124]
	add	ip, r3, #24
	sub	lr, fp, #88
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-108]
	and	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, [fp, #-124]
	ldrb	r3, [r2, #17]
	and	r1, r1, #1
	bic	r3, r3, #1
	orr	r3, r1, r3
	strb	r3, [r2, #17]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-100]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-120]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L136
	ldr	r0, [fp, #-124]
	bl	handle_testdev
	mov	r2, r0
	ldr	r3, [fp, #-124]
	cmp	r3, r2
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	b	.L128
.L120:
	ldr	r3, [fp, #-124]
	add	r0, r3, #8
	ldr	r3, [fp, #-124]
	ldr	r2, .L137+52
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L122
	ldr	r0, .L137+56
	bl	perror
	b	.L122
.L136:
	nop
.L122:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	str	r3, [fp, #-124]
.L119:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L123
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L124
	ldr	r3, .L137+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-132]
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	ldr	r1, .L137+60
	bl	fprintf
	sub	r3, fp, #60
	mov	r2, #52
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-56]
	sub	ip, fp, #36
	sub	lr, fp, #88
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-108]
	and	r3, r3, #1
	and	r2, r3, #255
	ldrb	r3, [fp, #-43]
	and	r2, r2, #1
	bic	r3, r3, #1
	orr	r3, r2, r3
	strb	r3, [fp, #-43]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-40]
	sub	r3, fp, #60
	mov	r0, r3
	bl	handle_testdev
	mov	r2, r0
	sub	r3, fp, #60
	cmp	r2, r3
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	b	.L128
.L124:
	ldr	r3, .L137+44
	ldr	r3, [r3]
	str	r3, [fp, #-124]
	b	.L125
.L127:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #8]
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
	ldr	r0, .L137+64
	bl	perror
.L126:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	str	r3, [fp, #-124]
.L125:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L127
	mov	r3, #0
.L128:
	ldr	r2, .L137
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L129
	bl	__stack_chk_fail
.L129:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L138:
	.align	2
.L137:
	.word	.LC27
	.word	.LC17
	.word	optarg
	.word	stderr
	.word	.LC18
	.word	.LC19
	.word	optind
	.word	.LC20
	.word	.LC21
	.word	find_testdev
	.word	.LC22
	.word	testdevs
	.word	.LC23
	.word	handle_testdev
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	usbfs_paths.6787, %object
	.size	usbfs_paths.6787, 8
usbfs_paths.6787:
	.word	usbfs_path_0.6785
	.word	usbfs_path_1.6786
	.data
	.align	2
	.type	end.6788, %object
	.size	end.6788, 4
end.6788:
	.word	usbfs_paths.6787+8
	.align	2
	.type	usbfs_path_1.6786, %object
	.size	usbfs_path_1.6786, 22
usbfs_path_1.6786:
	.ascii	"/proc/bus/usb/devices\000"
	.align	2
	.type	usbfs_path_0.6785, %object
	.size	usbfs_path_0.6785, 17
usbfs_path_0.6785:
	.ascii	"/dev/usb/devices\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
