	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_sdhci_set_uhs_signaling
_tegra_sdhci_set_uhs_signaling:         ## @tegra_sdhci_set_uhs_signaling
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	movq	_TRIES_256@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$0, (%r14)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leal	-128(%rbx), %eax
	cmpl	$5, %eax
	ja	LBB0_4
## %bb.1:
	movb	$1, %dl
	xorl	%ebx, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_TRIES_128@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_6
LBB0_3:
	movl	$1, (%r14)
LBB0_4:
	movb	$1, %dl
	movb	$1, %bl
	jmp	LBB0_7
LBB0_5:
	movq	_TRIES_128@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%edx, %edx
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_SDHCI_VNDR_TUN_CTRL0_0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_VNDR_TUN_CTRL0_TUN_ITER_MASK@GOTPCREL(%rip), %rcx
	movq	_SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_SDHCI_VNDR_TUN_CTRL0_MUL_M_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_SDHCI_VNDR_TUN_CTRL0_TUN_ITER_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r13d, %esi
	shll	%cl, %esi
	orl	%edx, %esi
	movq	_SDHCI_VNDR_TUN_CTRL0_MUL_M_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %esi
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_sdhci_writel
	movq	_SDHCI_TEGRA_VNDR_TUN_CTRL1_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sdhci_writel
	movq	_TRIES_128@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	(%rax), %r13d
	setne	%cl
	shll	$7, %ecx
	subl	$-128, %ecx
	movl	%ecx, (%r12)
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sdhci_set_uhs_signaling
	movq	%r12, %rdi
	callq	_tegra_sdhci_pad_autocalib
	testb	%bl, %bl
	jne	LBB0_9
## %bb.8:
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	jne	LBB0_10
LBB0_9:
	movq	8(%r14), %rsi
LBB0_10:
	movq	%r12, %rdi
	callq	_tegra_sdhci_set_tap
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_12
## %bb.11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_tegra_sdhci_set_dqs_trim
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_sdhci_hs400_dll_cal      ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_TRIES_256,4,2                  ## @TRIES_256
	.comm	_TRIES_128,4,2                  ## @TRIES_128
	.comm	_SDHCI_VNDR_TUN_CTRL0_0,4,2     ## @SDHCI_VNDR_TUN_CTRL0_0
	.comm	_SDHCI_VNDR_TUN_CTRL0_TUN_ITER_MASK,4,2 ## @SDHCI_VNDR_TUN_CTRL0_TUN_ITER_MASK
	.comm	_SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_MASK,4,2 ## @SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_MASK
	.comm	_SDHCI_VNDR_TUN_CTRL0_MUL_M_MASK,4,2 ## @SDHCI_VNDR_TUN_CTRL0_MUL_M_MASK
	.comm	_SDHCI_VNDR_TUN_CTRL0_TUN_ITER_SHIFT,4,2 ## @SDHCI_VNDR_TUN_CTRL0_TUN_ITER_SHIFT
	.comm	_SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_SHIFT,4,2 ## @SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_SHIFT
	.comm	_SDHCI_VNDR_TUN_CTRL0_MUL_M_SHIFT,4,2 ## @SDHCI_VNDR_TUN_CTRL0_MUL_M_SHIFT
	.comm	_SDHCI_TEGRA_VNDR_TUN_CTRL1_0,4,2 ## @SDHCI_TEGRA_VNDR_TUN_CTRL1_0
	.no_dead_strip	_tegra_sdhci_set_uhs_signaling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_sdhci_set_uhs_signaling
_tegra_sdhci_set_uhs_signaling:         ; @tegra_sdhci_set_uhs_signaling
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _TRIES_256@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRIES_256@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	str	wzr, [x0]
	sub	w8, w21, #128
Lloh3:
	adrp	x24, _TRIES_128@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TRIES_128@GOTPAGEOFF]
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
	mov	w25, #0
	mov	w22, #1
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w25, #0
	ldr	w23, [x24]
	mov	w22, #1
	b	LBB0_7
