	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_enable_func               ## -- Begin function sdio_enable_func
	.p2align	4, 0x90
_sdio_enable_func:                      ## @sdio_enable_func
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, 4(%r15)
	sete	%dil
	callq	_BUG_ON
	movq	%r15, %rdi
	callq	_sdio_func_id
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movl	4(%r15), %edi
	movq	_SDIO_CCCR_IOEx@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-41(%rbp), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mmc_io_rw_direct
	leaq	L_.str.2(%rip), %r14
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movb	(%r15), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orb	-41(%rbp), %al
	movb	%al, -41(%rbp)
	movl	4(%r15), %edi
	movl	(%r12), %ecx
	movzbl	%al, %r8d
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movl	%eax, %ebx
LBB0_4:
	movq	%r15, %rdi
	callq	_sdio_func_id
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%r15), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	leaq	-41(%rbp), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movq	_SDIO_CCCR_IORx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-41(%rbp), %eax
	movl	(%r15), %ecx
	btl	%ecx, %eax
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_ETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	negl	%ebx
	jmp	LBB0_4
LBB0_11:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDIO: Enabling device %s...\n"

	.comm	_SDIO_CCCR_IOEx,4,2             ## @SDIO_CCCR_IOEx
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SDIO_CCCR_IORx,4,2             ## @SDIO_CCCR_IORx
	.comm	_ETIME,4,2                      ## @ETIME
L_.str.1:                               ## @.str.1
	.asciz	"SDIO: Enabled device %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"SDIO: Failed to enable device %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdio_enable_func               ; -- Begin function sdio_enable_func
	.p2align	2
_sdio_enable_func:                      ; @sdio_enable_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_sdio_func_id
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x20, _SDIO_CCCR_IOEx@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SDIO_CCCR_IOEx@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x5, sp, #15
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w8, #1
	ldp	w9, w0, [x19]
	lsl	w8, w8, w9
	ldrb	w9, [sp, #15]
	orr	w8, w9, w8
	strb	w8, [sp, #15]
	ldr	w3, [x20]
	and	w4, w8, #0xff
	mov	w1, #1
	mov	w2, #0
	mov	x5, #0
	bl	_mmc_io_rw_direct
	cbz	w0, LBB0_5
LBB0_2:
	mov	x21, x0
LBB0_3:
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_sdio_func_id
	mov	x1, x0
	mov	x0, x20
	bl	_pr_debug
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
Lloh6:
	adrp	x23, _jiffies@GOTPAGE
Lloh7:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x20, [x23]
	ldr	w0, [x19, #8]
	bl	_msecs_to_jiffies
	add	x22, x0, x20
Lloh8:
	adrp	x25, _SDIO_CCCR_IORx@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SDIO_CCCR_IORx@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.2@PAGE
Lloh11:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh12:
	adrp	x24, l_.str.1@PAGE
Lloh13:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh14:
	adrp	x26, _ETIME@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ETIME@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	w3, [x25]
	add	x5, sp, #15
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [sp, #15]
	ldr	w9, [x19]
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w21, [x26]
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_after
	cbz	x0, LBB0_6
; %bb.9:
	neg	w21, w21
	b	LBB0_3
LBB0_10:
	mov	x21, x0
	b	LBB0_4
LBB0_11:
	mov	w21, #0
	mov	x20, x24
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDIO: Enabling device %s...\n"

	.comm	_SDIO_CCCR_IOEx,4,2             ; @SDIO_CCCR_IOEx
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SDIO_CCCR_IORx,4,2             ; @SDIO_CCCR_IORx
	.comm	_ETIME,4,2                      ; @ETIME
l_.str.1:                               ; @.str.1
	.asciz	"SDIO: Enabled device %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"SDIO: Failed to enable device %s\n"

.subsections_via_symbols
