	.file	"extr_vhci_hcd.c_rh_port_connect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rh_port_connect %d\n"
	.text
	.p2align 4
	.globl	rh_port_connect
	.type	rh_port_connect, @function
rh_port_connect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	vdev_to_vhci_hcd@PLT
	movsx	r12, DWORD PTR [r12]
	lea	rdi, .LC0[rip]
	mov	r13, QWORD PTR 8[rax]
	mov	rbp, rax
	mov	esi, r12d
	call	usbip_dbg_vhci_rh@PLT
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR USB_PORT_FEAT_C_CONNECTION[rip]
	lea	rdx, [rax+r12*4]
	mov	eax, 1
	sal	eax, cl
	or	eax, DWORD PTR USB_PORT_STAT_CONNECTION[rip]
	or	eax, DWORD PTR [rdx]
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	jne	.L3
	or	eax, DWORD PTR USB_PORT_STAT_HIGH_SPEED[rip]
.L3:
	mov	DWORD PTR [rdx], eax
	mov	rdi, r13
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	vhci_hcd_to_hcd@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	usb_hcd_poll_rh_status@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	or	eax, DWORD PTR USB_PORT_STAT_LOW_SPEED[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	rh_port_connect, .-rh_port_connect
	.comm	USB_PORT_STAT_LOW_SPEED,4,4
	.comm	USB_PORT_STAT_HIGH_SPEED,4,4
	.comm	USB_PORT_STAT_CONNECTION,4,4
	.comm	USB_PORT_FEAT_C_CONNECTION,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_vhci_hcd.c_rh_port_connect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rh_port_connect %d\012\000"
	.text
	.align	2
	.global	rh_port_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	rh_port_connect, %function
rh_port_connect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r1
	bl	vdev_to_vhci_hcd
	ldr	r6, [r6]
	ldr	r7, [r0, #4]
	mov	r4, r0
	mov	r1, r6
	ldr	r0, .L6
	bl	usbip_dbg_vhci_rh
	mov	r1, #0
	mov	r0, r7
	bl	spin_lock_irqsave
	mov	ip, #1
	ldr	r1, .L6+4
	ldr	r3, .L6+8
	ldr	r2, [r4]
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, [r2, r6, lsl #2]
	orr	r3, r3, ip, lsl r0
	cmp	r5, #128
	orr	r3, r3, r1
	beq	.L2
	cmp	r5, #129
	ldreq	r1, .L6+12
	ldreq	r1, [r1]
	orreq	r3, r3, r1
.L3:
	str	r3, [r2, r6, lsl #2]
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r4
	bl	vhci_hcd_to_hcd
	pop	{r4, r5, r6, r7, r8, lr}
	b	usb_hcd_poll_rh_status
.L2:
	ldr	r1, .L6+16
	ldr	r1, [r1]
	orr	r3, r3, r1
	b	.L3
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	USB_PORT_FEAT_C_CONNECTION
	.word	USB_PORT_STAT_CONNECTION
	.word	USB_PORT_STAT_HIGH_SPEED
	.word	USB_PORT_STAT_LOW_SPEED
	.size	rh_port_connect, .-rh_port_connect
	.comm	USB_PORT_STAT_LOW_SPEED,4,4
	.comm	USB_PORT_STAT_HIGH_SPEED,4,4
	.comm	USB_PORT_STAT_CONNECTION,4,4
	.comm	USB_PORT_FEAT_C_CONNECTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
