	.file	"extr_ohci-pxa27x.c_pxa27x_ohci_hub_control.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pxa27x_ohci_hub_control, @function
pxa27x_ohci_hub_control:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r9d
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	to_pxa27x_ohci@PLT
	lea	edx, -128[rbp]
	cmp	edx, 1
	ja	.L6
	test	r12d, r12d
	je	.L7
	cmp	r12d, 3
	jg	.L7
	cmp	DWORD PTR USB_PORT_FEAT_POWER[rip], r14d
	je	.L13
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r9d, ebx
	mov	r8, r15
	mov	ecx, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	edx, r14d
	mov	esi, ebp
	mov	rdi, r13
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ohci_hub_control@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR EPIPE[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	edx, edx
	cmp	ebp, 128
	lea	esi, -1[r12]
	mov	rdi, rax
	sete	dl
	call	pxa27x_ohci_set_vbus_power@PLT
	test	eax, eax
	je	.L6
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pxa27x_ohci_hub_control, .-pxa27x_ohci_hub_control
	.comm	USB_PORT_FEAT_POWER,4,4
	.comm	EPIPE,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_ohci-pxa27x.c_pxa27x_ohci_hub_control.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pxa27x_ohci_hub_control, %function
pxa27x_ohci_hub_control:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r4, r3
	mov	r6, r2
	mov	r7, r0
	ldr	r8, [sp, #32]
	ldr	r9, [sp, #36]
	bl	to_pxa27x_ohci
	sub	r3, r5, #128
	cmp	r3, #1
	bhi	.L5
	cmp	r4, #3
	movle	r3, #0
	movgt	r3, #1
	cmp	r4, #0
	moveq	r3, #1
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L12
.L5:
	mov	r3, r4
	mov	r2, r6
	mov	r1, r5
	mov	r0, r7
	str	r9, [sp, #36]
	str	r8, [sp, #32]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ohci_hub_control
.L11:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	sub	r2, r5, #128
	clz	r2, r2
	sub	r1, r4, #1
	lsr	r2, r2, #5
	bl	pxa27x_ohci_set_vbus_power
	cmp	r0, #0
	beq	.L5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	USB_PORT_FEAT_POWER
	.word	EPIPE
	.size	pxa27x_ohci_hub_control, .-pxa27x_ohci_hub_control
	.comm	USB_PORT_FEAT_POWER,4,4
	.comm	EPIPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
