	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_set_ios
_tmio_mmc_set_ios:                      ## @tmio_mmc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_mmc_priv
	movq	%rax, %r14
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_tmio_mmc_set_clock
LBB0_2:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.5:
	movq	_CNF_PWR_CTL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_sd_config_write8
	movq	%r14, %rdi
	callq	_tmio_mmc_clk_stop
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_tmio_mmc_clk_start
	jmp	LBB0_8
LBB0_6:
	movq	_CNF_PWR_CTL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_sd_config_write8
LBB0_8:
	movl	4(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_9
## %bb.10:
	cmpl	$131, %eax
	jne	LBB0_13
## %bb.11:
	movl	$224, %edx
	jmp	LBB0_12
LBB0_9:
	movl	$32992, %edx                    ## imm = 0x80E0
LBB0_12:
	movq	_CTL_SD_MEM_CARD_OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sd_ctrl_write16
LBB0_13:
	movl	$140, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CNF_PWR_CTL_2,4,2              ## @CNF_PWR_CTL_2
	.comm	_CTL_SD_MEM_CARD_OPT,4,2        ## @CTL_SD_MEM_CARD_OPT
	.no_dead_strip	_tmio_mmc_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmio_mmc_set_ios
_tmio_mmc_set_ios:                      ; @tmio_mmc_set_ios
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_mmc_priv
	mov	x19, x0
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tmio_mmc_set_clock
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _CNF_PWR_CTL_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNF_PWR_CTL_2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_sd_config_write8
	mov	x0, x19
	bl	_tmio_mmc_clk_stop
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_tmio_mmc_clk_start
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _CNF_PWR_CTL_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CNF_PWR_CTL_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	_sd_config_write8
LBB0_8:
	ldr	w8, [x20, #4]
	cmp	w8, #132
	b.eq	LBB0_11
; %bb.9:
	cmp	w8, #131
	b.ne	LBB0_13
; %bb.10:
	mov	w2, #224
	b	LBB0_12
LBB0_11:
	mov	w2, #32992
LBB0_12:
Lloh6:
	adrp	x8, _CTL_SD_MEM_CARD_OPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTL_SD_MEM_CARD_OPT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sd_ctrl_write16
LBB0_13:
	mov	w0, #140
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CNF_PWR_CTL_2,4,2              ; @CNF_PWR_CTL_2
	.comm	_CTL_SD_MEM_CARD_OPT,4,2        ; @CTL_SD_MEM_CARD_OPT
	.no_dead_strip	_tmio_mmc_set_ios
.subsections_via_symbols
