	.file	"extr_omap_tll.c_omap_tll_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"USBRESET"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"TLL reset operation timed out\n"
	.text
	.p2align 4
	.type	omap_tll_init, @function
omap_tll_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, DWORD PTR USBTLL_CLK[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, 1
	call	ti_prcm_clk_enable@PLT
	mov	edx, DWORD PTR TLL_SYSCONFIG_SOFTRESET[rip]
	mov	esi, DWORD PTR OMAP_USBTLL_SYSCONFIG[rip]
	mov	rdi, rbp
	call	omap_tll_write_4@PLT
	mov	eax, DWORD PTR hz[rip]
	cmp	eax, 9
	jle	.L2
	movsx	rbx, eax
	sar	eax, 31
	imul	rbx, rbx, 1717986919
	sar	rbx, 34
	sub	ebx, eax
	movsx	rbx, ebx
.L2:
	lea	r12, .LC0[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, 1
	mov	rdi, r12
	sub	rbx, 1
	call	pause@PLT
	cmp	rbx, -1
	je	.L11
.L3:
	mov	esi, DWORD PTR OMAP_USBTLL_SYSSTATUS[rip]
	mov	rdi, rbp
	call	omap_tll_read_4@PLT
	test	DWORD PTR TLL_SYSSTATUS_RESETDONE[rip], eax
	je	.L5
	mov	esi, DWORD PTR OMAP_USBTLL_SYSCONFIG[rip]
	mov	edx, DWORD PTR TLL_SYSCONFIG_ENAWAKEUP[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	or	edx, DWORD PTR TLL_SYSCONFIG_AUTOIDLE[rip]
	or	edx, DWORD PTR TLL_SYSCONFIG_SIDLE_SMART_IDLE[rip]
	or	edx, DWORD PTR TLL_SYSCONFIG_CACTIVITY[rip]
	call	omap_tll_write_4@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	edi, DWORD PTR USBTLL_CLK[rip]
	call	ti_prcm_clk_disable@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	omap_tll_init, .-omap_tll_init
	.comm	hz,4,4
	.comm	USBTLL_CLK,4,4
	.comm	TLL_SYSSTATUS_RESETDONE,4,4
	.comm	TLL_SYSCONFIG_SOFTRESET,4,4
	.comm	TLL_SYSCONFIG_SIDLE_SMART_IDLE,4,4
	.comm	TLL_SYSCONFIG_ENAWAKEUP,4,4
	.comm	TLL_SYSCONFIG_CACTIVITY,4,4
	.comm	TLL_SYSCONFIG_AUTOIDLE,4,4
	.comm	OMAP_USBTLL_SYSSTATUS,4,4
	.comm	OMAP_USBTLL_SYSCONFIG,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_omap_tll.c_omap_tll_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"USBRESET\000"
	.align	2
.LC1:
	.ascii	"TLL reset operation timed out\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_tll_init, %function
omap_tll_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r10, .L11
	ldr	r9, .L11+4
	ldr	r0, [r10]
	bl	ti_prcm_clk_enable
	ldr	r3, .L11+8
	ldr	r1, [r9]
	ldr	r2, [r3]
	mov	r0, r5
	bl	omap_tll_write_4
	ldr	r3, .L11+12
	ldr	r7, .L11+16
	ldr	r3, [r3]
	ldr	r6, .L11+20
	cmp	r3, #9
	ldrgt	r2, .L11+24
	asrgt	r4, r3, #31
	smullgt	r1, r3, r2, r3
	movle	r4, #1
	ldr	r8, .L11+28
	rsbgt	r4, r4, r3, asr #2
	b	.L3
.L5:
	mov	r1, #1
	mov	r0, r8
	bl	pause
	cmn	r4, #1
	beq	.L10
.L3:
	mov	r0, r5
	ldr	r1, [r7]
	bl	omap_tll_read_4
	ldr	r3, [r6]
	sub	r4, r4, #1
	tst	r0, r3
	beq	.L5
	mov	r4, #0
	ldr	r2, .L11+32
	ldr	r3, .L11+36
	ldr	r1, .L11+40
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, .L11+44
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r0
	orr	r3, r3, r1
	mov	r0, r5
	ldr	r1, [r9]
	orr	r2, r3, r2
	bl	omap_tll_write_4
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r1, .L11+48
	ldr	r0, [r5]
	bl	device_printf
	ldr	r3, .L11+52
	ldr	r0, [r10]
	ldr	r4, [r3]
	bl	ti_prcm_clk_disable
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	USBTLL_CLK
	.word	OMAP_USBTLL_SYSCONFIG
	.word	TLL_SYSCONFIG_SOFTRESET
	.word	hz
	.word	OMAP_USBTLL_SYSSTATUS
	.word	TLL_SYSSTATUS_RESETDONE
	.word	1717986919
	.word	.LC0
	.word	TLL_SYSCONFIG_AUTOIDLE
	.word	TLL_SYSCONFIG_ENAWAKEUP
	.word	TLL_SYSCONFIG_SIDLE_SMART_IDLE
	.word	TLL_SYSCONFIG_CACTIVITY
	.word	.LC1
	.word	EINVAL
	.size	omap_tll_init, .-omap_tll_init
	.comm	hz,4,4
	.comm	USBTLL_CLK,4,4
	.comm	TLL_SYSSTATUS_RESETDONE,4,4
	.comm	TLL_SYSCONFIG_SOFTRESET,4,4
	.comm	TLL_SYSCONFIG_SIDLE_SMART_IDLE,4,4
	.comm	TLL_SYSCONFIG_ENAWAKEUP,4,4
	.comm	TLL_SYSCONFIG_CACTIVITY,4,4
	.comm	TLL_SYSCONFIG_AUTOIDLE,4,4
	.comm	OMAP_USBTLL_SYSSTATUS,4,4
	.comm	OMAP_USBTLL_SYSCONFIG,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
