	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_meson_gxl_usb2_set_mode
_phy_meson_gxl_usb2_set_mode:           ## @phy_meson_gxl_usb2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_phy_get_drvdata
	movq	%rax, %rbx
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.4:
	movl	4(%rbx), %edi
	movq	_U2P_R0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_U2P_R0_DM_PULLDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	movq	_U2P_R0_DP_PULLDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	movq	_U2P_R0_ID_PULLUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_1:
	cmpl	$130, %r15d
	jne	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	movq	_U2P_R0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_U2P_R0_DM_PULLDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	movq	_U2P_R0_DP_PULLDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	movq	_U2P_R0_ID_PULLUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
LBB0_5:
	callq	_regmap_update_bits
	movq	%r14, %rdi
	callq	_phy_meson_gxl_usb2_reset
	movl	%r15d, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U2P_R0,4,2                     ## @U2P_R0
	.comm	_U2P_R0_DM_PULLDOWN,4,2         ## @U2P_R0_DM_PULLDOWN
	.comm	_U2P_R0_DP_PULLDOWN,4,2         ## @U2P_R0_DP_PULLDOWN
	.comm	_U2P_R0_ID_PULLUP,4,2           ## @U2P_R0_ID_PULLUP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_phy_meson_gxl_usb2_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_usb2_set_mode
_phy_meson_gxl_usb2_set_mode:           ; @phy_meson_gxl_usb2_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	x20, x0
	bl	_phy_get_drvdata
	mov	x21, x0
	sub	w8, w19, #128
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x22, _U2P_R0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _U2P_R0@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _U2P_R0_DM_PULLDOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _U2P_R0_DM_PULLDOWN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w0, [x21, #4]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _U2P_R0_DP_PULLDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _U2P_R0_DP_PULLDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w0, [x21, #4]
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _U2P_R0_ID_PULLUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _U2P_R0_ID_PULLUP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w3, #0
	b	LBB0_4
LBB0_2:
	cmp	w19, #130
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x21, #4]
Lloh11:
	adrp	x22, _U2P_R0@GOTPAGE
Lloh12:
	ldr	x22, [x22, _U2P_R0@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh13:
	adrp	x8, _U2P_R0_DM_PULLDOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _U2P_R0_DM_PULLDOWN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w0, [x21, #4]
	ldr	w1, [x22]
Lloh16:
	adrp	x8, _U2P_R0_DP_PULLDOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _U2P_R0_DP_PULLDOWN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w0, [x21, #4]
	ldr	w1, [x22]
Lloh19:
	adrp	x8, _U2P_R0_ID_PULLUP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _U2P_R0_ID_PULLUP@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x3, x2
LBB0_4:
	bl	_regmap_update_bits
	mov	x0, x20
	bl	_phy_meson_gxl_usb2_reset
	mov	w0, #0
	str	w19, [x21]
	b	LBB0_6
LBB0_5:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_U2P_R0,4,2                     ; @U2P_R0
	.comm	_U2P_R0_DM_PULLDOWN,4,2         ; @U2P_R0_DM_PULLDOWN
	.comm	_U2P_R0_DP_PULLDOWN,4,2         ; @U2P_R0_DP_PULLDOWN
	.comm	_U2P_R0_ID_PULLUP,4,2           ; @U2P_R0_ID_PULLUP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_phy_meson_gxl_usb2_set_mode
.subsections_via_symbols
