	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_bus_test                   ## -- Begin function mmc_bus_test
	.p2align	4, 0x90
_mmc_bus_test:                          ## @mmc_bus_test
	.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	_MMC_BUS_WIDTH_8@GOTPCREL(%rip), %rax
	movl	$8, %r14d
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	$4, %r14d
	cmpq	%rsi, (%rax)
	jne	LBB0_2
LBB0_5:
	movl	(%rbx), %esi
	movq	_MMC_BUS_TEST_W@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_mmc_send_bus_test
	movl	(%rbx), %esi
	movq	_MMC_BUS_TEST_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mmc_send_bus_test              ## TAILCALL
LBB0_2:
	movq	_MMC_BUS_WIDTH_1@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%rsi, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_BUS_WIDTH_8,8,3            ## @MMC_BUS_WIDTH_8
	.comm	_MMC_BUS_WIDTH_4,8,3            ## @MMC_BUS_WIDTH_4
	.comm	_MMC_BUS_WIDTH_1,8,3            ## @MMC_BUS_WIDTH_1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMC_BUS_TEST_W,4,2             ## @MMC_BUS_TEST_W
	.comm	_MMC_BUS_TEST_R,4,2             ## @MMC_BUS_TEST_R
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_bus_test                   ; -- Begin function mmc_bus_test
	.p2align	2
_mmc_bus_test:                          ; @mmc_bus_test
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MMC_BUS_WIDTH_8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_BUS_WIDTH_8@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #8
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_5
; %bb.3:
	mov	w20, #4
LBB0_4:
	ldr	w1, [x19]
Lloh6:
	adrp	x8, _MMC_BUS_TEST_W@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMC_BUS_TEST_W@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_mmc_send_bus_test
Lloh9:
	adrp	x8, _MMC_BUS_TEST_R@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMC_BUS_TEST_R@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mmc_send_bus_test
LBB0_5:
Lloh12:
	adrp	x8, _MMC_BUS_WIDTH_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_BUS_WIDTH_1@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_BUS_WIDTH_8,8,3            ; @MMC_BUS_WIDTH_8
	.comm	_MMC_BUS_WIDTH_4,8,3            ; @MMC_BUS_WIDTH_4
	.comm	_MMC_BUS_WIDTH_1,8,3            ; @MMC_BUS_WIDTH_1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMC_BUS_TEST_W,4,2             ; @MMC_BUS_TEST_W
	.comm	_MMC_BUS_TEST_R,4,2             ; @MMC_BUS_TEST_R
.subsections_via_symbols
