	.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
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movl	40(%r14), %edi
	callq	_clk_prepare_enable
	movl	36(%r14), %edi
	callq	_clk_prepare_enable
	movl	4(%r14), %r15d
	movq	_PLLB_DIV_CTRL_REGOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$50, %edi
	callq	_PLLB_DIV_INT
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_PLLB_DIV_FRAC
	jmp	LBB0_3
LBB0_2:
	movl	4(%r14), %r15d
	movq	_REF300_DIV_REGOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$25, %edi
	callq	_REF300_DIV_INT
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_REF300_DIV_FRAC
LBB0_3:
	orq	%rax, %rbx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	movq	%rbx, %rcx
	callq	_regmap_write_bits
	movl	32(%r14), %edi
	callq	_reset_control_reset
	movl	28(%r14), %edi
	callq	_reset_control_reset
	movl	24(%r14), %edi
	callq	_reset_control_reset
	movl	4(%r14), %edi
	movq	_USBHSPHY_CTRL_REGOFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_USBHSPHY_TEST_ADD@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	movl	$2, %r15d
	movl	$2, %edx
	shlq	%cl, %rdx
	movq	_USBHSPHY_TEST_DIN@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$224, %ebx
	movl	$224, %eax
	shlq	%cl, %rax
	orq	%rdx, %rax
	movl	$65535, %edx                    ## imm = 0xFFFF
	movq	%rax, %rcx
	callq	_regmap_write_bits
	movl	4(%r14), %edi
	movl	(%r12), %esi
	movb	(%r13), %cl
	shlq	%cl, %r15
	movq	_USBHSPHY_TEST_CLK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %r15
	movq	_USBHSPHY_TEST_DIN@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shlq	%cl, %rbx
	orq	%r15, %rbx
	movl	$65535, %edx                    ## imm = 0xFFFF
	movq	%rbx, %rcx
	callq	_regmap_write_bits
	movl	4(%r14), %edi
	movq	_USBHSPHY_CTRL_REGOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r13), %cl
	movl	$15, %edx
	shlq	%cl, %rdx
	movl	$15, %ebx
	movb	(%r12), %cl
	movl	$170, %r15d
	movl	$170, %eax
	shlq	%cl, %rax
	orq	%rdx, %rax
	movl	$65535, %edx                    ## imm = 0xFFFF
	movq	%rax, %rcx
	callq	_regmap_write_bits
	movl	4(%r14), %edi
	movb	(%r13), %cl
	shlq	%cl, %rbx
	movq	_USBHSPHY_CTRL_REGOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USBHSPHY_TEST_CLK@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rbx
	movb	(%r12), %cl
	shlq	%cl, %r15
	orq	%rbx, %r15
	movl	$65535, %edx                    ## imm = 0xFFFF
	movq	%r15, %rcx
	callq	_regmap_write_bits
	cmpq	$0, 16(%r14)
	movl	4(%r14), %edi
	movq	_USB_CTRL_REGOFFSET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_USB_CLK_INTERNAL@GOTPCREL(%rip), %rax
	jne	LBB0_4
## %bb.5:
	movq	_USB_INT_CLK_REF300@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_USB_INT_CLK_PLLB@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_regmap_write_bits
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.7:
	movl	4(%r14), %edi
	movl	(%rbx), %esi
	movq	_USBAMUX_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
