	.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, %rbx
	movq	(%rdi), %rax
	movq	_MMC_TYPE_SDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdio_enable_wide               ## TAILCALL
LBB0_1:
	movq	16(%rbx), %rax
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_SD_SCR_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.3:
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmc_app_set_bus_width
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_sdio_enable_wide
	movl	%eax, %r14d
	testl	%eax, %eax
	jg	LBB0_6
## %bb.5:
	movq	_MMC_BUS_WIDTH_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmc_app_set_bus_width
LBB0_6:
	movl	%r14d, %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_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdio_enable_wide
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _SD_SCR_BUS_WIDTH_4@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SD_SCR_BUS_WIDTH_4@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmc_app_set_bus_width
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_sdio_enable_wide
	mov	x20, x0
	cmp	w0, #0
	b.gt	LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _MMC_BUS_WIDTH_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMC_BUS_WIDTH_1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmc_app_set_bus_width
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	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
	.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
