	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_gen3_phy_usb3_select_usb_extal
_rcar_gen3_phy_usb3_select_usb_extal:   ## @rcar_gen3_phy_usb3_select_usb_extal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_write_clkset1_for_usb_extal
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rcar_gen3_phy_usb3_enable_ssc
LBB0_2:
	movq	_CLKSET0_PRIVATE@GOTPCREL(%rip), %rax
	movq	_CLKSET0_USB30_FSEL_USB_EXTAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_USB30_CLKSET0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writew
	movq	_PHY_ENABLE_RESET_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_USB30_PHY_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writew
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_write_clkset1_for_usb_extal
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_write_clkset1_for_usb_extal    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLKSET0_PRIVATE,4,2            ## @CLKSET0_PRIVATE
	.comm	_CLKSET0_USB30_FSEL_USB_EXTAL,4,2 ## @CLKSET0_USB30_FSEL_USB_EXTAL
	.comm	_USB30_CLKSET0,8,3              ## @USB30_CLKSET0
	.comm	_PHY_ENABLE_RESET_EN,4,2        ## @PHY_ENABLE_RESET_EN
	.comm	_USB30_PHY_ENABLE,8,3           ## @USB30_PHY_ENABLE
	.no_dead_strip	_rcar_gen3_phy_usb3_select_usb_extal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_gen3_phy_usb3_select_usb_extal
_rcar_gen3_phy_usb3_select_usb_extal:   ; @rcar_gen3_phy_usb3_select_usb_extal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #0
	bl	_write_clkset1_for_usb_extal
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rcar_gen3_phy_usb3_enable_ssc
LBB0_2:
Lloh0:
	adrp	x8, _CLKSET0_PRIVATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLKSET0_PRIVATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CLKSET0_USB30_FSEL_USB_EXTAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CLKSET0_USB30_FSEL_USB_EXTAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _USB30_CLKSET0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB30_CLKSET0@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
Lloh9:
	adrp	x8, _PHY_ENABLE_RESET_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_ENABLE_RESET_EN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _USB30_PHY_ENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _USB30_PHY_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	mov	x0, x19
	mov	w1, #1
	bl	_write_clkset1_for_usb_extal
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_clkset1_for_usb_extal
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLKSET0_PRIVATE,4,2            ; @CLKSET0_PRIVATE
	.comm	_CLKSET0_USB30_FSEL_USB_EXTAL,4,2 ; @CLKSET0_USB30_FSEL_USB_EXTAL
	.comm	_USB30_CLKSET0,8,3              ; @USB30_CLKSET0
	.comm	_PHY_ENABLE_RESET_EN,4,2        ; @PHY_ENABLE_RESET_EN
	.comm	_USB30_PHY_ENABLE,8,3           ; @USB30_PHY_ENABLE
	.no_dead_strip	_rcar_gen3_phy_usb3_select_usb_extal
.subsections_via_symbols
