	.file	"extr_xhci.c_compliance_mode_recovery.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Compliance mode detected->port %d"
	.align 8
.LC1:
	.string	"Attempting compliance mode recovery"
	.text
	.p2align 4
	.type	compliance_mode_recovery, @function
compliance_mode_recovery:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rsi, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR comp_mode_recovery_timer[rip]
	call	from_timer@PLT
	mov	ecx, DWORD PTR 16[rax]
	mov	rbp, rax
	test	ecx, ecx
	jle	.L2
	xor	ebx, ebx
	lea	r12, .LC0[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR 16[rbp]
	add	rbx, 1
	cmp	ecx, ebx
	jle	.L2
.L5:
	mov	rax, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	edi, DWORD PTR [rax]
	call	readl@PLT
	and	eax, DWORD PTR PORT_PLS_MASK[rip]
	lea	ecx, 1[rbx]
	cmp	eax, DWORD PTR USB_SS_PORT_LS_COMP_MOD[rip]
	jne	.L3
	mov	esi, DWORD PTR trace_xhci_dbg_quirks[rip]
	mov	rdx, r12
	mov	rdi, rbp
	xor	eax, eax
	call	xhci_dbg_trace@PLT
	mov	esi, DWORD PTR trace_xhci_dbg_quirks[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rdx, .LC1[rip]
	call	xhci_dbg_trace@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR HC_STATE_SUSPENDED[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L10
.L4:
	call	usb_hcd_poll_rh_status@PLT
	mov	ecx, DWORD PTR 16[rbp]
	add	rbx, 1
	cmp	ecx, ebx
	jg	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, 1
	sal	eax, cl
	sub	eax, 1
	cmp	DWORD PTR 0[rbp], eax
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR COMP_MODE_RCVRY_MSECS[rip]
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	lea	rdi, 4[rbp]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rsi, rax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mod_timer@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	QWORD PTR 8[rsp], rdi
	call	usb_hcd_resume_root_hub@PLT
	mov	rdi, QWORD PTR 8[rsp]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	compliance_mode_recovery, .-compliance_mode_recovery
	.comm	trace_xhci_dbg_quirks,4,4
	.comm	jiffies,8,8
	.comm	comp_mode_recovery_timer,4,4
	.comm	USB_SS_PORT_LS_COMP_MOD,4,4
	.comm	PORT_PLS_MASK,4,4
	.comm	HC_STATE_SUSPENDED,8,8
	.comm	COMP_MODE_RCVRY_MSECS,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_xhci.c_compliance_mode_recovery.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Compliance mode detected->port %d\000"
	.align	2
.LC1:
	.ascii	"Attempting compliance mode recovery\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compliance_mode_recovery, %function
compliance_mode_recovery:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L12
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, #0
	sub	sp, sp, #12
	bl	from_timer
	ldr	r3, [r0, #12]
	mov	r5, r0
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r7, .L12+4
	ldr	r6, .L12+8
	ldr	r8, .L12+12
	ldr	fp, .L12+16
	ldr	r10, .L12+20
	ldr	r9, .L12+24
	b	.L5
.L3:
	ldr	r3, [r5, #12]
	cmp	r3, r4
	ble	.L2
.L5:
	ldr	r3, [r5, #16]
	ldr	r3, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldr	r0, [r3]
	bl	readl
	ldr	r2, [r7]
	ldr	r3, [r6]
	and	r0, r0, r2
	cmp	r0, r3
	bne	.L3
	mov	r3, r4
	mov	r2, fp
	ldr	r1, [r8]
	mov	r0, r5
	bl	xhci_dbg_trace
	mov	r2, r10
	ldr	r1, [r8]
	mov	r0, r5
	bl	xhci_dbg_trace
	ldr	r3, [r5, #8]
	ldr	r2, [r9]
	ldr	r1, [r3]
	cmp	r1, r2
	beq	.L10
.L4:
	mov	r0, r3
	bl	usb_hcd_poll_rh_status
	ldr	r3, [r5, #12]
	cmp	r3, r4
	bgt	.L5
.L2:
	mvn	r2, #0
	mvn	r3, r2, lsl r3
	ldr	r2, [r5]
	cmp	r2, r3
	bne	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L12+28
	ldr	r0, [r3]
	bl	msecs_to_jiffies
	mov	r1, r0
	ldr	r3, .L12+32
	add	r0, r5, #4
	ldr	r3, [r3]
	add	r1, r1, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mod_timer
.L10:
	mov	r0, r3
	str	r3, [sp, #4]
	bl	usb_hcd_resume_root_hub
	ldr	r3, [sp, #4]
	b	.L4
.L13:
	.align	2
.L12:
	.word	comp_mode_recovery_timer
	.word	PORT_PLS_MASK
	.word	USB_SS_PORT_LS_COMP_MOD
	.word	trace_xhci_dbg_quirks
	.word	.LC0
	.word	.LC1
	.word	HC_STATE_SUSPENDED
	.word	COMP_MODE_RCVRY_MSECS
	.word	jiffies
	.size	compliance_mode_recovery, .-compliance_mode_recovery
	.comm	trace_xhci_dbg_quirks,4,4
	.comm	jiffies,4,4
	.comm	comp_mode_recovery_timer,4,4
	.comm	USB_SS_PORT_LS_COMP_MOD,4,4
	.comm	PORT_PLS_MASK,4,4
	.comm	HC_STATE_SUSPENDED,4,4
	.comm	COMP_MODE_RCVRY_MSECS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
