	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_omap_set_ios
_mmc_omap_set_ios:                      ## @mmc_omap_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	%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	%rsi, %r12
	movq	%rdi, %rbx
	callq	_mmc_priv
	movq	%rax, %r15
	movq	32(%rax), %r13
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_mmc_omap_select_slot
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mmc_omap_calc_divisor
	movl	%eax, %r14d
	movq	(%r12), %rdx
	cmpq	(%r15), %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, (%r15)
LBB0_2:
	movl	8(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.5:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mmc_omap_set_power
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mmc_omap_set_power
	movl	8(%r12), %eax
	movl	%eax, 8(%r15)
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_7:
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_mmc_omap_fclk_enable
	orl	$2048, %r14d                    ## imm = 0x800
	cmpl	$129, 8(%r15)
	sete	-41(%rbp)                       ## 1-byte Folded Spill
LBB0_8:
	movl	8(%r12), %eax
	movl	%eax, 8(%r15)
	movl	12(%r12), %eax
	cmpl	%eax, 16(%r15)
	je	LBB0_12
## %bb.9:
	movq	24(%r15), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	callq	_mmc_dev
	movl	20(%r15), %esi
	movl	12(%r12), %edx
	movl	%eax, %edi
	callq	*%rbx
	movl	12(%r12), %eax
LBB0_11:
	movl	%eax, 16(%r15)
LBB0_12:
	movq	_CON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_OMAP_MMC_WRITE
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_OMAP_MMC_WRITE
	movl	%r14d, 12(%r15)
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_17
## %bb.13:
	movq	_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_OMAP_MMC_WRITE
	movq	_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_OMAP_MMC_WRITE
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$128, %edx
	callq	_OMAP_MMC_WRITE
	movl	$251, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_OMAP_MMC_READ
	testb	$1, %al
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_14
LBB0_16:
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_OMAP_MMC_WRITE
LBB0_17:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_18:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_omap_release_slot          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CON,4,2                        ## @CON
	.comm	_IE,4,2                         ## @IE
	.comm	_STAT,4,2                       ## @STAT
	.comm	_CMD,4,2                        ## @CMD
	.no_dead_strip	_mmc_omap_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_omap_set_ios
_mmc_omap_set_ios:                      ; @mmc_omap_set_ios
	.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	x22, x1
	mov	x24, x0
	bl	_mmc_priv
	mov	x19, x0
	ldr	x20, [x0, #32]
	mov	w1, #0
	bl	_mmc_omap_select_slot
	mov	x0, x24
	mov	x1, x22
	bl	_mmc_omap_calc_divisor
	mov	x23, x0
	ldr	x2, [x22]
	ldr	x8, [x19]
	cmp	x2, x8
	b.eq	LBB0_2
; %bb.1:
	str	x2, [x19]
LBB0_2:
	ldr	w8, [x22, #8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_mmc_omap_set_power
LBB0_6:
	mov	w21, #0
	mov	w25, #1
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_mmc_omap_set_power
	mov	w21, #0
	ldr	w8, [x22, #8]
	str	w8, [x19, #8]
	b	LBB0_18
LBB0_8:
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	bl	_mmc_omap_fclk_enable
	orr	w23, w23, #0x800
	ldr	w8, [x19, #8]
	cmp	w8, #129
	cset	w25, eq
LBB0_9:
	ldp	w9, w8, [x22, #8]
	str	w9, [x19, #8]
	ldr	w9, [x19, #16]
	cmp	w9, w8
	b.eq	LBB0_13
; %bb.10:
	ldr	x9, [x19, #24]
	ldr	x26, [x9]
	cbz	x26, LBB0_12
; %bb.11:
	mov	x0, x24
	bl	_mmc_dev
	ldr	w1, [x19, #20]
	ldr	w2, [x22, #12]
	blr	x26
	ldr	w8, [x22, #12]
LBB0_12:
	str	w8, [x19, #16]
LBB0_13:
Lloh0:
	adrp	x22, _CON@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CON@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x23
	bl	_OMAP_MMC_WRITE
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x23
	bl	_OMAP_MMC_WRITE
	str	w23, [x19, #12]
	tbnz	w25, #0, LBB0_18
; %bb.14:
Lloh2:
	adrp	x8, _IE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_OMAP_MMC_WRITE
Lloh5:
	adrp	x22, _STAT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _STAT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #65535
	bl	_OMAP_MMC_WRITE
Lloh7:
	adrp	x8, _CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #128
	bl	_OMAP_MMC_WRITE
	mov	w23, #251
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_OMAP_MMC_READ
	tbnz	w0, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w0, #1
	bl	_udelay
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_15
LBB0_17:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_OMAP_MMC_WRITE
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	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
	b	_mmc_omap_release_slot
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CON,4,2                        ; @CON
	.comm	_IE,4,2                         ; @IE
	.comm	_STAT,4,2                       ; @STAT
	.comm	_CMD,4,2                        ; @CMD
	.no_dead_strip	_mmc_omap_set_ios
.subsections_via_symbols
