	.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, %r13
	movq	%rdi, %rbx
	callq	_cb710_mmc_to_slot
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mmc_priv
	movq	%rax, %r15
	movl	16(%r13), %esi
	movq	%rbx, %rdi
	callq	_cb710_mmc_select_clock_divider
	movq	(%r13), %rbx
	cmpq	(%r15), %rbx
	je	LBB0_8
## %bb.1:
	cmpq	$130, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	$129, %rbx
	jne	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_cb710_mmc_powerup
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_cb710_slot_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_dev_warn
	movq	%r14, %rdi
	callq	_cb710_mmc_powerdown
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	_cb710_mmc_powerup
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_cb710_slot_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_dev_warn
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_cb710_mmc_powerdown
LBB0_7:
	movq	%rbx, (%r15)
LBB0_8:
	movq	8(%r13), %rax
	movq	_MMC_BUS_WIDTH_1@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	setne	%sil
	movq	%r14, %rdi
	callq	_cb710_mmc_enable_4bit_data
	movq	_CB710_MMC_IE_TEST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %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	"powerup failed (%d)- retrying\n"

L_.str.1:                               ## @.str.1
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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_select_clock_divider
	ldr	x23, [x20]
	ldr	x8, [x21]
	cmp	x23, x8
	b.eq	LBB0_8
; %bb.1:
	cmp	x23, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	x23, #129
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_cb710_mmc_powerup
	cbz	w0, LBB0_7
; %bb.4:
	mov	x22, x0
	mov	x0, x19
	bl	_cb710_slot_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@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_7
; %bb.5:
	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
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_cb710_mmc_powerdown
LBB0_7:
	str	x23, [x21]
LBB0_8:
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x9, _MMC_BUS_WIDTH_1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MMC_BUS_WIDTH_1@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, ne
	mov	x0, x19
	bl	_cb710_mmc_enable_4bit_data
Lloh7:
	adrp	x8, _CB710_MMC_IE_TEST_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CB710_MMC_IE_TEST_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cb710_mmc_enable_irq
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"powerup failed (%d)- retrying\n"

l_.str.1:                               ; @.str.1
	.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
