	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_meson_gxl_usb3_set_mode
_phy_meson_gxl_usb3_set_mode:           ## @phy_meson_gxl_usb3_set_mode
	.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	%esi, %r15d
	movq	%rdi, %rbx
	callq	_phy_get_drvdata
	movq	%rax, %r14
	cmpl	$129, %r15d
	je	LBB0_4
## %bb.1:
	cmpl	$128, %r15d
	jne	LBB0_3
## %bb.2:
	movl	4(%r14), %edi
	movq	_USB_R0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_R0_U2D_ACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	4(%r14), %edi
	movq	_USB_R4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_R4_P21_SLEEP_M0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_4:
	movl	4(%r14), %edi
	movq	_USB_R0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_R0_U2D_ACT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	4(%r14), %edi
	movq	_USB_R4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USB_R4_P21_SLEEP_M0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
LBB0_5:
	callq	_regmap_update_bits
	movl	%r15d, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_R0,4,2                     ## @USB_R0
	.comm	_USB_R0_U2D_ACT,4,2             ## @USB_R0_U2D_ACT
	.comm	_USB_R4,4,2                     ## @USB_R4
	.comm	_USB_R4_P21_SLEEP_M0,4,2        ## @USB_R4_P21_SLEEP_M0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported PHY mode %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_phy_meson_gxl_usb3_set_mode
.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_set_mode
_phy_meson_gxl_usb3_set_mode:           ; @phy_meson_gxl_usb3_set_mode
	.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	x19, x1
	mov	x21, x0
	bl	_phy_get_drvdata
	mov	x20, x0
	cmp	w19, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _USB_R0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_R0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _USB_R0_U2D_ACT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_R0_U2D_ACT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x8, _USB_R4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_R4@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _USB_R4_P21_SLEEP_M0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_R4_P21_SLEEP_M0@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w3, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20, #4]
Lloh12:
	adrp	x8, _USB_R0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USB_R0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _USB_R0_U2D_ACT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USB_R0_U2D_ACT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w0, [x20, #4]
Lloh18:
	adrp	x8, _USB_R4@GOTPAGE
Lloh19:
	ldr	x8, [x8, _USB_R4@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _USB_R4_P21_SLEEP_M0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _USB_R4_P21_SLEEP_M0@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x3, x2
LBB0_4:
	bl	_regmap_update_bits
	mov	w0, #0
	str	w19, [x20]
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_dev_err
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_R0,4,2                     ; @USB_R0
	.comm	_USB_R0_U2D_ACT,4,2             ; @USB_R0_U2D_ACT
	.comm	_USB_R4,4,2                     ; @USB_R4
	.comm	_USB_R4_P21_SLEEP_M0,4,2        ; @USB_R4_P21_SLEEP_M0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported PHY mode %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_phy_meson_gxl_usb3_set_mode
.subsections_via_symbols
