	.file	"extr_u132-hcd.c_read_roothub_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error %d accessing device control\n"
	.align 8
.LC1:
	.string	"device revision is not valid %08X\n"
	.align 8
.LC2:
	.string	"error %d accessing device reg roothub.status\n"
	.align 8
.LC3:
	.string	"error %d accessing device reg roothub.a\n"
	.align 8
.LC4:
	.string	"error %d accessing device roothub.portstatus[%d]\n"
	.text
	.p2align 4
	.type	read_roothub_info, @function
read_roothub_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	esi, DWORD PTR 4[rsp]
	lea	rdx, 4[rsp]
	call	u132_read_pcimem@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	edx, DWORD PTR 4[rsp]
	movzx	eax, dl
	sub	eax, 16
	cmp	eax, 1
	ja	.L16
	mov	esi, DWORD PTR control[rip]
	mov	rdx, rbx
	mov	rdi, rbx
	call	u132_read_pcimem@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	esi, DWORD PTR roothub[rip]
	lea	rdx, 4[rbx]
	mov	rdi, rbx
	call	u132_read_pcimem@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
	mov	esi, DWORD PTR roothub[rip+4]
	lea	rdx, 8[rbx]
	mov	rdi, rbx
	call	u132_read_pcimem@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR 12[rbx]
	test	eax, eax
	jle	.L1
	lea	r14d, -1[rax]
	xor	ebp, ebp
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rax, 1[rbp]
	cmp	r14, rbp
	je	.L1
	mov	rbp, rax
.L10:
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, rbx
	lea	rdx, [rax+rbp*4]
	mov	rax, QWORD PTR roothub[rip+8]
	mov	esi, DWORD PTR [rax+rbp*4]
	call	u132_read_pcimem@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L9
	mov	rdi, QWORD PTR 24[rbx]
	mov	edx, eax
	mov	ecx, ebp
	lea	rsi, .LC4[rip]
	xor	eax, eax
	mov	r12d, r13d
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR 24[rbx]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbx]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 24[rbx]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR 24[rbx]
	mov	edx, eax
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_roothub_info, .-read_roothub_info
	.comm	roothub,16,16
	.comm	control,4,4
	.comm	ENODEV,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_u132-hcd.c_read_roothub_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error %d accessing device control\012\000"
	.align	2
.LC1:
	.ascii	"device revision is not valid %08X\012\000"
	.align	2
.LC2:
	.ascii	"error %d accessing device reg roothub.status\012\000"
	.align	2
.LC3:
	.ascii	"error %d accessing device reg roothub.a\012\000"
	.align	2
.LC4:
	.ascii	"error %d accessing device roothub.portstatus[%d]\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_roothub_info, %function
read_roothub_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L20
	sub	sp, sp, #8
	mov	r2, sp
	ldr	r1, [sp]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	u132_read_pcimem
	subs	r4, r0, #0
	bne	.L14
	ldr	r2, [sp]
	and	r3, r2, #255
	sub	r3, r3, #16
	cmp	r3, #1
	bhi	.L16
	ldr	r3, .L20+4
	mov	r2, r5
	mov	r0, r5
	ldr	r1, [r3]
	bl	u132_read_pcimem
	subs	r4, r0, #0
	bne	.L14
	ldr	r7, .L20+8
	mov	r0, r5
	ldr	r1, [r7]
	add	r2, r5, #4
	bl	u132_read_pcimem
	subs	r4, r0, #0
	bne	.L17
	mov	r0, r5
	ldr	r1, [r7, #4]
	add	r2, r5, #8
	bl	u132_read_pcimem
	subs	r4, r0, #0
	bne	.L18
	ldr	r8, [r5, #12]
	cmp	r8, #0
	ble	.L1
	mov	r6, r4
	b	.L10
.L9:
	add	r6, r6, #1
	cmp	r8, r6
	beq	.L1
.L10:
	ldr	r2, [r5, #16]
	ldr	r3, [r7, #8]
	add	r2, r2, r6, lsl #2
	mov	r0, r5
	ldr	r1, [r3, r6, lsl #2]
	bl	u132_read_pcimem
	subs	r2, r0, #0
	beq	.L9
	mov	r3, r6
	ldr	r0, [r5, #20]
	ldr	r1, .L20+12
	mov	r4, r2
	bl	dev_err
	b	.L1
.L14:
	mov	r2, r4
	ldr	r0, [r5, #20]
	ldr	r1, .L20+16
	bl	dev_err
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r0, [r5, #20]
	ldr	r1, .L20+20
	bl	dev_err
	ldr	r3, .L20+24
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L17:
	mov	r2, r4
	ldr	r0, [r5, #20]
	ldr	r1, .L20+28
	bl	dev_err
	b	.L1
.L18:
	mov	r2, r4
	ldr	r0, [r5, #20]
	ldr	r1, .L20+32
	bl	dev_err
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	control
	.word	roothub
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	ENODEV
	.word	.LC2
	.word	.LC3
	.size	read_roothub_info, .-read_roothub_info
	.comm	roothub,12,4
	.comm	control,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
