	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb710_mmc_set_ios
_cb710_mmc_set_ios:                     ## @cb710_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	%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, %r14
	movq	%rdi, %rbx
	callq	_cb710_mmc_to_slot
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_mmc_priv
	movq	%rax, %r15
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_cb710_mmc_set_clock
	movq	%r13, %rdi
	callq	_cb710_mmc_is_card_inserted
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	callq	_cb710_slot_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movl	$130, (%r14)
	movl	$130, %eax
LBB0_3:
	movslq	%eax, %rcx
	cmpq	%rcx, (%r15)
	je	LBB0_11
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.6:
	movq	%r13, %rdi
	callq	_cb710_mmc_powerup
	movl	$129, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_cb710_slot_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_dev_warn
	movq	%r13, %rdi
	callq	_cb710_mmc_powerdown
	movl	$1, %edi
	callq	_udelay
	movq	%r13, %rdi
	callq	_cb710_mmc_powerup
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_cb710_slot_dev
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_dev_warn
	jmp	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	callq	_cb710_mmc_powerdown
	movl	$130, %ebx
LBB0_10:
	movq	%rbx, (%r15)
LBB0_11:
	movq	8(%r14), %rax
	movq	_MMC_BUS_WIDTH_1@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	setne	%sil
	movq	%r13, %rdi
	callq	_cb710_mmc_enable_4bit_data
	movq	_CB710_MMC_IE_TEST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cb710_mmc_enable_irq           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no card inserted - ignoring bus powerup request\n"

L_.str.1:                               ## @.str.1
	.asciz	"powerup failed (%d)- retrying\n"

L_.str.2:                               ## @.str.2
	.asciz	"powerup retry failed (%d) - expect errors\n"

	.comm	_MMC_BUS_WIDTH_1,8,3            ## @MMC_BUS_WIDTH_1
	.comm	_CB710_MMC_IE_TEST_MASK,4,2     ## @CB710_MMC_IE_TEST_MASK
	.no_dead_strip	_cb710_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 cb710_mmc_set_ios
_cb710_mmc_set_ios:                     ; @cb710_mmc_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	x20, x1
	mov	x22, x0
	bl	_cb710_mmc_to_slot
	mov	x19, x0
	mov	x0, x22
	bl	_mmc_priv
	mov	x21, x0
	ldr	w1, [x20, #16]
	mov	x0, x22
	bl	_cb710_mmc_set_clock
	mov	x0, x19
	bl	_cb710_mmc_is_card_inserted
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_cb710_slot_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w8, #130
	str	w8, [x20]
LBB0_3:
	ldr	x9, [x21]
	cmp	x9, w8, sxtw
	b.eq	LBB0_12
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_cb710_mmc_powerup
	cbz	w0, LBB0_9
; %bb.7:
	mov	x22, x0
	mov	x0, x19
	bl	_cb710_slot_dev
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
	mov	x0, x19
	bl	_cb710_mmc_powerdown
	mov	w0, #1
	bl	_udelay
	mov	x0, x19
	bl	_cb710_mmc_powerup
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
	mov	x0, x19
	bl	_cb710_slot_dev
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
LBB0_9:
	mov	w8, #129
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_cb710_mmc_powerdown
	mov	w8, #130
LBB0_11:
	str	x8, [x21]
LBB0_12:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _MMC_BUS_WIDTH_1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_BUS_WIDTH_1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, ne
	mov	x0, x19
	bl	_cb710_mmc_enable_4bit_data
Lloh9:
	adrp	x8, _CB710_MMC_IE_TEST_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CB710_MMC_IE_TEST_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	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	_cb710_mmc_enable_irq
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no card inserted - ignoring bus powerup request\n"

l_.str.1:                               ; @.str.1
	.asciz	"powerup failed (%d)- retrying\n"

l_.str.2:                               ; @.str.2
	.asciz	"powerup retry failed (%d) - expect errors\n"

	.comm	_MMC_BUS_WIDTH_1,8,3            ; @MMC_BUS_WIDTH_1
	.comm	_CB710_MMC_IE_TEST_MASK,4,2     ; @CB710_MMC_IE_TEST_MASK
	.no_dead_strip	_cb710_mmc_set_ios
.subsections_via_symbols
