	.file	"extr_rh.c_wusbhc_rh_set_port_feat.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"(port_idx %d) set feat %d/%d UNIMPLEMENTED\n"
	.align 8
.LC1:
	.string	"(port_idx %d) set feat %d/%d UNKNOWN\n"
	.text
	.p2align 4
	.type	wusbhc_rh_set_port_feat, @function
wusbhc_rh_set_port_feat:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], rcx
	jl	.L14
	lea	eax, -128[rsi]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, QWORD PTR 16[rdi]
	cmp	eax, 8
	ja	.L4
	lea	rcx, .L5[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L6-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L9-.L5
	.long	.L9-.L5
	.long	.L9-.L5
	.long	.L9-.L5
	.long	.L9-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L9:
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	r8, rdx
	mov	ecx, esi
	lea	rsi, .LC0[rip]
	mov	rdx, r12
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOSYS[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	r13, 8[rbp]
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	wusb_port_by_idx@PLT
	mov	edx, DWORD PTR USB_PORT_STAT_POWER[rip]
	mov	rdi, r13
	or	DWORD PTR [rax], edx
	call	mutex_unlock@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	wusbhc_rh_port_reset@PLT
.L4:
	.cfi_restore_state
	mov	r8, rdx
	mov	ecx, esi
	lea	rsi, .LC1[rip]
	mov	rdx, r12
	call	dev_err@PLT
	mov	eax, DWORD PTR EPIPE[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	wusbhc_rh_set_port_feat, .-wusbhc_rh_set_port_feat
	.comm	USB_PORT_STAT_POWER,4,4
	.comm	EPIPE,4,4
	.comm	ENOSYS,4,4
	.comm	EINVAL,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_rh.c_wusbhc_rh_set_port_feat.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(port_idx %d) set feat %d/%d UNIMPLEMENTED\012\000"
	.align	2
.LC1:
	.ascii	"(port_idx %d) set feat %d/%d UNKNOWN\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wusbhc_rh_set_port_feat, %function
wusbhc_rh_set_port_feat:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r3
	ldr	r3, [r0]
	sub	sp, sp, #8
	cmp	r3, r5
	blt	.L12
	sub	r3, r1, #128
	mov	r4, r0
	ldr	r0, [r0, #8]
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L5:
	.word	.L6
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
.L9:
	mov	r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	mov	r3, r1
	str	r2, [sp]
	ldr	r1, .L13+4
	mov	r2, r5
	bl	dev_err
	ldr	r3, .L13+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, r5
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	wusbhc_rh_port_reset
.L7:
	add	r6, r4, #4
	mov	r0, r6
	bl	mutex_lock
	mov	r1, r5
	mov	r0, r4
	bl	wusb_port_by_idx
	mov	r3, r0
	ldr	r1, .L13+12
	ldr	r2, [r0]
	ldr	r1, [r1]
	mov	r0, r6
	orr	r2, r2, r1
	str	r2, [r3]
	bl	mutex_unlock
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r3, r1
	str	r2, [sp]
	ldr	r1, .L13+16
	mov	r2, r5
	bl	dev_err
	ldr	r3, .L13+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L14:
	.align	2
.L13:
	.word	EINVAL
	.word	.LC0
	.word	ENOSYS
	.word	USB_PORT_STAT_POWER
	.word	.LC1
	.word	EPIPE
	.size	wusbhc_rh_set_port_feat, .-wusbhc_rh_set_port_feat
	.comm	USB_PORT_STAT_POWER,4,4
	.comm	EPIPE,4,4
	.comm	ENOSYS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
