	.file	"extr_isp1760-hcd.c_check_reset_complete.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"port %d full speed --> companion\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"port %d high speed\n"
	.text
	.p2align 4
	.type	check_reset_complete, @function
check_reset_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	DWORD PTR PORT_CONNECT[rip], edx
	je	.L2
	mov	rbx, rdi
	lea	edx, 1[rsi]
	mov	edi, DWORD PTR [rdi]
	test	DWORD PTR PORT_PE[rip], r12d
	jne	.L3
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	mov	edx, DWORD PTR PORT_RWC_BITS[rip]
	mov	edi, DWORD PTR 4[rbx]
	or	r12d, DWORD PTR PORT_OWNER[rip]
	mov	esi, DWORD PTR HC_PORTSC1[rip]
	not	edx
	and	r12d, edx
	mov	edx, r12d
	call	reg_write32@PLT
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	call	dev_info@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	check_reset_complete, .-check_reset_complete
	.comm	PORT_RWC_BITS,4,4
	.comm	PORT_PE,4,4
	.comm	PORT_OWNER,4,4
	.comm	PORT_CONNECT,4,4
	.comm	HC_PORTSC1,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_isp1760-hcd.c_check_reset_complete.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"port %d full speed --> companion\012\000"
	.align	2
.LC1:
	.ascii	"port %d high speed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_reset_complete, %function
check_reset_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r2
	tst	r2, r3
	beq	.L2
	ldr	r3, .L9+4
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r0, [r0]
	tst	r4, r3
	add	r2, r1, #1
	bne	.L3
	ldr	r1, .L9+8
	bl	dev_info
	ldr	r2, .L9+12
	ldr	r3, .L9+16
	ldr	r2, [r2]
	ldr	r1, [r3]
	orr	r4, r4, r2
	ldr	r3, .L9+20
	bic	r4, r4, r1
	mov	r2, r4
	ldr	r0, [r5, #4]
	ldr	r1, [r3]
	bl	reg_write32
.L2:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r1, .L9+24
	bl	dev_info
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	PORT_CONNECT
	.word	PORT_PE
	.word	.LC0
	.word	PORT_OWNER
	.word	PORT_RWC_BITS
	.word	HC_PORTSC1
	.word	.LC1
	.size	check_reset_complete, .-check_reset_complete
	.comm	PORT_RWC_BITS,4,4
	.comm	PORT_PE,4,4
	.comm	PORT_OWNER,4,4
	.comm	PORT_CONNECT,4,4
	.comm	HC_PORTSC1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
