	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_meson_gxl_usb3_init
_phy_meson_gxl_usb3_init:               ## @phy_meson_gxl_usb3_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, %r15
	callq	_phy_get_drvdata
	movq	%rax, %r14
	movl	16(%rax), %edi
	callq	_reset_control_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	(%r14), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	4(%r14), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	12(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_phy_meson_gxl_usb3_set_mode
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movl	4(%r14), %edi
	callq	_clk_disable_unprepare
	movl	%r15d, %ebx
LBB0_6:
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r14), %r14d
	movq	_USB_R1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_USB_R1_U3H_FLADJ_30MHZ_REG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	movl	$32, %esi
	callq	_FIELD_PREP
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_R1,4,2                     ## @USB_R1
	.comm	_USB_R1_U3H_FLADJ_30MHZ_REG_MASK,4,2 ## @USB_R1_U3H_FLADJ_30MHZ_REG_MASK
	.no_dead_strip	_phy_meson_gxl_usb3_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_meson_gxl_usb3_init
_phy_meson_gxl_usb3_init:               ; @phy_meson_gxl_usb3_init
	.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
	mov	x20, x0
	bl	_phy_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_reset_control_reset
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x19]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w1, [x19, #12]
	mov	x0, x20
	mov	w2, #0
	bl	_phy_meson_gxl_usb3_set_mode
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
LBB0_5:
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
LBB0_6:
	mov	x0, x21
	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_7:
	ldr	w19, [x19, #8]
Lloh0:
	adrp	x8, _USB_R1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_R1@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _USB_R1_U3H_FLADJ_30MHZ_REG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_R1_U3H_FLADJ_30MHZ_REG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x21
	mov	w1, #32
	bl	_FIELD_PREP
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_regmap_update_bits
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_R1,4,2                     ; @USB_R1
	.comm	_USB_R1_U3H_FLADJ_30MHZ_REG_MASK,4,2 ; @USB_R1_U3H_FLADJ_30MHZ_REG_MASK
	.no_dead_strip	_phy_meson_gxl_usb3_init
.subsections_via_symbols
