	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_exynos_move_next_clksmpl
_dw_mci_exynos_move_next_clksmpl:       ## @dw_mci_exynos_move_next_clksmpl
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	(%r15), %rax
	movq	_DW_MCI_TYPE_EXYNOS7@GOTPCREL(%rip), %rdx
	movq	_DW_MCI_TYPE_EXYNOS7_SMU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_CLKSEL64@GOTPCREL(%rip), %r12
	movq	_CLKSEL@GOTPCREL(%rip), %rbx
	movq	%rbx, %rcx
	cmoveq	%r12, %rcx
	cmpq	(%rdx), %rax
	cmoveq	%r12, %rcx
	movl	(%rcx), %esi
	callq	_mci_readl
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r13d
	andl	$7, %r13d
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_SDMMC_CLKSEL_UP_SAMPLE
	movq	(%r15), %rcx
	movq	_DW_MCI_TYPE_EXYNOS7_SMU@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	cmoveq	%r12, %rbx
	movq	_DW_MCI_TYPE_EXYNOS7@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	cmoveq	%r12, %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mci_writel
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_MCI_TYPE_EXYNOS7,8,3        ## @DW_MCI_TYPE_EXYNOS7
	.comm	_DW_MCI_TYPE_EXYNOS7_SMU,8,3    ## @DW_MCI_TYPE_EXYNOS7_SMU
	.comm	_CLKSEL64,4,2                   ## @CLKSEL64
	.comm	_CLKSEL,4,2                     ## @CLKSEL
	.no_dead_strip	_dw_mci_exynos_move_next_clksmpl
.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_move_next_clksmpl
_dw_mci_exynos_move_next_clksmpl:       ; @dw_mci_exynos_move_next_clksmpl
	.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	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _DW_MCI_TYPE_EXYNOS7@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DW_MCI_TYPE_EXYNOS7@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x23, _DW_MCI_TYPE_EXYNOS7_SMU@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DW_MCI_TYPE_EXYNOS7_SMU@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh4:
	adrp	x24, _CLKSEL64@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CLKSEL64@GOTPAGEOFF]
Lloh6:
	adrp	x25, _CLKSEL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CLKSEL@GOTPAGEOFF]
	csel	x8, x24, x25, eq
	ldr	w1, [x8]
	bl	_mci_readl
	add	w8, w0, #1
	and	w20, w8, #0x7
	mov	x1, x20
	bl	_SDMMC_CLKSEL_UP_SAMPLE
	mov	x2, x0
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x10, [x23]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	csel	x8, x24, x25, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mci_writel
	mov	x0, x20
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_MCI_TYPE_EXYNOS7,8,3        ; @DW_MCI_TYPE_EXYNOS7
	.comm	_DW_MCI_TYPE_EXYNOS7_SMU,8,3    ; @DW_MCI_TYPE_EXYNOS7_SMU
	.comm	_CLKSEL64,4,2                   ; @CLKSEL64
	.comm	_CLKSEL,4,2                     ; @CLKSEL
	.no_dead_strip	_dw_mci_exynos_move_next_clksmpl
.subsections_via_symbols
