	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esdhc_set_uhs_signaling
_esdhc_set_uhs_signaling:               ## @esdhc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r15
	movq	_ESDHC_MIX_CTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_ESDHC_MIX_CTRL_DDREN@GOTPCREL(%rip), %rcx
	movq	_ESDHC_MIX_CTRL_HS400_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movl	$0, (%r15)
	leal	-128(%r14), %esi
	cmpl	$8, %esi
	ja	LBB0_8
## %bb.1:
	notl	%edi
	andl	%edi, %eax
	movl	$207, %edi
	btl	%esi, %edi
	jae	LBB0_5
## %bb.2:
	movq	(%r12), %rsi
	addq	16(%rbx), %rsi
	movl	%eax, %edi
LBB0_3:
	callq	_writel
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_esdhc_change_pinstate          ## TAILCALL
LBB0_5:
	movl	$272, %edi                      ## imm = 0x110
	btl	%esi, %edi
	jae	LBB0_9
## %bb.6:
	orl	(%rcx), %eax
	movq	(%r12), %rsi
	addq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	$1, (%r15)
	movl	4(%r15), %r12d
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.7:
	movq	_ESDHC_DLL_OVERRIDE_VAL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	_ESDHC_DLL_OVERRIDE_EN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r12d
	movq	%r15, %rdi
	callq	_is_imx53_esdhc
	testl	%eax, %eax
	setne	%cl
	shll	%cl, %r12d
	movq	_ESDHC_DLL_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	%r12d, %edi
	jmp	LBB0_3
LBB0_8:
	movq	%rbx, %rdi
	callq	_esdhc_reset_tuning
	jmp	LBB0_4
LBB0_9:
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	(%r12), %rsi
	addq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	$1, (%r15)
	movq	8(%rbx), %rax
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_esdhc_set_strobe_dll
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ESDHC_MIX_CTRL,8,3             ## @ESDHC_MIX_CTRL
	.comm	_ESDHC_MIX_CTRL_DDREN,4,2       ## @ESDHC_MIX_CTRL_DDREN
	.comm	_ESDHC_MIX_CTRL_HS400_EN,4,2    ## @ESDHC_MIX_CTRL_HS400_EN
	.comm	_ESDHC_DLL_OVERRIDE_VAL_SHIFT,4,2 ## @ESDHC_DLL_OVERRIDE_VAL_SHIFT
	.comm	_ESDHC_DLL_OVERRIDE_EN_SHIFT,4,2 ## @ESDHC_DLL_OVERRIDE_EN_SHIFT
	.comm	_ESDHC_DLL_CTRL,8,3             ## @ESDHC_DLL_CTRL
	.no_dead_strip	_esdhc_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 esdhc_set_uhs_signaling
_esdhc_set_uhs_signaling:               ; @esdhc_set_uhs_signaling
	.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	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x21, x0
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x22, _ESDHC_MIX_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ESDHC_MIX_CTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _ESDHC_MIX_CTRL_DDREN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESDHC_MIX_CTRL_DDREN@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh4:
	adrp	x9, _ESDHC_MIX_CTRL_HS400_EN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ESDHC_MIX_CTRL_HS400_EN@GOTPAGEOFF]
	ldr	w11, [x9]
	str	wzr, [x21]
	sub	w12, w19, #128
	cmp	w12, #8
	b.hi	LBB0_8
; %bb.1:
	orr	w10, w11, w10
	bic	w0, w0, w10
	mov	w10, #1
	lsl	w10, w10, w12
	mov	w11, #207
	tst	w10, w11
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	x9, [x22]
LBB0_3:
	add	x1, x9, x8
	bl	_writel
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	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	_esdhc_change_pinstate
LBB0_5:
	mov	w11, #272
	tst	w10, w11
	b.eq	LBB0_9
; %bb.6:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x20, #16]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	w8, #1
	str	w8, [x21]
	ldr	w9, [x21, #4]
	cbz	w9, LBB0_4
; %bb.7:
Lloh6:
	adrp	x10, _ESDHC_DLL_OVERRIDE_VAL_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ESDHC_DLL_OVERRIDE_VAL_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh9:
	adrp	x10, _ESDHC_DLL_OVERRIDE_EN_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ESDHC_DLL_OVERRIDE_EN_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w22, w8, w9
	mov	x0, x21
	bl	_is_imx53_esdhc
	cmp	w0, #0
	cset	w8, ne
	lsl	w0, w22, w8
	ldr	x8, [x20, #16]
Lloh12:
	adrp	x9, _ESDHC_DLL_CTRL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ESDHC_DLL_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	bl	_esdhc_reset_tuning
	b	LBB0_4
LBB0_9:
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x20, #16]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	w8, #1
	str	w8, [x21]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w1, [x20]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_esdhc_set_strobe_dll
	b	LBB0_4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ESDHC_MIX_CTRL,8,3             ; @ESDHC_MIX_CTRL
	.comm	_ESDHC_MIX_CTRL_DDREN,4,2       ; @ESDHC_MIX_CTRL_DDREN
	.comm	_ESDHC_MIX_CTRL_HS400_EN,4,2    ; @ESDHC_MIX_CTRL_HS400_EN
	.comm	_ESDHC_DLL_OVERRIDE_VAL_SHIFT,4,2 ; @ESDHC_DLL_OVERRIDE_VAL_SHIFT
	.comm	_ESDHC_DLL_OVERRIDE_EN_SHIFT,4,2 ; @ESDHC_DLL_OVERRIDE_EN_SHIFT
	.comm	_ESDHC_DLL_CTRL,8,3             ; @ESDHC_DLL_CTRL
	.no_dead_strip	_esdhc_set_uhs_signaling
.subsections_via_symbols
