	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_usb_hs_phy_set_mode
_qcom_usb_hs_phy_set_mode:              ## @qcom_usb_hs_phy_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, %ebx
	callq	_phy_get_drvdata
	movq	%rax, %r15
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.8:
	cmpl	$130, %ebx
	je	LBB0_11
## %bb.9:
	cmpl	$129, %ebx
	je	LBB0_12
## %bb.10:
	cmpl	$128, %ebx
	jne	LBB0_15
LBB0_11:
	movq	_ULPI_MISC_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ULPI_SET
	jmp	LBB0_13
LBB0_1:
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jae	LBB0_2
## %bb.3:
	movq	_ULPI_INT_IDGRD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
	cmpl	$130, %ebx
	jne	LBB0_5
LBB0_4:
	movq	_ULPI_INT_SESS_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_5:
	movl	(%r15), %edi
	movq	_ULPI_USB_INT_EN_RISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_ulpi_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movl	(%r15), %edi
	movq	_ULPI_USB_INT_EN_FALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	jmp	LBB0_7
LBB0_12:
	movq	_ULPI_MISC_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ULPI_CLR
LBB0_13:
	movl	%eax, %r14d
	movl	(%r15), %ebx
	movq	_ULPI_PWR_CLK_MNG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ULPI_SET
	movq	_ULPI_PWR_OTG_COMP_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ulpi_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movl	(%r15), %edi
	movq	_ULPI_MISC_A_VBUSVLDEXTSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ulpi_write                     ## TAILCALL
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULPI_INT_IDGRD,4,2             ## @ULPI_INT_IDGRD
	.comm	_ULPI_INT_SESS_VALID,4,2        ## @ULPI_INT_SESS_VALID
	.comm	_ULPI_USB_INT_EN_RISE,4,2       ## @ULPI_USB_INT_EN_RISE
	.comm	_ULPI_USB_INT_EN_FALL,4,2       ## @ULPI_USB_INT_EN_FALL
	.comm	_ULPI_MISC_A,4,2                ## @ULPI_MISC_A
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ULPI_PWR_CLK_MNG_REG,4,2       ## @ULPI_PWR_CLK_MNG_REG
	.comm	_ULPI_PWR_OTG_COMP_DISABLE,4,2  ## @ULPI_PWR_OTG_COMP_DISABLE
	.comm	_ULPI_MISC_A_VBUSVLDEXTSEL,4,2  ## @ULPI_MISC_A_VBUSVLDEXTSEL
	.no_dead_strip	_qcom_usb_hs_phy_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_usb_hs_phy_set_mode
_qcom_usb_hs_phy_set_mode:              ; @qcom_usb_hs_phy_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	x20, x1
	bl	_phy_get_drvdata
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.1:
	cmp	w20, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w20, #129
	b.eq	LBB0_11
; %bb.3:
	cmp	w20, #128
	b.ne	LBB0_15
LBB0_4:
Lloh0:
	adrp	x8, _ULPI_MISC_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ULPI_MISC_A@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ULPI_SET
	b	LBB0_12
LBB0_5:
	sub	w8, w20, #128
	cmp	w8, #2
	b.hs	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _ULPI_INT_IDGRD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ULPI_INT_IDGRD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	mov	w21, #0
	cmp	w20, #130
	b.ne	LBB0_9
LBB0_8:
Lloh6:
	adrp	x9, _ULPI_INT_SESS_VALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ULPI_INT_SESS_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w9, w8
LBB0_9:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _ULPI_USB_INT_EN_RISE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ULPI_USB_INT_EN_RISE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_ulpi_write
	cbnz	w0, LBB0_16
; %bb.10:
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _ULPI_USB_INT_EN_FALL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ULPI_USB_INT_EN_FALL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x21
	b	LBB0_14
LBB0_11:
Lloh15:
	adrp	x8, _ULPI_MISC_A@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ULPI_MISC_A@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_ULPI_CLR
LBB0_12:
	mov	x20, x0
	ldr	w21, [x19]
Lloh18:
	adrp	x8, _ULPI_PWR_CLK_MNG_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ULPI_PWR_CLK_MNG_REG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_ULPI_SET
	mov	x1, x0
Lloh21:
	adrp	x8, _ULPI_PWR_OTG_COMP_DISABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ULPI_PWR_OTG_COMP_DISABLE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_ulpi_write
	cbnz	w0, LBB0_16
; %bb.13:
	ldr	w0, [x19]
Lloh24:
	adrp	x8, _ULPI_MISC_A_VBUSVLDEXTSEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ULPI_MISC_A_VBUSVLDEXTSEL@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x1, x20
LBB0_14:
	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	_ulpi_write
LBB0_15:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ULPI_INT_IDGRD,4,2             ; @ULPI_INT_IDGRD
	.comm	_ULPI_INT_SESS_VALID,4,2        ; @ULPI_INT_SESS_VALID
	.comm	_ULPI_USB_INT_EN_RISE,4,2       ; @ULPI_USB_INT_EN_RISE
	.comm	_ULPI_USB_INT_EN_FALL,4,2       ; @ULPI_USB_INT_EN_FALL
	.comm	_ULPI_MISC_A,4,2                ; @ULPI_MISC_A
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ULPI_PWR_CLK_MNG_REG,4,2       ; @ULPI_PWR_CLK_MNG_REG
	.comm	_ULPI_PWR_OTG_COMP_DISABLE,4,2  ; @ULPI_PWR_OTG_COMP_DISABLE
	.comm	_ULPI_MISC_A_VBUSVLDEXTSEL,4,2  ; @ULPI_MISC_A_VBUSVLDEXTSEL
	.no_dead_strip	_qcom_usb_hs_phy_set_mode
.subsections_via_symbols
