	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_reset
_mmc_test_reset:                        ## @mmc_test_reset
	.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	(%rdi), %rbx
	movq	8(%rbx), %rdi
	callq	_mmc_hw_reset
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_RESULT_UNSUP_HOST@GOTPCREL(%rip), %r14
	jmp	LBB0_6
LBB0_1:
	movq	_RESULT_OK@GOTPCREL(%rip), %r14
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_mmc_cmdq_disable
	jmp	LBB0_6
LBB0_4:
	movq	_RESULT_FAIL@GOTPCREL(%rip), %r14
LBB0_6:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESULT_OK,4,2                  ## @RESULT_OK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_RESULT_UNSUP_HOST,4,2          ## @RESULT_UNSUP_HOST
	.comm	_RESULT_FAIL,4,2                ## @RESULT_FAIL
	.no_dead_strip	_mmc_test_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_test_reset
_mmc_test_reset:                        ; @mmc_test_reset
	.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
	ldr	x19, [x0]
	ldr	x0, [x19, #8]
	bl	_mmc_hw_reset
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RESULT_FAIL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RESULT_FAIL@GOTPAGEOFF]
Lloh5:
	adrp	x10, _RESULT_UNSUP_HOST@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RESULT_UNSUP_HOST@GOTPAGEOFF]
	cmn	w0, w8
	csel	x8, x10, x9, eq
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mmc_cmdq_disable
LBB0_4:
Lloh7:
	adrp	x8, _RESULT_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RESULT_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RESULT_OK,4,2                  ; @RESULT_OK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_RESULT_UNSUP_HOST,4,2          ; @RESULT_UNSUP_HOST
	.comm	_RESULT_FAIL,4,2                ; @RESULT_FAIL
	.no_dead_strip	_mmc_test_reset
.subsections_via_symbols
