	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdio_enable_wide
_sdio_enable_wide:                      ## @sdio_enable_wide
	.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
	movq	(%rdi), %rcx
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.2:
	cmpl	$0, 8(%rbx)
	je	LBB0_7
LBB0_3:
	movq	_SDIO_CCCR_IF@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	-28(%rbp), %r9
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	-28(%rbp), %eax
	movq	_SDIO_BUS_WIDTH_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movl	%r8d, %ecx
	andl	%eax, %ecx
	movq	_SDIO_BUS_WIDTH_RESERVED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	callq	_mmc_hostname
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	movl	(%r15), %r8d
	movl	-28(%rbp), %eax
LBB0_6:
	notl	%r8d
	andl	%eax, %r8d
	movq	_SDIO_BUS_WIDTH_4BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	%r8d, -28(%rbp)
	movl	(%r14), %ecx
	movl	$1, %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	cmovel	%r14d, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_SDIO_CCCR_IF,4,2               ## @SDIO_CCCR_IF
	.comm	_SDIO_BUS_WIDTH_MASK,4,2        ## @SDIO_BUS_WIDTH_MASK
	.comm	_SDIO_BUS_WIDTH_RESERVED,4,2    ## @SDIO_BUS_WIDTH_RESERVED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: SDIO_CCCR_IF is invalid: 0x%02x\n"

	.comm	_SDIO_BUS_WIDTH_4BIT,4,2        ## @SDIO_BUS_WIDTH_4BIT
	.no_dead_strip	_sdio_enable_wide
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdio_enable_wide
_sdio_enable_wide:                      ; @sdio_enable_wide
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_7
LBB0_3:
Lloh3:
	adrp	x20, _SDIO_CCCR_IF@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SDIO_CCCR_IF@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x5, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x21, _SDIO_BUS_WIDTH_MASK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SDIO_BUS_WIDTH_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w10, w9, w8
Lloh7:
	adrp	x11, _SDIO_BUS_WIDTH_RESERVED@GOTPAGE
Lloh8:
	ldr	x11, [x11, _SDIO_BUS_WIDTH_RESERVED@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x19]
	bl	_mmc_hostname
	mov	x1, x0
	ldr	w2, [sp, #12]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	ldr	w9, [x21]
	ldr	w8, [sp, #12]
LBB0_6:
	bic	w8, w8, w9
Lloh12:
	adrp	x9, _SDIO_BUS_WIDTH_4BIT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDIO_BUS_WIDTH_4BIT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w4, w9, w8
	str	w4, [sp, #12]
	ldr	w3, [x20]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	x5, #0
	bl	_mmc_io_rw_direct
	cmp	w0, #0
	csinc	w0, w0, wzr, ne
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_SDIO_CCCR_IF,4,2               ; @SDIO_CCCR_IF
	.comm	_SDIO_BUS_WIDTH_MASK,4,2        ; @SDIO_BUS_WIDTH_MASK
	.comm	_SDIO_BUS_WIDTH_RESERVED,4,2    ; @SDIO_BUS_WIDTH_RESERVED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: SDIO_CCCR_IF is invalid: 0x%02x\n"

	.comm	_SDIO_BUS_WIDTH_4BIT,4,2        ; @SDIO_BUS_WIDTH_4BIT
	.no_dead_strip	_sdio_enable_wide
.subsections_via_symbols
