	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_exynos_config_hs400
_dw_mci_exynos_config_hs400:            ## @dw_mci_exynos_config_hs400
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	_DW_MCI_TYPE_EXYNOS5420@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_3
## %bb.1:
	movq	_MMC_TIMING_MMC_HS400@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_9
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_3:
	movq	8(%rax), %r15
	movq	16(%rax), %r14
	movq	_MMC_TIMING_MMC_HS400@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	_DATA_STROBE_EN@GOTPCREL(%rip), %rcx
	orq	(%rcx), %r15
	movl	24(%rax), %esi
	movq	%r14, %rdi
	callq	_DQS_CTRL_RD_DELAY
	movq	%rax, %r14
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MMC_TIMING_UHS_SDR104@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_7
## %bb.6:
	andl	$-256, %r15d
	jmp	LBB0_8
LBB0_7:
	movq	_DATA_STROBE_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %r15
LBB0_8:
	movq	_HS400_DQS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_mci_writel
	movq	_HS400_DLINE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mci_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_MCI_TYPE_EXYNOS5420,8,3     ## @DW_MCI_TYPE_EXYNOS5420
	.comm	_MMC_TIMING_MMC_HS400,8,3       ## @MMC_TIMING_MMC_HS400
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot configure HS400, unsupported chipset\n"

	.comm	_DATA_STROBE_EN,8,3             ## @DATA_STROBE_EN
	.comm	_MMC_TIMING_UHS_SDR104,8,3      ## @MMC_TIMING_UHS_SDR104
	.comm	_HS400_DQS_EN,4,2               ## @HS400_DQS_EN
	.comm	_HS400_DLINE_CTRL,4,2           ## @HS400_DLINE_CTRL
	.no_dead_strip	_dw_mci_exynos_config_hs400
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_exynos_config_hs400
_dw_mci_exynos_config_hs400:            ; @dw_mci_exynos_config_hs400
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _DW_MCI_TYPE_EXYNOS5420@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DW_MCI_TYPE_EXYNOS5420@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _MMC_TIMING_MMC_HS400@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_TIMING_MMC_HS400@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_warn
LBB0_3:
	ldp	x9, x20, [x8, #8]
Lloh8:
	adrp	x10, _MMC_TIMING_MMC_HS400@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MMC_TIMING_MMC_HS400@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x10, x1
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x10, _DATA_STROBE_EN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DATA_STROBE_EN@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	orr	x21, x10, x9
	ldr	w1, [x8, #24]
	mov	x0, x20
	bl	_DQS_CTRL_RD_DELAY
	mov	x20, x0
	b	LBB0_9
LBB0_5:
	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
	ret
LBB0_6:
Lloh14:
	adrp	x8, _MMC_TIMING_UHS_SDR104@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MMC_TIMING_UHS_SDR104@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_8
; %bb.7:
	and	x21, x9, #0xffffff00
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _DATA_STROBE_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DATA_STROBE_EN@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	bic	x21, x9, x8
LBB0_9:
Lloh20:
	adrp	x8, _HS400_DQS_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HS400_DQS_EN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_mci_writel
Lloh23:
	adrp	x8, _HS400_DLINE_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HS400_DLINE_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	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	_mci_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_MCI_TYPE_EXYNOS5420,8,3     ; @DW_MCI_TYPE_EXYNOS5420
	.comm	_MMC_TIMING_MMC_HS400,8,3       ; @MMC_TIMING_MMC_HS400
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot configure HS400, unsupported chipset\n"

	.comm	_DATA_STROBE_EN,8,3             ; @DATA_STROBE_EN
	.comm	_MMC_TIMING_UHS_SDR104,8,3      ; @MMC_TIMING_UHS_SDR104
	.comm	_HS400_DQS_EN,4,2               ; @HS400_DQS_EN
	.comm	_HS400_DLINE_CTRL,4,2           ; @HS400_DLINE_CTRL
	.no_dead_strip	_dw_mci_exynos_config_hs400
.subsections_via_symbols
