	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function miphy28lp_init_usb3
_miphy28lp_init_usb3:                   ## @miphy28lp_init_usb3
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rdi), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.3:
	movq	16(%r14), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_MIPHY_CTRL_SYNC_D_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_miphy28lp_setup
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	callq	_miphy28lp_configure_usb3
	movq	(%r14), %rsi
	addq	$35, %rsi
	movl	$104, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$36, %rsi
	movl	$97, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$38, %rsi
	movl	$104, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$39, %rsi
	movl	$97, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$41, %rsi
	movl	$24, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$42, %rsi
	movl	$97, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$104, %rsi
	movl	$103, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$105, %rsi
	movl	$13, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$106, %rsi
	movl	$103, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$107, %rsi
	movl	$13, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$108, %rsi
	movl	$103, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$109, %rsi
	movl	$13, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$110, %rsi
	movl	$103, %edi
	callq	_writeb_relaxed
	movq	(%r14), %rsi
	addq	$111, %rsi
	movl	$13, %edi
	callq	_writeb_relaxed
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_miphy_is_ready                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb3-up mode, addr 0x%p\n"

	.comm	_MIPHY_CTRL_SYNC_D_EN,4,2       ## @MIPHY_CTRL_SYNC_D_EN
L_.str.1:                               ## @.str.1
	.asciz	"USB3 phy setup failed\n"

	.no_dead_strip	_miphy28lp_init_usb3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function miphy28lp_init_usb3
_miphy28lp_init_usb3:                   ; @miphy28lp_init_usb3
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w2, [x0, #8]
	cbz	w2, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x21, [x19, #16]
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh2:
	adrp	x8, _MIPHY_CTRL_SYNC_D_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIPHY_CTRL_SYNC_D_EN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_miphy28lp_setup
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_miphy28lp_configure_usb3
	ldr	x8, [x19]
	add	x1, x8, #35
	mov	w0, #104
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #36
	mov	w0, #97
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #38
	mov	w0, #104
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #39
	mov	w0, #97
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #41
	mov	w0, #24
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #42
	mov	w0, #97
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #104
	mov	w0, #103
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #105
	mov	w0, #13
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #106
	mov	w0, #103
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #107
	mov	w0, #13
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #108
	mov	w0, #103
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #109
	mov	w0, #13
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #110
	mov	w0, #103
	bl	_writeb_relaxed
	ldr	x8, [x19]
	add	x1, x8, #111
	mov	w0, #13
	bl	_writeb_relaxed
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_miphy_is_ready
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb3-up mode, addr 0x%p\n"

	.comm	_MIPHY_CTRL_SYNC_D_EN,4,2       ; @MIPHY_CTRL_SYNC_D_EN
l_.str.1:                               ; @.str.1
	.asciz	"USB3 phy setup failed\n"

	.no_dead_strip	_miphy28lp_init_usb3
.subsections_via_symbols