LBB0_3:
	mov	w22, #1
	str	w22, [x20]
	b	LBB0_5
LBB0_4:
	mov	w22, #1
LBB0_5:
	mov	w25, #1
	b	LBB0_7
LBB0_6:
	mov	w22, #0
	mov	w25, #0
	ldr	w23, [x24]
LBB0_7:
Lloh7:
	adrp	x26, _SDHCI_VNDR_TUN_CTRL0_0@GOTPAGE
Lloh8:
	ldr	x26, [x26, _SDHCI_VNDR_TUN_CTRL0_0@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_sdhci_readl
Lloh9:
	adrp	x8, _SDHCI_VNDR_TUN_CTRL0_TUN_ITER_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_VNDR_TUN_CTRL0_TUN_ITER_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _SDHCI_VNDR_TUN_CTRL0_MUL_M_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SDHCI_VNDR_TUN_CTRL0_MUL_M_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w8, w0, w8
Lloh18:
	adrp	x9, _SDHCI_VNDR_TUN_CTRL0_TUN_ITER_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDHCI_VNDR_TUN_CTRL0_TUN_ITER_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsl	w9, w23, w9
Lloh21:
	adrp	x10, _SDHCI_VNDR_TUN_CTRL0_MUL_M_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SDHCI_VNDR_TUN_CTRL0_MUL_M_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	orr	w8, w8, w9
	orr	w1, w8, w10
	ldr	w2, [x26]
	mov	x0, x19
	bl	_sdhci_writel
Lloh24:
	adrp	x8, _SDHCI_TEGRA_VNDR_TUN_CTRL1_0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SDHCI_TEGRA_VNDR_TUN_CTRL1_0@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sdhci_writel
	ldr	w8, [x24]
	mov	w9, #256
	mov	w10, #128
	cmp	w23, w8
	csel	w8, w10, w9, eq
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_sdhci_set_uhs_signaling
	mov	x0, x19
	bl	_tegra_sdhci_pad_autocalib
	tbnz	w25, #0, LBB0_9
; %bb.8:
	ldr	x1, [x20, #16]
	cbnz	x1, LBB0_10
LBB0_9:
	ldr	x1, [x20, #8]
LBB0_10:
	mov	x0, x19
	bl	_tegra_sdhci_set_tap
	tbz	w22, #0, LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_tegra_sdhci_set_dqs_trim
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_tegra_sdhci_hs400_dll_cal
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_TRIES_256,4,2                  ; @TRIES_256
	.comm	_TRIES_128,4,2                  ; @TRIES_128
	.comm	_SDHCI_VNDR_TUN_CTRL0_0,4,2     ; @SDHCI_VNDR_TUN_CTRL0_0
	.comm	_SDHCI_VNDR_TUN_CTRL0_TUN_ITER_MASK,4,2 ; @SDHCI_VNDR_TUN_CTRL0_TUN_ITER_MASK
	.comm	_SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_MASK,4,2 ; @SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_MASK
	.comm	_SDHCI_VNDR_TUN_CTRL0_MUL_M_MASK,4,2 ; @SDHCI_VNDR_TUN_CTRL0_MUL_M_MASK
	.comm	_SDHCI_VNDR_TUN_CTRL0_TUN_ITER_SHIFT,4,2 ; @SDHCI_VNDR_TUN_CTRL0_TUN_ITER_SHIFT
	.comm	_SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_SHIFT,4,2 ; @SDHCI_VNDR_TUN_CTRL0_START_TAP_VAL_SHIFT
	.comm	_SDHCI_VNDR_TUN_CTRL0_MUL_M_SHIFT,4,2 ; @SDHCI_VNDR_TUN_CTRL0_MUL_M_SHIFT
	.comm	_SDHCI_TEGRA_VNDR_TUN_CTRL1_0,4,2 ; @SDHCI_TEGRA_VNDR_TUN_CTRL1_0
	.no_dead_strip	_tegra_sdhci_set_uhs_signaling
.subsections_via_symbols
