	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	callq	_sdio_func_id
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movl	4(%r14), %edi
	movq	_SDIO_CCCR_IOEx@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-41(%rbp), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mmc_io_rw_direct
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movb	(%r14), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orb	-41(%rbp), %al
	movb	%al, -41(%rbp)
	movl	4(%r14), %edi
	movl	(%r15), %ecx
	movzbl	%al, %r8d
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_mmc_io_rw_direct
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_10:
	movq	%r14, %rdi
	callq	_sdio_func_id
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%r14), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%rbx, %r15
	movq	_SDIO_CCCR_IORx@GOTPCREL(%rip), %r13
	leaq	-41(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movl	(%r13), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_mmc_io_rw_direct
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	-41(%rbp), %eax
	movl	(%r14), %ecx
	btl	%ecx, %eax
	jb	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	negl	%ebx
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_12:
	movq	%r14, %rdi
	callq	_sdio_func_id
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	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
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.2:
	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
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_sdio_func_id
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh9:
	adrp	x22, _jiffies@GOTPAGE
Lloh10:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x20, [x22]
	ldr	w0, [x19, #8]
	bl	_msecs_to_jiffies
	add	x20, x0, x20
Lloh11:
	adrp	x23, _SDIO_CCCR_IORx@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SDIO_CCCR_IORx@GOTPAGEOFF]
Lloh13:
	adrp	x24, _ETIME@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ETIME@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	w3, [x23]
	add	x5, sp, #15
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_mmc_io_rw_direct
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [sp, #15]
	ldr	w9, [x19]
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w21, [x24]
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_after
	cbz	x0, LBB0_7
; %bb.10:
	neg	w21, w21
	b	LBB0_3
LBB0_11:
	mov	x21, x0
	b	LBB0_3
LBB0_12:
	mov	x0, x19
	bl	_sdio_func_id
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w21, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
