	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_oxnas_usb_ehci
_start_oxnas_usb_ehci:                  ## @start_oxnas_usb_ehci
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$25, %edi
	callq	_REF300_DIV_INT
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_REF300_DIV_FRAC
	orq	%rax, %rbx
	movq	_SYS_CTRL_REF300_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_writel
	movq	_SYS_CTRL_RST_USBHS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_reset_block
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_reset_block
	movq	_SYS_CTRL_RST_USBHSPHYA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_reset_block
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_reset_block
	movq	_SYS_CTRL_RST_USBHSPHYB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_reset_block
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_reset_block
	movq	_USBHSPHY_TEST_ADD@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	movl	$2, %eax
	shlq	%cl, %rax
	movl	$2, %r13d
	movq	_USBHSPHY_TEST_DIN@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	$224, %edi
	shlq	%cl, %rdi
	movl	$224, %ebx
	orq	%rax, %rdi
	movq	_SYS_CTRL_USBHSPHY_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_writel
	movq	_USBHSPHY_TEST_CLK@GOTPCREL(%rip), %rax
	movb	(%r15), %cl
	shlq	%cl, %r13
	movb	(%r14), %cl
	shlq	%cl, %rbx
	movb	(%rax), %al
	btsq	%rax, %r13
	orq	%r13, %rbx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_writel
	movb	(%r15), %cl
	movl	$15, %eax
	shlq	%cl, %rax
	movb	(%r14), %cl
	movl	$170, %edi
	shlq	%cl, %rdi
	movl	$15, %ebx
	movl	$170, %r13d
	orq	%rax, %rdi
	movl	(%r12), %esi
	callq	_writel
	movb	(%r15), %cl
	shlq	%cl, %rbx
	movb	(%r14), %cl
	shlq	%cl, %r13
	movq	_USBHSPHY_TEST_CLK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rbx
	orq	%rbx, %r13
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_writel
	movq	_USB_CLK_INTERNAL@GOTPCREL(%rip), %rax
	movq	_USB_INT_CLK_REF300@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	orq	(%rax), %rdi
	movq	_SYS_CTRL_USB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writel
	movq	_SYS_CTRL_CLK_USBHS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_enable_clock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_CTRL_REF300_DIV,4,2        ## @SYS_CTRL_REF300_DIV
	.comm	_SYS_CTRL_RST_USBHS,4,2         ## @SYS_CTRL_RST_USBHS
	.comm	_SYS_CTRL_RST_USBHSPHYA,4,2     ## @SYS_CTRL_RST_USBHSPHYA
	.comm	_SYS_CTRL_RST_USBHSPHYB,4,2     ## @SYS_CTRL_RST_USBHSPHYB
	.comm	_USBHSPHY_TEST_ADD,8,3          ## @USBHSPHY_TEST_ADD
	.comm	_USBHSPHY_TEST_DIN,4,2          ## @USBHSPHY_TEST_DIN
	.comm	_SYS_CTRL_USBHSPHY_CTRL,4,2     ## @SYS_CTRL_USBHSPHY_CTRL
	.comm	_USBHSPHY_TEST_CLK,8,3          ## @USBHSPHY_TEST_CLK
	.comm	_USB_CLK_INTERNAL,8,3           ## @USB_CLK_INTERNAL
	.comm	_USB_INT_CLK_REF300,8,3         ## @USB_INT_CLK_REF300
	.comm	_SYS_CTRL_USB_CTRL,4,2          ## @SYS_CTRL_USB_CTRL
	.comm	_SYS_CTRL_CLK_USBHS,4,2         ## @SYS_CTRL_CLK_USBHS
	.comm	_PLLB_ENSAT,4,2                 ## @PLLB_ENSAT
	.comm	_PLLB_OUTDIV,4,2                ## @PLLB_OUTDIV
	.comm	_PLLB_REFDIV,4,2                ## @PLLB_REFDIV
	.comm	_SEC_CTRL_PLLB_CTRL0,4,2        ## @SEC_CTRL_PLLB_CTRL0
	.comm	_SEC_CTRL_PLLB_DIV_CTRL,4,2     ## @SEC_CTRL_PLLB_DIV_CTRL
	.comm	_SYS_CTRL_CLK_REF600,4,2        ## @SYS_CTRL_CLK_REF600
	.comm	_SYS_CTRL_RST_PLLB,4,2          ## @SYS_CTRL_RST_PLLB
	.comm	_USB_INT_CLK_PLLB,8,3           ## @USB_INT_CLK_PLLB
	.no_dead_strip	_start_oxnas_usb_ehci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_oxnas_usb_ehci
_start_oxnas_usb_ehci:                  ; @start_oxnas_usb_ehci
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w0, #25
	bl	_REF300_DIV_INT
	mov	x19, x0
	mov	w0, #0
	bl	_REF300_DIV_FRAC
	orr	x0, x0, x19
Lloh0:
	adrp	x8, _SYS_CTRL_REF300_DIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_CTRL_REF300_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_writel
Lloh3:
	adrp	x20, _SYS_CTRL_RST_USBHS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SYS_CTRL_RST_USBHS@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w19, #1
	mov	w1, #1
	bl	_reset_block
	ldr	w0, [x20]
	mov	w1, #0
	bl	_reset_block
Lloh5:
	adrp	x20, _SYS_CTRL_RST_USBHSPHYA@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SYS_CTRL_RST_USBHSPHYA@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #1
	bl	_reset_block
	ldr	w0, [x20]
	mov	w1, #0
	bl	_reset_block
