	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_mmc_set_bus_width
_tmio_mmc_set_bus_width:                ## @tmio_mmc_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_CTL_SD_MEM_CARD_OPT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_sd_ctrl_read16
	movq	_CARD_OPT_WIDTH@GOTPCREL(%rip), %r8
	movq	_CARD_OPT_WIDTH8@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_MMC_BUS_WIDTH_1@GOTPCREL(%rip), %rsi
	movq	_MMC_BUS_WIDTH_8@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	cmpb	%bl, (%rdi)
	cmovel	%edx, %ecx
	cmpb	%bl, (%rsi)
	movl	(%r8), %esi
	cmovel	%esi, %ecx
	orl	%esi, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%ecx, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sd_ctrl_write16                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_SD_MEM_CARD_OPT,4,2        ## @CTL_SD_MEM_CARD_OPT
	.comm	_CARD_OPT_WIDTH,4,2             ## @CARD_OPT_WIDTH
	.comm	_CARD_OPT_WIDTH8,4,2            ## @CARD_OPT_WIDTH8
	.comm	_MMC_BUS_WIDTH_1,1,0            ## @MMC_BUS_WIDTH_1
	.comm	_MMC_BUS_WIDTH_8,1,0            ## @MMC_BUS_WIDTH_8
	.no_dead_strip	_tmio_mmc_set_bus_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmio_mmc_set_bus_width
_tmio_mmc_set_bus_width:                ; @tmio_mmc_set_bus_width
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _CTL_SD_MEM_CARD_OPT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CTL_SD_MEM_CARD_OPT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_sd_ctrl_read16
Lloh2:
	adrp	x8, _CARD_OPT_WIDTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CARD_OPT_WIDTH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CARD_OPT_WIDTH8@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CARD_OPT_WIDTH8@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MMC_BUS_WIDTH_1@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MMC_BUS_WIDTH_1@GOTPAGEOFF]
	ldrb	w10, [x10]
Lloh10:
	adrp	x11, _MMC_BUS_WIDTH_8@GOTPAGE
Lloh11:
	ldr	x11, [x11, _MMC_BUS_WIDTH_8@GOTPAGEOFF]
	ldrb	w11, [x11]
	cmp	w11, w19
	csel	w11, w9, wzr, eq
	cmp	w10, w19
	csel	w10, w8, w11, eq
	orr	w8, w9, w8
	bic	w8, w0, w8
	orr	w2, w10, w8
	ldr	w1, [x21]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sd_ctrl_write16
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_SD_MEM_CARD_OPT,4,2        ; @CTL_SD_MEM_CARD_OPT
	.comm	_CARD_OPT_WIDTH,4,2             ; @CARD_OPT_WIDTH
	.comm	_CARD_OPT_WIDTH8,4,2            ; @CARD_OPT_WIDTH8
	.comm	_MMC_BUS_WIDTH_1,1,0            ; @MMC_BUS_WIDTH_1
	.comm	_MMC_BUS_WIDTH_8,1,0            ; @MMC_BUS_WIDTH_8
	.no_dead_strip	_tmio_mmc_set_bus_width
.subsections_via_symbols
