	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_enable_4bit_bus
_sdio_enable_4bit_bus:                  ## @sdio_enable_4bit_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_MMC_TYPE_SDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.6:
	movq	%r14, %rdi
	callq	_sdio_enable_wide
	testl	%eax, %eax
	jle	LBB0_7
LBB0_8:
	movq	8(%r14), %rdi
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmc_set_bus_width
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	8(%r14), %rax
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.2:
	movq	_SD_SCR_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_9
## %bb.3:
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mmc_app_set_bus_width
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_sdio_enable_wide
	testl	%eax, %eax
	jg	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	movq	_MMC_BUS_WIDTH_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mmc_app_set_bus_width
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_TYPE_SDIO,8,3              ## @MMC_TYPE_SDIO
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_SD_SCR_BUS_WIDTH_4,4,2         ## @SD_SCR_BUS_WIDTH_4
	.comm	_MMC_BUS_WIDTH_4,4,2            ## @MMC_BUS_WIDTH_4
	.comm	_MMC_BUS_WIDTH_1,4,2            ## @MMC_BUS_WIDTH_1
	.no_dead_strip	_sdio_enable_4bit_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_enable_4bit_bus
_sdio_enable_4bit_bus:                  ; @sdio_enable_4bit_bus
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MMC_TYPE_SDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_TYPE_SDIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_sdio_enable_wide
	cmp	w0, #1
	b.lt	LBB0_9
LBB0_2:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mmc_set_bus_width
	b	LBB0_8
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	ldr	w8, [x19, #16]
Lloh9:
	adrp	x9, _SD_SCR_BUS_WIDTH_4@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SD_SCR_BUS_WIDTH_4@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
Lloh12:
	adrp	x8, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmc_app_set_bus_width
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_sdio_enable_wide
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.7:
	mov	x20, x0
Lloh15:
	adrp	x8, _MMC_BUS_WIDTH_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMC_BUS_WIDTH_1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmc_app_set_bus_width
	b	LBB0_10
LBB0_8:
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_TYPE_SDIO,8,3              ; @MMC_TYPE_SDIO
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_SD_SCR_BUS_WIDTH_4,4,2         ; @SD_SCR_BUS_WIDTH_4
	.comm	_MMC_BUS_WIDTH_4,4,2            ; @MMC_BUS_WIDTH_4
	.comm	_MMC_BUS_WIDTH_1,4,2            ; @MMC_BUS_WIDTH_1
	.no_dead_strip	_sdio_enable_4bit_bus
.subsections_via_symbols
