	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_sprd_set_uhs_signaling
_sdhci_sprd_set_uhs_signaling:          ## @sdhci_sprd_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, %rbx
	callq	_TO_SPRD_HOST
	cmpl	%r14d, (%rbx)
	je	LBB0_12
## %bb.1:
	movq	8(%rbx), %r12
	movq	(%rax), %r15
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movq	_SDHCI_CTRL_UHS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	leal	-128(%r14), %eax
	cmpl	$9, %eax
	ja	LBB0_11
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_SDHCI_CTRL_UHS_SDR25@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_SDHCI_CTRL_UHS_DDR50@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_SDHCI_CTRL_UHS_SDR50@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_SDHCI_CTRL_UHS_SDR12@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_SDHCI_CTRL_UHS_SDR104@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_SDHCI_SPRD_CTRL_HS400@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_SDHCI_SPRD_CTRL_HS200@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %esi
LBB0_11:
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writew
	cmpl	$0, (%r12)
	je	LBB0_13
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%r14d, %eax
	movl	(%r15,%rax,4), %esi
	movq	_SDHCI_SPRD_REG_32_DLL_DLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_writel                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_7
	.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	_SDHCI_SPRD_CTRL_HS200,4,2      ## @SDHCI_SPRD_CTRL_HS200
	.comm	_SDHCI_SPRD_CTRL_HS400,4,2      ## @SDHCI_SPRD_CTRL_HS400
	.comm	_SDHCI_SPRD_REG_32_DLL_DLY,4,2  ## @SDHCI_SPRD_REG_32_DLL_DLY
	.no_dead_strip	_sdhci_sprd_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_sprd_set_uhs_signaling
_sdhci_sprd_set_uhs_signaling:          ; @sdhci_sprd_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	_TO_SPRD_HOST
	ldr	w8, [x19]
	cmp	w8, w20
	b.eq	LBB0_12
; %bb.1:
	ldr	x22, [x19, #8]
	ldr	x21, [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	w1, w0, w8
	sub	w8, w20, #128
	cmp	w8, #9
	b.hi	LBB0_11
; %bb.2:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh7:
	adrp	x8, _SDHCI_CTRL_UHS_SDR25@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_SDR25@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x8, _SDHCI_CTRL_UHS_DDR50@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_DDR50@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh11:
	adrp	x8, _SDHCI_CTRL_UHS_SDR50@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_SDR50@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh13:
	adrp	x8, _SDHCI_CTRL_UHS_SDR12@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_SDR12@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh15:
	adrp	x8, _SDHCI_CTRL_UHS_SDR104@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDHCI_CTRL_UHS_SDR104@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _SDHCI_SPRD_CTRL_HS400@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDHCI_SPRD_CTRL_HS400@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh19:
	adrp	x8, _SDHCI_SPRD_CTRL_HS200@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SDHCI_SPRD_CTRL_HS200@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	orr	w1, w8, w1
LBB0_11:
	ldr	w2, [x23]
	mov	x0, x19
	bl	_sdhci_writew
	ldr	w8, [x22]
	cbz	w8, LBB0_13
LBB0_12:
	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
	ret
LBB0_13:
	ldr	w1, [x21, w20, uxtw #2]
Lloh21:
	adrp	x8, _SDHCI_SPRD_REG_32_DLL_DLY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SDHCI_SPRD_REG_32_DLL_DLY@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	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_writel
	.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 AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>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	_SDHCI_SPRD_CTRL_HS200,4,2      ; @SDHCI_SPRD_CTRL_HS200
	.comm	_SDHCI_SPRD_CTRL_HS400,4,2      ; @SDHCI_SPRD_CTRL_HS400
	.comm	_SDHCI_SPRD_REG_32_DLL_DLY,4,2  ; @SDHCI_SPRD_REG_32_DLL_DLY
	.no_dead_strip	_sdhci_sprd_set_uhs_signaling
.subsections_via_symbols
