	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_sdio_suspend
_if_sdio_suspend:                       ## @if_sdio_suspend
	.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, %r12
	callq	_dev_to_sdio_func
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_sdio_get_drvdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_sdio_get_host_pm_caps
	movl	%eax, %r15d
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_lbs_iface_active
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_sdio_func_id
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movq	8(%rbx), %rax
	movq	_EHS_REMOVE_WAKEUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_lbs_suspend
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	$1, (%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_if_sdio_power_off
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_1:
	xorl	%r13d, %r13d
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.2:
	movl	$1, (%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_if_sdio_power_off
	jmp	LBB0_11
LBB0_7:
	movq	_MMC_PM_KEEP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	callq	_sdio_set_host_pm_flags
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_lbs_suspend
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	movq	_MMC_PM_WAKE_SDIO_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdio_set_host_pm_flags         ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	callq	_sdio_func_id
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: suspend: PM flags = 0x%x\n"

	.comm	_EHS_REMOVE_WAKEUP,8,3          ## @EHS_REMOVE_WAKEUP
L_.str.1:                               ## @.str.1
	.asciz	"Suspend without wake params -- powering down card\n"

	.comm	_MMC_PM_KEEP_POWER,4,2          ## @MMC_PM_KEEP_POWER
L_.str.2:                               ## @.str.2
	.asciz	"%s: cannot remain alive while host is suspended\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_MMC_PM_WAKE_SDIO_IRQ,4,2       ## @MMC_PM_WAKE_SDIO_IRQ
	.no_dead_strip	_if_sdio_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_sdio_suspend
_if_sdio_suspend:                       ; @if_sdio_suspend
	.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	x22, x0
	bl	_dev_to_sdio_func
	mov	x20, x0
	bl	_sdio_get_drvdata
	mov	x21, x0
	ldr	x19, [x0]
	mov	x0, x20
	bl	_sdio_get_host_pm_caps
	mov	x23, x0
	str	wzr, [x19]
	mov	x0, x19
	bl	_lbs_iface_active
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_sdio_func_id
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x23, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _EHS_REMOVE_WAKEUP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EHS_REMOVE_WAKEUP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_lbs_suspend
	cbnz	w0, LBB0_12
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	_if_sdio_power_off
	mov	w0, #0
	b	LBB0_12
LBB0_6:
Lloh7:
	adrp	x8, _MMC_PM_KEEP_POWER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMC_PM_KEEP_POWER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	tst	w1, w23
	b.eq	LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_sdio_set_host_pm_flags
	cbnz	w0, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_lbs_suspend
	cbnz	w0, LBB0_12
; %bb.9:
Lloh10:
	adrp	x8, _MMC_PM_WAKE_SDIO_IRQ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMC_PM_WAKE_SDIO_IRQ@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	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
	b	_sdio_set_host_pm_flags
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_sdio_func_id
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh15:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: suspend: PM flags = 0x%x\n"

	.comm	_EHS_REMOVE_WAKEUP,8,3          ; @EHS_REMOVE_WAKEUP
l_.str.1:                               ; @.str.1
	.asciz	"Suspend without wake params -- powering down card\n"

	.comm	_MMC_PM_KEEP_POWER,4,2          ; @MMC_PM_KEEP_POWER
l_.str.2:                               ; @.str.2
	.asciz	"%s: cannot remain alive while host is suspended\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_MMC_PM_WAKE_SDIO_IRQ,4,2       ; @MMC_PM_WAKE_SDIO_IRQ
	.no_dead_strip	_if_sdio_suspend
.subsections_via_symbols
