	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_attach_sdio                ## -- Begin function mmc_attach_sdio
	.p2align	4, 0x90
_mmc_attach_sdio:                       ## @mmc_attach_sdio
	.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
	subq	$24, %rsp
	.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
	cmpl	$0, 32(%r15)
	sete	%dil
	callq	_WARN_ON
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mmc_send_io_op_cond
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.1:
	movq	_mmc_sdio_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_mmc_attach_bus
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, 24(%r15)
LBB0_3:
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_mmc_select_voltage
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mmc_sdio_init_card
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	8(%r15), %r14
	movq	_MMC_CAP_POWER_OFF_CARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
LBB0_9:
	movl	-44(%rbp), %r13d
	shrl	$28, %r13d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%r14)
	andl	$7, %r13d
	je	LBB0_19
## %bb.10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	16(%rbx)
	movq	%r12, %r14
	cmpq	%r12, %r13
	je	LBB0_19
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	leaq	1(%r14), %r12
	movl	%r12d, %esi
	callq	_sdio_init_func
	testl	%eax, %eax
	jne	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_MMC_CAP_POWER_OFF_CARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_pm_runtime_enable
	jmp	LBB0_18
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_19:
	movq	%r15, %rdi
	callq	_mmc_release_host
	movq	8(%r15), %rdi
	callq	_mmc_add_card
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.20:
	testl	%r13d, %r13d
	je	LBB0_25
## %bb.21:
	movl	%r13d, %r14d
	xorl	%r12d, %r12d
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_sdio_add_func
	testl	%eax, %eax
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%r12
	cmpq	%r12, %r14
	jne	LBB0_23
LBB0_25:
	movq	_MMC_CAP_POWER_OFF_CARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_27
## %bb.26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pm_runtime_put
LBB0_27:
	movq	%r15, %rdi
	callq	_mmc_claim_host
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_12:
	movl	%eax, %ebx
LBB0_13:
	movq	%r15, %rdi
	callq	_mmc_release_host
LBB0_14:
	movq	%r15, %rdi
	callq	_mmc_sdio_remove
	movq	%r15, %rdi
	callq	_mmc_claim_host
LBB0_15:
	movq	%r15, %rdi
	callq	_mmc_detach_bus
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_pr_err
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_mmc_sdio_ops,4,2               ## @mmc_sdio_ops
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMC_CAP_POWER_OFF_CARD,4,2     ## @MMC_CAP_POWER_OFF_CARD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: error %d whilst initialising SDIO card\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_attach_sdio                ; -- Begin function mmc_attach_sdio
	.p2align	2
_mmc_attach_sdio:                       ; @mmc_attach_sdio
	.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
	mov	x19, x0
	ldr	w8, [x0, #32]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_mmc_send_io_op_cond
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.1:
Lloh0:
	adrp	x1, _mmc_sdio_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _mmc_sdio_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_mmc_attach_bus
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [x19, #24]
LBB0_3:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_mmc_select_voltage
	cbz	w0, LBB0_11
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_mmc_sdio_init_card
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.5:
	ldr	x20, [x19, #8]
	ldr	w8, [x19]
Lloh2:
	adrp	x22, _MMC_CAP_POWER_OFF_CARD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MMC_CAP_POWER_OFF_CARD@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_pm_runtime_get_noresume
	mov	x0, x20
	bl	_pm_runtime_set_active
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_pm_runtime_enable
LBB0_8:
	ldr	w8, [sp, #12]
	ubfx	w23, w8, #28, #3
	str	xzr, [x20, #16]
	cbz	w23, LBB0_15
; %bb.9:
	ldr	x0, [x19, #8]
	mov	w1, #1
	bl	_sdio_init_func
	mov	x21, x0
	cbz	w0, LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_mmc_release_host
	b	LBB0_16
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_12:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	bl	_pm_runtime_enable
LBB0_14:
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	cmp	w23, #1
	b.ne	LBB0_25
LBB0_15:
	mov	x0, x19
	bl	_mmc_release_host
	ldr	x0, [x19, #8]
	bl	_mmc_add_card
	mov	x21, x0
	cbz	w0, LBB0_19
LBB0_16:
	mov	x0, x19
	bl	_mmc_sdio_remove
	mov	x0, x19
	bl	_mmc_claim_host
LBB0_17:
	mov	x0, x19
	bl	_mmc_detach_bus
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_err
LBB0_18:
	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_19:
	cbz	w23, LBB0_22
; %bb.20:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_sdio_add_func
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.21:
	cmp	w23, #1
	b.ne	LBB0_49
LBB0_22:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
	mov	x0, x20
	bl	_pm_runtime_put
LBB0_24:
	mov	x0, x19
	bl	_mmc_claim_host
	mov	w21, #0
	b	LBB0_18
LBB0_25:
	ldr	x0, [x19, #8]
	mov	w1, #2
	bl	_sdio_init_func
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.26:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #8]
	bl	_pm_runtime_enable
LBB0_28:
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	cmp	w23, #2
	b.eq	LBB0_15
; %bb.29:
	ldr	x0, [x19, #8]
	mov	w1, #3
	bl	_sdio_init_func
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.30:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.31:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #16]
	bl	_pm_runtime_enable
LBB0_32:
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	cmp	w23, #3
	b.eq	LBB0_15
; %bb.33:
	ldr	x0, [x19, #8]
	mov	w1, #4
	bl	_sdio_init_func
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.34:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.35:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #24]
	bl	_pm_runtime_enable
LBB0_36:
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	cmp	w23, #4
	b.eq	LBB0_15
; %bb.37:
	ldr	x0, [x19, #8]
	mov	w1, #5
	bl	_sdio_init_func
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.38:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.39:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #32]
	bl	_pm_runtime_enable
LBB0_40:
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	cmp	w23, #5
	b.eq	LBB0_15
; %bb.41:
	ldr	x0, [x19, #8]
	mov	w1, #6
	bl	_sdio_init_func
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.42:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_44
; %bb.43:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #40]
	bl	_pm_runtime_enable
LBB0_44:
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	cmp	w23, #6
	b.eq	LBB0_15
; %bb.45:
	ldr	x0, [x19, #8]
	mov	w1, #7
	bl	_sdio_init_func
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.46:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_48
; %bb.47:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #48]
	bl	_pm_runtime_enable
LBB0_48:
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	b	LBB0_15
LBB0_49:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #8]
	bl	_sdio_add_func
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.50:
	cmp	w23, #2
	b.eq	LBB0_22
; %bb.51:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #16]
	bl	_sdio_add_func
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.52:
	cmp	w23, #3
	b.eq	LBB0_22
; %bb.53:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #24]
	bl	_sdio_add_func
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.54:
	cmp	w23, #4
	b.eq	LBB0_22
; %bb.55:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #32]
	bl	_sdio_add_func
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.56:
	cmp	w23, #5
	b.eq	LBB0_22
; %bb.57:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #40]
	bl	_sdio_add_func
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.58:
	cmp	w23, #6
	b.eq	LBB0_22
; %bb.59:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #48]
	bl	_sdio_add_func
	mov	x21, x0
	cbnz	w0, LBB0_16
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mmc_sdio_ops,4,2               ; @mmc_sdio_ops
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMC_CAP_POWER_OFF_CARD,4,2     ; @MMC_CAP_POWER_OFF_CARD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: error %d whilst initialising SDIO card\n"

.subsections_via_symbols
