	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cvm_mmc_reset_bus
_cvm_mmc_reset_bus:                     ## @cvm_mmc_reset_bus
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_MIO_EMM_SWITCH
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readq
	movq	_MIO_EMM_SWITCH_EXE@GOTPCREL(%rip), %rcx
	movq	_MIO_EMM_SWITCH_ERR0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MIO_EMM_SWITCH_ERR1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_MIO_EMM_SWITCH_ERR2@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, -36(%rbp)
	movl	16(%r15), %esi
	leaq	-36(%rbp), %rdi
	callq	_set_bus_id
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_MIO_EMM_WDOG
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readq
	movl	%eax, %r12d
	movq	8(%r15), %rdi
	movl	-36(%rbp), %esi
	callq	_do_switch
	movl	-36(%rbp), %eax
	movl	%eax, (%r15)
	movl	$20, %edi
	callq	_msleep
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_MIO_EMM_WDOG
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_writeq
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIO_EMM_SWITCH_EXE,4,2         ## @MIO_EMM_SWITCH_EXE
	.comm	_MIO_EMM_SWITCH_ERR0,4,2        ## @MIO_EMM_SWITCH_ERR0
	.comm	_MIO_EMM_SWITCH_ERR1,4,2        ## @MIO_EMM_SWITCH_ERR1
	.comm	_MIO_EMM_SWITCH_ERR2,4,2        ## @MIO_EMM_SWITCH_ERR2
	.no_dead_strip	_cvm_mmc_reset_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cvm_mmc_reset_bus
_cvm_mmc_reset_bus:                     ; @cvm_mmc_reset_bus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x21, [x19]
	mov	x0, x19
	bl	_MIO_EMM_SWITCH
	add	x0, x0, x21
	bl	_readq
Lloh0:
	adrp	x8, _MIO_EMM_SWITCH_EXE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIO_EMM_SWITCH_EXE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MIO_EMM_SWITCH_ERR0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MIO_EMM_SWITCH_ERR0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MIO_EMM_SWITCH_ERR1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIO_EMM_SWITCH_ERR1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MIO_EMM_SWITCH_ERR2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MIO_EMM_SWITCH_ERR2@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
	bic	w8, w0, w8
	str	w8, [sp, #12]
	ldr	w1, [x20, #16]
	add	x0, sp, #12
	bl	_set_bus_id
	ldr	x8, [x20, #8]
	ldr	x21, [x8]
	mov	x0, x19
	bl	_MIO_EMM_WDOG
	add	x0, x0, x21
	bl	_readq
	mov	x21, x0
	ldr	x0, [x20, #8]
	ldr	w1, [sp, #12]
	bl	_do_switch
	ldr	w8, [sp, #12]
	str	w8, [x20]
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x20, #8]
	ldr	x20, [x8]
	mov	x0, x19
	bl	_MIO_EMM_WDOG
	add	x1, x0, x20
	mov	x0, x21
	bl	_writeq
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIO_EMM_SWITCH_EXE,4,2         ; @MIO_EMM_SWITCH_EXE
	.comm	_MIO_EMM_SWITCH_ERR0,4,2        ; @MIO_EMM_SWITCH_ERR0
	.comm	_MIO_EMM_SWITCH_ERR1,4,2        ; @MIO_EMM_SWITCH_ERR1
	.comm	_MIO_EMM_SWITCH_ERR2,4,2        ; @MIO_EMM_SWITCH_ERR2
	.no_dead_strip	_cvm_mmc_reset_bus
.subsections_via_symbols