LBB0_8:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clk_prepare_enable             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLLB_DIV_CTRL_REGOFFSET,4,2    ## @PLLB_DIV_CTRL_REGOFFSET
	.comm	_REF300_DIV_REGOFFSET,4,2       ## @REF300_DIV_REGOFFSET
	.comm	_USBHSPHY_CTRL_REGOFFSET,4,2    ## @USBHSPHY_CTRL_REGOFFSET
	.comm	_USBHSPHY_TEST_ADD,8,3          ## @USBHSPHY_TEST_ADD
	.comm	_USBHSPHY_TEST_DIN,4,2          ## @USBHSPHY_TEST_DIN
	.comm	_USBHSPHY_TEST_CLK,8,3          ## @USBHSPHY_TEST_CLK
	.comm	_USB_CTRL_REGOFFSET,4,2         ## @USB_CTRL_REGOFFSET
	.comm	_USB_CLK_INTERNAL,8,3           ## @USB_CLK_INTERNAL
	.comm	_USB_INT_CLK_PLLB,8,3           ## @USB_INT_CLK_PLLB
	.comm	_USB_INT_CLK_REF300,8,3         ## @USB_INT_CLK_REF300
	.comm	_USBAMUX_DEVICE,4,2             ## @USBAMUX_DEVICE
	.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	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_clk_prepare_enable
	ldr	w0, [x19, #36]
	bl	_clk_prepare_enable
	ldr	w20, [x19, #4]
Lloh0:
	adrp	x8, _PLLB_DIV_CTRL_REGOFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLLB_DIV_CTRL_REGOFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #50
	bl	_PLLB_DIV_INT
	mov	x22, x0
	mov	w0, #0
	bl	_PLLB_DIV_FRAC
	b	LBB0_3
LBB0_2:
	ldr	w20, [x19, #4]
Lloh3:
	adrp	x8, _REF300_DIV_REGOFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REF300_DIV_REGOFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	w0, #25
	bl	_REF300_DIV_INT
	mov	x22, x0
	mov	w0, #0
	bl	_REF300_DIV_FRAC
LBB0_3:
	orr	x3, x0, x22
	mov	x0, x20
	mov	x1, x21
	mov	w2, #65535
	bl	_regmap_write_bits
	ldr	w0, [x19, #32]
	bl	_reset_control_reset
	ldr	w0, [x19, #28]
	bl	_reset_control_reset
	ldr	w0, [x19, #24]
	bl	_reset_control_reset
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x21, _USBHSPHY_CTRL_REGOFFSET@GOTPAGE
Lloh7:
	ldr	x21, [x21, _USBHSPHY_CTRL_REGOFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x20, _USBHSPHY_TEST_ADD@GOTPAGE
Lloh9:
	ldr	x20, [x20, _USBHSPHY_TEST_ADD@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	w23, #2
	lsl	x8, x23, x8
Lloh10:
	adrp	x22, _USBHSPHY_TEST_DIN@GOTPAGE
Lloh11:
	ldr	x22, [x22, _USBHSPHY_TEST_DIN@GOTPAGEOFF]
	ldr	w9, [x22]
	mov	w24, #224
	lsl	x9, x24, x9
	orr	x3, x9, x8
	mov	w2, #65535
	bl	_regmap_write_bits
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
Lloh12:
	adrp	x25, _USBHSPHY_TEST_CLK@GOTPAGE
Lloh13:
	ldr	x25, [x25, _USBHSPHY_TEST_CLK@GOTPAGEOFF]
	ldr	x8, [x25]
	mov	w26, #1
	lsl	x8, x26, x8
	ldr	x9, [x20]
	lsl	x9, x23, x9
	orr	x8, x9, x8
	ldr	w9, [x22]
	lsl	x9, x24, x9
	orr	x3, x8, x9
	mov	w2, #65535
	bl	_regmap_write_bits
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	ldr	x8, [x20]
	mov	w23, #15
	lsl	x8, x23, x8
	ldr	w9, [x22]
	mov	w24, #170
	lsl	x9, x24, x9
	orr	x3, x9, x8
	mov	w2, #65535
	bl	_regmap_write_bits
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	ldr	x8, [x25]
	lsl	x8, x26, x8
	ldr	x9, [x20]
	lsl	x9, x23, x9
	orr	x8, x9, x8
	ldr	w9, [x22]
	lsl	x9, x24, x9
	orr	x3, x8, x9
	mov	w2, #65535
	bl	_regmap_write_bits
	ldr	x8, [x19, #16]
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x20, _USB_CTRL_REGOFFSET@GOTPAGE
Lloh15:
	ldr	x20, [x20, _USB_CTRL_REGOFFSET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh16:
	adrp	x9, _USB_CLK_INTERNAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _USB_CLK_INTERNAL@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _USB_INT_CLK_REF300@GOTPAGE
Lloh20:
	ldr	x10, [x10, _USB_INT_CLK_REF300@GOTPAGEOFF]
Lloh21:
	adrp	x11, _USB_INT_CLK_PLLB@GOTPAGE
Lloh22:
	ldr	x11, [x11, _USB_INT_CLK_PLLB@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	orr	x3, x8, x9
	mov	w2, #65535
	bl	_regmap_write_bits
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
Lloh23:
	adrp	x8, _USBAMUX_DEVICE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _USBAMUX_DEVICE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
LBB0_5:
	ldr	w0, [x19]
	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
	b	_clk_prepare_enable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PLLB_DIV_CTRL_REGOFFSET,4,2    ; @PLLB_DIV_CTRL_REGOFFSET
	.comm	_REF300_DIV_REGOFFSET,4,2       ; @REF300_DIV_REGOFFSET
	.comm	_USBHSPHY_CTRL_REGOFFSET,4,2    ; @USBHSPHY_CTRL_REGOFFSET
	.comm	_USBHSPHY_TEST_ADD,8,3          ; @USBHSPHY_TEST_ADD
	.comm	_USBHSPHY_TEST_DIN,4,2          ; @USBHSPHY_TEST_DIN
	.comm	_USBHSPHY_TEST_CLK,8,3          ; @USBHSPHY_TEST_CLK
	.comm	_USB_CTRL_REGOFFSET,4,2         ; @USB_CTRL_REGOFFSET
	.comm	_USB_CLK_INTERNAL,8,3           ; @USB_CLK_INTERNAL
	.comm	_USB_INT_CLK_PLLB,8,3           ; @USB_INT_CLK_PLLB
	.comm	_USB_INT_CLK_REF300,8,3         ; @USB_INT_CLK_REF300
	.comm	_USBAMUX_DEVICE,4,2             ; @USBAMUX_DEVICE
	.no_dead_strip	_start_oxnas_usb_ehci
.subsections_via_symbols
