	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxcmci_set_ios
_mxcmci_set_ios:                        ## @mxcmci_set_ios
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	(%r14), %rcx
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rdx
	movq	_CMD_DAT_CONT_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	orl	%eax, 24(%rbx)
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	%eax, 24(%rbx)
LBB0_3:
	movq	8(%r14), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_9
## %bb.4:
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	(%rcx), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_mmc_dev
	movl	20(%r14), %esi
	movl	%eax, %edi
	callq	*%r12
	movq	8(%r14), %rax
LBB0_7:
	movq	%rax, (%rbx)
	movq	_MMC_POWER_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_CMD_DAT_CONT_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_9:
	movl	16(%r14), %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_mxcmci_set_clk_rate
	movq	_STR_STP_CLK_START_CLK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_STR_STP_CLK_STOP_CLK@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edi
	movq	_MMC_REG_STR_STP_CLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writew
	movl	16(%r14), %eax
	movl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_BUS_WIDTH_4,8,3            ## @MMC_BUS_WIDTH_4
	.comm	_CMD_DAT_CONT_BUS_WIDTH_4,4,2   ## @CMD_DAT_CONT_BUS_WIDTH_4
	.comm	_MMC_POWER_ON,8,3               ## @MMC_POWER_ON
	.comm	_CMD_DAT_CONT_INIT,4,2          ## @CMD_DAT_CONT_INIT
	.comm	_STR_STP_CLK_START_CLK,4,2      ## @STR_STP_CLK_START_CLK
	.comm	_MMC_REG_STR_STP_CLK,8,3        ## @MMC_REG_STR_STP_CLK
	.comm	_STR_STP_CLK_STOP_CLK,4,2       ## @STR_STP_CLK_STOP_CLK
	.no_dead_strip	_mxcmci_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxcmci_set_ios
_mxcmci_set_ios:                        ; @mxcmci_set_ios
	.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, x1
	mov	x21, x0
	bl	_mmc_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _CMD_DAT_CONT_BUS_WIDTH_4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_DAT_CONT_BUS_WIDTH_4@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [x20, #24]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x20, #24]
	ldr	x9, [x20]
	ldr	x8, [x19, #8]
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.4:
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_7
; %bb.5:
	ldr	x22, [x9]
	cbz	x22, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_mmc_dev
	ldr	w1, [x19, #20]
	blr	x22
	ldr	x8, [x19, #8]
LBB0_7:
	str	x8, [x20]
Lloh6:
	adrp	x9, _MMC_POWER_ON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_POWER_ON@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _CMD_DAT_CONT_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_DAT_CONT_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
LBB0_9:
	ldr	w1, [x19, #16]
	cbz	w1, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_mxcmci_set_clk_rate
Lloh12:
	adrp	x8, _STR_STP_CLK_START_CLK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STR_STP_CLK_START_CLK@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _STR_STP_CLK_STOP_CLK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STR_STP_CLK_STOP_CLK@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
Lloh16:
	adrp	x9, _MMC_REG_STR_STP_CLK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MMC_REG_STR_STP_CLK@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	ldr	w8, [x19, #16]
	str	w8, [x20, #8]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_BUS_WIDTH_4,8,3            ; @MMC_BUS_WIDTH_4
	.comm	_CMD_DAT_CONT_BUS_WIDTH_4,4,2   ; @CMD_DAT_CONT_BUS_WIDTH_4
	.comm	_MMC_POWER_ON,8,3               ; @MMC_POWER_ON
	.comm	_CMD_DAT_CONT_INIT,4,2          ; @CMD_DAT_CONT_INIT
	.comm	_STR_STP_CLK_START_CLK,4,2      ; @STR_STP_CLK_START_CLK
	.comm	_MMC_REG_STR_STP_CLK,8,3        ; @MMC_REG_STR_STP_CLK
	.comm	_STR_STP_CLK_STOP_CLK,4,2       ; @STR_STP_CLK_STOP_CLK
	.no_dead_strip	_mxcmci_set_ios
.subsections_via_symbols
