	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_msm_set_uhs_signaling
_sdhci_msm_set_uhs_signaling:           ## @sdhci_msm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rbx
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_sdhci_readw
	movl	%eax, %r12d
	movq	_SDHCI_CTRL_UHS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	leal	-128(%r15), %ecx
	cmpl	$7, %ecx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_SDHCI_CTRL_UHS_SDR104@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_SDHCI_CTRL_UHS_DDR50@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_SDHCI_CTRL_UHS_SDR50@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_3:
	movq	_SDHCI_CTRL_UHS_SDR25@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_SDHCI_CTRL_UHS_SDR12@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %r12d
LBB0_8:
	movq	(%r13), %rcx
	movq	_CORE_FREQ_100MHZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_13
## %bb.9:
	leal	-131(%r15), %ecx
	cmpl	$3, %ecx
	ja	LBB0_12
## %bb.10:
	cmpl	$1, %ecx
	je	LBB0_12
## %bb.11:
	andl	%eax, %r12d
LBB0_12:
	movq	(%rbx), %rdi
	addq	16(%r13), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_RST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	16(%r13), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	(%rbx), %rdi
	addq	16(%r13), %rdi
	callq	_readl_relaxed
	movq	_CORE_DLL_PDN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	16(%r13), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_13:
	movq	%r14, %rdi
	callq	_mmc_dev
	movl	%eax, %ebx
	movq	8(%r13), %rdi
	callq	_mmc_hostname
	movq	(%r13), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r15d, %r8d
	movl	%r12d, %r9d
	callq	_dev_dbg
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_sdhci_writew
	cmpl	$133, (%r14)
	jne	LBB0_14
## %bb.15:
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_msm_hs400                ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_SDHCI_HOST_CONTROL2,4,2        ## @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_CTRL_UHS_MASK,4,2        ## @SDHCI_CTRL_UHS_MASK
	.comm	_SDHCI_CTRL_UHS_SDR12,4,2       ## @SDHCI_CTRL_UHS_SDR12
	.comm	_SDHCI_CTRL_UHS_SDR25,4,2       ## @SDHCI_CTRL_UHS_SDR25
	.comm	_SDHCI_CTRL_UHS_SDR50,4,2       ## @SDHCI_CTRL_UHS_SDR50
	.comm	_SDHCI_CTRL_UHS_SDR104,4,2      ## @SDHCI_CTRL_UHS_SDR104
	.comm	_SDHCI_CTRL_UHS_DDR50,4,2       ## @SDHCI_CTRL_UHS_DDR50
	.comm	_CORE_FREQ_100MHZ,8,3           ## @CORE_FREQ_100MHZ
	.comm	_CORE_DLL_RST,4,2               ## @CORE_DLL_RST
	.comm	_CORE_DLL_PDN,4,2               ## @CORE_DLL_PDN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: clock=%u uhs=%u ctrl_2=0x%x\n"

	.no_dead_strip	_sdhci_msm_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 sdhci_msm_set_uhs_signaling
_sdhci_msm_set_uhs_signaling:           ; @sdhci_msm_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	x20, x0
	ldr	x19, [x0, #8]
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x23, x0
	ldr	x25, [x0, #8]
Lloh0:
	adrp	x24, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_sdhci_readw
Lloh2:
	adrp	x8, _SDHCI_CTRL_UHS_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w22, w0, w8
	sub	w9, w21, #128
	cmp	w9, #7
	b.hi	LBB0_8
; %bb.1:
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh7:
	adrp	x9, _SDHCI_CTRL_UHS_SDR104@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SDHCI_CTRL_UHS_SDR104@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh9:
	adrp	x9, _SDHCI_CTRL_UHS_DDR50@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDHCI_CTRL_UHS_DDR50@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x9, _SDHCI_CTRL_UHS_SDR50@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SDHCI_CTRL_UHS_SDR50@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x9, _SDHCI_CTRL_UHS_SDR25@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SDHCI_CTRL_UHS_SDR25@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x9, _SDHCI_CTRL_UHS_SDR12@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SDHCI_CTRL_UHS_SDR12@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w22, w9, w22
LBB0_8:
	ldr	x9, [x20]
Lloh17:
	adrp	x10, _CORE_FREQ_100MHZ@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CORE_FREQ_100MHZ@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_10
; %bb.9:
	mvn	w8, w8
	sub	w9, w21, #131
	and	w8, w22, w8
	cmp	w9, #1
	csel	w8, w8, w22, ne
	cmp	w9, #3
	csel	w22, w22, w8, hi
	ldr	x8, [x20, #16]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh20:
	adrp	x8, _CORE_DLL_RST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CORE_DLL_RST@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x20, #16]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20, #16]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh23:
	adrp	x8, _CORE_DLL_PDN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CORE_DLL_PDN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x20, #16]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel_relaxed
	str	wzr, [x23]
LBB0_10:
	mov	x0, x19
	bl	_mmc_dev
	mov	x23, x0
	ldr	x0, [x20, #8]
	bl	_mmc_hostname
	mov	x2, x0
	ldr	x3, [x20]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x4, x21
	mov	x5, x22
	bl	_dev_dbg
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x22
	bl	_sdhci_writew
	ldr	w8, [x19]
	cmp	w8, #133
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, 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	_sdhci_msm_hs400
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_SDHCI_HOST_CONTROL2,4,2        ; @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_CTRL_UHS_MASK,4,2        ; @SDHCI_CTRL_UHS_MASK
	.comm	_SDHCI_CTRL_UHS_SDR12,4,2       ; @SDHCI_CTRL_UHS_SDR12
	.comm	_SDHCI_CTRL_UHS_SDR25,4,2       ; @SDHCI_CTRL_UHS_SDR25
	.comm	_SDHCI_CTRL_UHS_SDR50,4,2       ; @SDHCI_CTRL_UHS_SDR50
	.comm	_SDHCI_CTRL_UHS_SDR104,4,2      ; @SDHCI_CTRL_UHS_SDR104
	.comm	_SDHCI_CTRL_UHS_DDR50,4,2       ; @SDHCI_CTRL_UHS_DDR50
	.comm	_CORE_FREQ_100MHZ,8,3           ; @CORE_FREQ_100MHZ
	.comm	_CORE_DLL_RST,4,2               ; @CORE_DLL_RST
	.comm	_CORE_DLL_PDN,4,2               ; @CORE_DLL_PDN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: clock=%u uhs=%u ctrl_2=0x%x\n"

	.no_dead_strip	_sdhci_msm_set_uhs_signaling
.subsections_via_symbols
