	.file	"extr_omap-usb-host.c_omap_usbhs_rev2_hostconfig.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	omap_usbhs_rev2_hostconfig, @function
omap_usbhs_rev2_hostconfig:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdi]
	mov	r15, QWORD PTR 8[rdi]
	test	eax, eax
	jle	.L2
	mov	rbp, rdi
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR OMAP4_P1_MODE_TLL[rip]
	mov	ecx, r13d
	sal	eax, cl
	or	r12d, eax
.L4:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L2
.L6:
	mov	eax, DWORD PTR OMAP4_P1_MODE_CLEAR[rip]
	lea	r13d, [rbx+rbx]
	lea	r14, 0[0+rbx*4]
	mov	ecx, r13d
	sal	eax, cl
	not	eax
	and	r12d, eax
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	is_ehci_tll_mode@PLT
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	is_ohci_port@PLT
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR [rax+r14]
	call	is_ehci_hsic_mode@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR OMAP4_P1_MODE_HSIC[rip]
	mov	ecx, r13d
	add	rbx, 1
	sal	eax, cl
	or	r12d, eax
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L6
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	omap_usbhs_rev2_hostconfig, .-omap_usbhs_rev2_hostconfig
	.comm	OMAP4_P1_MODE_TLL,4,4
	.comm	OMAP4_P1_MODE_HSIC,4,4
	.comm	OMAP4_P1_MODE_CLEAR,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_omap-usb-host.c_omap_usbhs_rev2_hostconfig.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_usbhs_rev2_hostconfig, %function
omap_usbhs_rev2_hostconfig:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	mov	r5, r1
	cmp	r3, #0
	ldr	fp, [r0, #4]
	ble	.L2
	mov	r7, r0
	mov	r4, #0
	ldr	r8, .L13
	ldr	r9, .L13+4
	b	.L6
.L5:
	ldr	r3, [r9]
	add	r4, r4, #1
	orr	r5, r5, r3, lsl r6
	ldr	r3, [r7]
	cmp	r3, r4
	ble	.L2
.L6:
	ldr	r2, [fp]
	ldr	r3, [r8]
	ldr	r0, [r2, r4, lsl #2]
	lsl	r6, r4, #1
	bic	r5, r5, r3, lsl r6
	bl	is_ehci_tll_mode
	cmp	r0, #0
	lsl	r10, r4, #2
	bne	.L5
	ldr	r2, [fp]
	ldr	r0, [r2, r4, lsl #2]
	bl	is_ohci_port
	cmp	r0, #0
	bne	.L5
	ldr	r2, [fp]
	add	r4, r4, #1
	ldr	r0, [r2, r10]
	bl	is_ehci_hsic_mode
	cmp	r0, #0
	ldrne	r3, .L13+8
	ldrne	r3, [r3]
	orrne	r5, r5, r3, lsl r6
	ldr	r3, [r7]
	cmp	r3, r4
	bgt	.L6
.L2:
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	OMAP4_P1_MODE_CLEAR
	.word	OMAP4_P1_MODE_TLL
	.word	OMAP4_P1_MODE_HSIC
	.size	omap_usbhs_rev2_hostconfig, .-omap_usbhs_rev2_hostconfig
	.comm	OMAP4_P1_MODE_TLL,4,4
	.comm	OMAP4_P1_MODE_HSIC,4,4
	.comm	OMAP4_P1_MODE_CLEAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
