	.file	"extr_u132-hcd.c_u132_roothub_setportfeature.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	u132_roothub_setportfeature, @function
u132_roothub_setportfeature:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, esi
	test	edx, edx
	je	.L2
	cmp	DWORD PTR [rdi], edx
	jl	.L2
	mov	r8, QWORD PTR 8[rdi]
	lea	esi, -1[rdx]
	mov	eax, -2
	movsx	rdx, esi
	rol	eax, cl
	and	DWORD PTR [r8+rdx*4], eax
	cmp	ecx, 129
	je	.L5
	cmp	ecx, 130
	je	.L6
	mov	eax, DWORD PTR EPIPE[rip]
	neg	eax
	cmp	ecx, 128
	je	.L12
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	jmp	u132_roothub_portreset@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR roothub[rip]
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	edx, DWORD PTR RH_PS_PSS[rip]
	jmp	u132_write_pcimem@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR roothub[rip]
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	edx, DWORD PTR RH_PS_PPS[rip]
	jmp	u132_write_pcimem@PLT
	.cfi_endproc
.LFE0:
	.size	u132_roothub_setportfeature, .-u132_roothub_setportfeature
	.comm	roothub,8,8
	.comm	RH_PS_PSS,4,4
	.comm	RH_PS_PPS,4,4
	.comm	EPIPE,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_u132-hcd.c_u132_roothub_setportfeature.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	u132_roothub_setportfeature, %function
u132_roothub_setportfeature:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	beq	.L2
	ldr	ip, [r0]
	cmp	ip, r2
	blt	.L2
	str	lr, [sp, #-4]!
	mov	lr, #1
	ldr	ip, [r0, #4]
	sub	r3, r2, #1
	ldr	r2, [ip, r3, lsl #2]
	cmp	r1, #129
	bic	r2, r2, lr, lsl r1
	str	r2, [ip, r3, lsl #2]
	beq	.L5
	cmp	r1, #130
	beq	.L6
	cmp	r1, #128
	beq	.L16
	ldr	r3, .L17
	ldr	r0, [r3]
	rsb	r0, r0, #0
	ldr	pc, [sp], #4
.L2:
	ldr	r3, .L17+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L5:
	mov	r1, r3
	ldr	lr, [sp], #4
	b	u132_roothub_portreset
.L16:
	ldr	r1, .L17+8
	ldr	r2, .L17+12
.L14:
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r1, [r1, r3, lsl #2]
	ldr	lr, [sp], #4
	b	u132_write_pcimem
.L6:
	ldr	r1, .L17+8
	ldr	r2, .L17+16
	b	.L14
.L18:
	.align	2
.L17:
	.word	EPIPE
	.word	EINVAL
	.word	roothub
	.word	RH_PS_PSS
	.word	RH_PS_PPS
	.size	u132_roothub_setportfeature, .-u132_roothub_setportfeature
	.comm	roothub,4,4
	.comm	RH_PS_PSS,4,4
	.comm	RH_PS_PPS,4,4
	.comm	EPIPE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
