	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_st_set_uhs_signaling
_sdhci_st_set_uhs_signaling:            ## @sdhci_st_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, %r14d
	movq	%rdi, %r15
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r13
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_sdhci_readw
	movq	_SDHCI_CTRL_UHS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	leal	-128(%r14), %eax
	cmpl	$6, %eax
	ja	LBB0_1
## %bb.2:
	movq	_SDHCI_CTRL_UHS_SDR50@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_SDHCI_CTRL_UHS_SDR104@GOTPCREL(%rip), %r12
LBB0_8:
	movl	(%r13), %edi
	callq	_st_mmcss_set_static_delay
	movq	_SDHCI_CTRL_VDD_180@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	orl	(%r12), %r13d
	movq	%r15, %rdi
	callq	_sdhci_st_set_dll_for_clock
	orl	%ebx, %r13d
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_dev_warn
	jmp	LBB0_10
LBB0_6:
	movl	(%r13), %edi
	callq	_st_mmcss_set_static_delay
	movq	_SDHCI_CTRL_UHS_DDR50@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movl	%ebx, %r13d
	jmp	LBB0_11
LBB0_5:
	movl	(%r13), %edi
	callq	_st_mmcss_set_static_delay
	movq	_SDHCI_CTRL_UHS_SDR25@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movl	(%r13), %edi
	callq	_st_mmcss_set_static_delay
	movq	_SDHCI_CTRL_UHS_SDR12@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_SDHCI_CTRL_VDD_180@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movl	%ebx, %r13d
LBB0_10:
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %r12
LBB0_11:
	movl	(%r15), %edi
	callq	_mmc_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_dev_dbg
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_writew                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_7
	.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_VDD_180,4,2         ## @SDHCI_CTRL_VDD_180
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error setting dll for clock (uhs %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"uhs %d, ctrl_2 %04X\n"

	.no_dead_strip	_sdhci_st_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_st_set_uhs_signaling
_sdhci_st_set_uhs_signaling:            ; @sdhci_st_set_uhs_signaling
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x22, x0
Lloh0:
	adrp	x23, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	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	w21, w0, w8
	sub	w8, w20, #128
	cmp	w8, #6
	b.hi	LBB0_9
; %bb.1:
Lloh5:
	adrp	x24, _SDHCI_CTRL_UHS_SDR50@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SDHCI_CTRL_UHS_SDR50@GOTPAGEOFF]
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh9:
	adrp	x24, _SDHCI_CTRL_UHS_SDR104@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SDHCI_CTRL_UHS_SDR104@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x22]
	bl	_st_mmcss_set_static_delay
	ldr	w8, [x24]
Lloh11:
	adrp	x9, _SDHCI_CTRL_VDD_180@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SDHCI_CTRL_VDD_180@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x19
	bl	_sdhci_st_set_dll_for_clock
	orr	w21, w22, w21
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w0, [x19]
	bl	_mmc_dev
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	b	LBB0_9
LBB0_5:
	ldr	w0, [x22]
	bl	_st_mmcss_set_static_delay
Lloh16:
	adrp	x8, _SDHCI_CTRL_UHS_DDR50@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_DDR50@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	w0, [x22]
	bl	_st_mmcss_set_static_delay
Lloh18:
	adrp	x8, _SDHCI_CTRL_UHS_SDR25@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_SDR25@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x22]
	bl	_st_mmcss_set_static_delay
Lloh20:
	adrp	x8, _SDHCI_CTRL_UHS_SDR12@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_SDR12@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SDHCI_CTRL_VDD_180@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SDHCI_CTRL_VDD_180@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w21
	orr	w21, w8, w9
LBB0_9:
	ldr	w0, [x19]
	bl	_mmc_dev
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_dbg
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sdhci_writew
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-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_VDD_180,4,2         ; @SDHCI_CTRL_VDD_180
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error setting dll for clock (uhs %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"uhs %d, ctrl_2 %04X\n"

	.no_dead_strip	_sdhci_st_set_uhs_signaling
.subsections_via_symbols
