	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_usbhs_init
_omap_usbhs_init:                       ## @omap_usbhs_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movl	4(%r15), %edi
	movq	_OMAP_UHH_HOSTCONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_usbhs_read
	movq	_OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN@GOTPCREL(%rip), %rcx
	movq	_OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN@GOTPCREL(%rip), %rdx
	movq	_OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN@GOTPCREL(%rip), %rsi
	movq	_OMAP4_UHH_HOSTCONFIG_APP_START_CLK@GOTPCREL(%rip), %rdi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	movq	_OMAP_UHH_HOSTCONFIG_INCRX_ALIGN_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_omap_usbhs_rev1_hostconfig
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_omap_usbhs_rev2_hostconfig
LBB0_4:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	movl	(%r12), %esi
	movl	%eax, %edx
	callq	_usbhs_write
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_put_sync            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting TI HSUSB Controller\n"

	.comm	_OMAP_UHH_HOSTCONFIG,4,2        ## @OMAP_UHH_HOSTCONFIG
	.comm	_OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN,4,2 ## @OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN
	.comm	_OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN,4,2 ## @OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN
	.comm	_OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN,4,2 ## @OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN
	.comm	_OMAP4_UHH_HOSTCONFIG_APP_START_CLK,4,2 ## @OMAP4_UHH_HOSTCONFIG_APP_START_CLK
	.comm	_OMAP_UHH_HOSTCONFIG_INCRX_ALIGN_EN,4,2 ## @OMAP_UHH_HOSTCONFIG_INCRX_ALIGN_EN
L_.str.1:                               ## @.str.1
	.asciz	"UHH setup done, uhh_hostconfig=%x\n"

	.no_dead_strip	_omap_usbhs_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_usbhs_init
_omap_usbhs_init:                       ; @omap_usbhs_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x19
	bl	_pm_runtime_get_sync
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x22, _OMAP_UHH_HOSTCONFIG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OMAP_UHH_HOSTCONFIG@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_usbhs_read
Lloh4:
	adrp	x8, _OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN@GOTPAGEOFF]
Lloh6:
	adrp	x9, _OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN@GOTPAGEOFF]
Lloh12:
	adrp	x11, _OMAP4_UHH_HOSTCONFIG_APP_START_CLK@GOTPAGE
Lloh13:
	ldr	x11, [x11, _OMAP4_UHH_HOSTCONFIG_APP_START_CLK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
Lloh16:
	adrp	x9, _OMAP_UHH_HOSTCONFIG_INCRX_ALIGN_EN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _OMAP_UHH_HOSTCONFIG_INCRX_ALIGN_EN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	bic	w1, w8, w9
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_omap_usbhs_rev1_hostconfig
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_omap_usbhs_rev2_hostconfig
LBB0_4:
	mov	x21, x0
	ldr	w0, [x20, #4]
	ldr	w1, [x22]
	mov	x2, x21
	bl	_usbhs_write
	str	x21, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_pm_runtime_put_sync
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting TI HSUSB Controller\n"

	.comm	_OMAP_UHH_HOSTCONFIG,4,2        ; @OMAP_UHH_HOSTCONFIG
	.comm	_OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN,4,2 ; @OMAP_UHH_HOSTCONFIG_INCR4_BURST_EN
	.comm	_OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN,4,2 ; @OMAP_UHH_HOSTCONFIG_INCR8_BURST_EN
	.comm	_OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN,4,2 ; @OMAP_UHH_HOSTCONFIG_INCR16_BURST_EN
	.comm	_OMAP4_UHH_HOSTCONFIG_APP_START_CLK,4,2 ; @OMAP4_UHH_HOSTCONFIG_APP_START_CLK
	.comm	_OMAP_UHH_HOSTCONFIG_INCRX_ALIGN_EN,4,2 ; @OMAP_UHH_HOSTCONFIG_INCRX_ALIGN_EN
l_.str.1:                               ; @.str.1
	.asciz	"UHH setup done, uhh_hostconfig=%x\n"

	.no_dead_strip	_omap_usbhs_init
.subsections_via_symbols
