	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_app_set_bus_width          ## -- Begin function mmc_app_set_bus_width
	.p2align	4, 0x90
_mmc_app_set_bus_width:                 ## @mmc_app_set_bus_width
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	%rdi, %rax
	movl	$0, -12(%rbp)
	movq	_SD_APP_SET_BUS_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -8(%rbp)
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rcx
	movq	_MMC_CMD_AC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, -16(%rbp)
	cmpl	$129, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %esi
	jne	LBB0_6
## %bb.3:
	movq	_SD_BUS_WIDTH_4@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_SD_BUS_WIDTH_1@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, -12(%rbp)
	movl	(%rax), %edi
	leaq	-16(%rbp), %rdx
	movq	%rax, %rsi
	callq	_mmc_wait_for_app_cmd
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_APP_SET_BUS_WIDTH,4,2       ## @SD_APP_SET_BUS_WIDTH
	.comm	_MMC_RSP_R1,4,2                 ## @MMC_RSP_R1
	.comm	_MMC_CMD_AC,4,2                 ## @MMC_CMD_AC
	.comm	_SD_BUS_WIDTH_1,4,2             ## @SD_BUS_WIDTH_1
	.comm	_SD_BUS_WIDTH_4,4,2             ## @SD_BUS_WIDTH_4
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_app_set_bus_width          ; -- Begin function mmc_app_set_bus_width
	.p2align	2
_mmc_app_set_bus_width:                 ; @mmc_app_set_bus_width
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x8, x0
Lloh0:
	adrp	x9, _SD_APP_SET_BUS_WIDTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SD_APP_SET_BUS_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #8]
Lloh3:
	adrp	x9, _MMC_RSP_R1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_RSP_R1@GOTPAGEOFF]
Lloh5:
	adrp	x10, _MMC_CMD_AC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MMC_CMD_AC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, wzr, [sp]
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.2:
Lloh9:
	adrp	x9, _SD_BUS_WIDTH_4@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SD_BUS_WIDTH_4@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x9, _SD_BUS_WIDTH_1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SD_BUS_WIDTH_1@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	str	w9, [sp, #4]
	ldr	w0, [x8]
	mov	x2, sp
	mov	x1, x8
	bl	_mmc_wait_for_app_cmd
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_APP_SET_BUS_WIDTH,4,2       ; @SD_APP_SET_BUS_WIDTH
	.comm	_MMC_RSP_R1,4,2                 ; @MMC_RSP_R1
	.comm	_MMC_CMD_AC,4,2                 ; @MMC_CMD_AC
	.comm	_SD_BUS_WIDTH_1,4,2             ; @SD_BUS_WIDTH_1
	.comm	_SD_BUS_WIDTH_4,4,2             ; @SD_BUS_WIDTH_4
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
