	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos5420_usbdrd_phy_calibrate
_exynos5420_usbdrd_phy_calibrate:       ## @exynos5420_usbdrd_phy_calibrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_LOSLEVEL_OVRD_IN_LOS_BIAS_5420@GOTPCREL(%rip), %rax
	movq	_LOSLEVEL_OVRD_IN_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_crport_ctrl_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_2:
	movq	_TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_crport_ctrl_write
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_4:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.6:
	cltq
	leaq	l_switch.table.exynos5420_usbdrd_phy_calibrate(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	_EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_crport_ctrl_write
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movl	4(%r14), %edi
	callq	_dev_err
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_LOSLEVEL_OVRD_IN_LOS_BIAS_5420,4,2 ## @LOSLEVEL_OVRD_IN_LOS_BIAS_5420
	.comm	_LOSLEVEL_OVRD_IN_EN,4,2        ## @LOSLEVEL_OVRD_IN_EN
	.comm	_LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT,4,2 ## @LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT
	.comm	_EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN,4,2 ## @EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed setting Loss-of-Signal level for SuperSpeed\n"

	.comm	_TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420,4,2 ## @TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420
	.comm	_EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN,4,2 ## @EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN
L_.str.1:                               ## @.str.1
	.asciz	"Failed setting Tx-Vboost-Level for SuperSpeed\n"

	.comm	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_48M_50M_52M,4,2 ## @LANE0_TX_DEBUG_RXDET_MEAS_TIME_48M_50M_52M
	.comm	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M,4,2 ## @LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M
	.comm	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M,4,2 ## @LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M
	.comm	_EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG,4,2 ## @EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"Fail to set RxDet measurement time for SuperSpeed\n"

	.no_dead_strip	_exynos5420_usbdrd_phy_calibrate
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.exynos5420_usbdrd_phy_calibrate
l_switch.table.exynos5420_usbdrd_phy_calibrate:
	.quad	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_48M_50M_52M
	.quad	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M
	.quad	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M
	.quad	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos5420_usbdrd_phy_calibrate
_exynos5420_usbdrd_phy_calibrate:       ; @exynos5420_usbdrd_phy_calibrate
	.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
Lloh0:
	adrp	x8, _LOSLEVEL_OVRD_IN_LOS_BIAS_5420@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOSLEVEL_OVRD_IN_LOS_BIAS_5420@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LOSLEVEL_OVRD_IN_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LOSLEVEL_OVRD_IN_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh9:
	adrp	x8, _EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_crport_ctrl_write
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_2:
Lloh14:
	adrp	x8, _TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_crport_ctrl_write
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.5:
Lloh22:
	adrp	x9, l_switch.table.exynos5420_usbdrd_phy_calibrate@PAGE
Lloh23:
	add	x9, x9, l_switch.table.exynos5420_usbdrd_phy_calibrate@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x8, _LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M@GOTPAGEOFF]
LBB0_7:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_crport_ctrl_write
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.8:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_dev_err
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_LOSLEVEL_OVRD_IN_LOS_BIAS_5420,4,2 ; @LOSLEVEL_OVRD_IN_LOS_BIAS_5420
	.comm	_LOSLEVEL_OVRD_IN_EN,4,2        ; @LOSLEVEL_OVRD_IN_EN
	.comm	_LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT,4,2 ; @LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT
	.comm	_EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN,4,2 ; @EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed setting Loss-of-Signal level for SuperSpeed\n"

	.comm	_TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420,4,2 ; @TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420
	.comm	_EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN,4,2 ; @EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN
l_.str.1:                               ; @.str.1
	.asciz	"Failed setting Tx-Vboost-Level for SuperSpeed\n"

	.comm	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_48M_50M_52M,4,2 ; @LANE0_TX_DEBUG_RXDET_MEAS_TIME_48M_50M_52M
	.comm	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M,4,2 ; @LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M
	.comm	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M,4,2 ; @LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M
	.comm	_EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG,4,2 ; @EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"Fail to set RxDet measurement time for SuperSpeed\n"

	.no_dead_strip	_exynos5420_usbdrd_phy_calibrate
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.exynos5420_usbdrd_phy_calibrate
l_switch.table.exynos5420_usbdrd_phy_calibrate:
	.quad	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_48M_50M_52M
	.quad	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M
	.quad	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M
	.quad	_LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M

.subsections_via_symbols