Lloh7:
	adrp	x20, _SYS_CTRL_RST_USBHSPHYB@GOTPAGE
Lloh8:
	ldr	x20, [x20, _SYS_CTRL_RST_USBHSPHYB@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #1
	bl	_reset_block
	ldr	w0, [x20]
	mov	w1, #0
	bl	_reset_block
Lloh9:
	adrp	x20, _USBHSPHY_TEST_ADD@GOTPAGE
Lloh10:
	ldr	x20, [x20, _USBHSPHY_TEST_ADD@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	w21, #2
	lsl	x8, x21, x8
Lloh11:
	adrp	x22, _USBHSPHY_TEST_DIN@GOTPAGE
Lloh12:
	ldr	x22, [x22, _USBHSPHY_TEST_DIN@GOTPAGEOFF]
	ldr	w9, [x22]
	mov	w23, #224
	lsl	x9, x23, x9
	orr	x0, x9, x8
Lloh13:
	adrp	x24, _SYS_CTRL_USBHSPHY_CTRL@GOTPAGE
Lloh14:
	ldr	x24, [x24, _SYS_CTRL_USBHSPHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_writel
Lloh15:
	adrp	x25, _USBHSPHY_TEST_CLK@GOTPAGE
Lloh16:
	ldr	x25, [x25, _USBHSPHY_TEST_CLK@GOTPAGEOFF]
	ldr	x8, [x25]
	lsl	x8, x19, x8
	ldr	x9, [x20]
	lsl	x9, x21, x9
	orr	x8, x9, x8
	ldr	w9, [x22]
	lsl	x9, x23, x9
	orr	x0, x8, x9
	ldr	w1, [x24]
	bl	_writel
	ldr	x8, [x20]
	mov	w21, #15
	lsl	x8, x21, x8
	ldr	w9, [x22]
	mov	w23, #170
	lsl	x9, x23, x9
	orr	x0, x9, x8
	ldr	w1, [x24]
	bl	_writel
	ldr	x8, [x25]
	lsl	x8, x19, x8
	ldr	x9, [x20]
	lsl	x9, x21, x9
	orr	x8, x9, x8
	ldr	w9, [x22]
	lsl	x9, x23, x9
	orr	x0, x8, x9
	ldr	w1, [x24]
	bl	_writel
Lloh17:
	adrp	x8, _USB_CLK_INTERNAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_CLK_INTERNAL@GOTPAGEOFF]
Lloh19:
	adrp	x9, _USB_INT_CLK_REF300@GOTPAGE
Lloh20:
	ldr	x9, [x9, _USB_INT_CLK_REF300@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	ldr	x9, [x9]
	orr	x0, x9, x8
Lloh23:
	adrp	x8, _SYS_CTRL_USB_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SYS_CTRL_USB_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_writel
Lloh26:
	adrp	x8, _SYS_CTRL_CLK_USBHS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SYS_CTRL_CLK_USBHS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_enable_clock
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_CTRL_REF300_DIV,4,2        ; @SYS_CTRL_REF300_DIV
	.comm	_SYS_CTRL_RST_USBHS,4,2         ; @SYS_CTRL_RST_USBHS
	.comm	_SYS_CTRL_RST_USBHSPHYA,4,2     ; @SYS_CTRL_RST_USBHSPHYA
	.comm	_SYS_CTRL_RST_USBHSPHYB,4,2     ; @SYS_CTRL_RST_USBHSPHYB
	.comm	_USBHSPHY_TEST_ADD,8,3          ; @USBHSPHY_TEST_ADD
	.comm	_USBHSPHY_TEST_DIN,4,2          ; @USBHSPHY_TEST_DIN
	.comm	_SYS_CTRL_USBHSPHY_CTRL,4,2     ; @SYS_CTRL_USBHSPHY_CTRL
	.comm	_USBHSPHY_TEST_CLK,8,3          ; @USBHSPHY_TEST_CLK
	.comm	_USB_CLK_INTERNAL,8,3           ; @USB_CLK_INTERNAL
	.comm	_USB_INT_CLK_REF300,8,3         ; @USB_INT_CLK_REF300
	.comm	_SYS_CTRL_USB_CTRL,4,2          ; @SYS_CTRL_USB_CTRL
	.comm	_SYS_CTRL_CLK_USBHS,4,2         ; @SYS_CTRL_CLK_USBHS
	.comm	_PLLB_ENSAT,4,2                 ; @PLLB_ENSAT
	.comm	_PLLB_OUTDIV,4,2                ; @PLLB_OUTDIV
	.comm	_PLLB_REFDIV,4,2                ; @PLLB_REFDIV
	.comm	_SEC_CTRL_PLLB_CTRL0,4,2        ; @SEC_CTRL_PLLB_CTRL0
	.comm	_SEC_CTRL_PLLB_DIV_CTRL,4,2     ; @SEC_CTRL_PLLB_DIV_CTRL
	.comm	_SYS_CTRL_CLK_REF600,4,2        ; @SYS_CTRL_CLK_REF600
	.comm	_SYS_CTRL_RST_PLLB,4,2          ; @SYS_CTRL_RST_PLLB
	.comm	_USB_INT_CLK_PLLB,8,3           ; @USB_INT_CLK_PLLB
	.no_dead_strip	_start_oxnas_usb_ehci
.subsections_via_symbols
