	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_sdio_suspend
_mwifiex_sdio_suspend:                  ## @mwifiex_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, %r14
	callq	_dev_to_sdio_func
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_sdio_get_host_pm_caps
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_sdio_func_id
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_pr_debug
	movq	_MMC_PM_KEEP_POWER@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	callq	_sdio_get_drvdata
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_wait_for_completion
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_mwifiex_enable_wake
	movq	%r15, %rdi
	callq	_mwifiex_enable_hs
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_mwifiex_dbg
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_sdio_set_host_pm_flags
	movl	%eax, %ebx
	movq	_MWIFIEX_IS_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_MWIFIEX_IS_HS_ENABLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	jmp	LBB0_11
LBB0_5:
	movq	%r12, %rdi
	callq	_sdio_func_id
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_mwifiex_dbg
	movq	_MWIFIEX_IS_HS_ENABLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_mwifiex_disable_wake
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %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	"cmd: %s: suspend: PM flag = 0x%x\n"

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

	.comm	_ENOSYS,4,2                     ## @ENOSYS
L_.str.2:                               ## @.str.2
	.asciz	"suspend: invalid card\n"

L_.str.3:                               ## @.str.3
	.asciz	"adapter is not valid\n"

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.4:                               ## @.str.4
	.asciz	"cmd: failed to suspend\n"

	.comm	_MWIFIEX_IS_HS_ENABLING,4,2     ## @MWIFIEX_IS_HS_ENABLING
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_INFO,4,2                       ## @INFO
L_.str.5:                               ## @.str.5
	.asciz	"cmd: suspend with MMC_PM_KEEP_POWER\n"

	.comm	_MWIFIEX_IS_SUSPENDED,4,2       ## @MWIFIEX_IS_SUSPENDED
	.no_dead_strip	_mwifiex_sdio_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_sdio_suspend
_mwifiex_sdio_suspend:                  ; @mwifiex_sdio_suspend
	.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
	mov	x20, x0
	bl	_dev_to_sdio_func
	mov	x19, x0
	bl	_sdio_get_host_pm_caps
	mov	x21, x0
	mov	x0, x19
	bl	_sdio_func_id
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_debug
Lloh2:
	adrp	x22, _MMC_PM_KEEP_POWER@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MMC_PM_KEEP_POWER@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_sdio_get_drvdata
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	add	x0, x0, #8
	bl	_wait_for_completion
	ldr	x21, [x21]
	cbz	x21, LBB0_7
; %bb.3:
	mov	x0, x21
	bl	_mwifiex_enable_wake
	mov	x0, x21
	bl	_mwifiex_enable_hs
	cbz	w0, LBB0_9
; %bb.4:
Lloh4:
	adrp	x8, _INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.5@PAGE
Lloh8:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sdio_set_host_pm_flags
	mov	x19, x0
Lloh9:
	adrp	x8, _MWIFIEX_IS_SUSPENDED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWIFIEX_IS_SUSPENDED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
Lloh12:
	adrp	x8, _MWIFIEX_IS_HS_ENABLING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MWIFIEX_IS_HS_ENABLING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x19
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	bl	_sdio_func_id
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh17:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_dev_err
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
Lloh28:
	adrp	x8, _MWIFIEX_IS_HS_ENABLING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MWIFIEX_IS_HS_ENABLING@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x21
	bl	_mwifiex_disable_wake
Lloh31:
	adrp	x8, _EFAULT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd: %s: suspend: PM flag = 0x%x\n"

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

	.comm	_ENOSYS,4,2                     ; @ENOSYS
l_.str.2:                               ; @.str.2
	.asciz	"suspend: invalid card\n"

l_.str.3:                               ; @.str.3
	.asciz	"adapter is not valid\n"

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.4:                               ; @.str.4
	.asciz	"cmd: failed to suspend\n"

	.comm	_MWIFIEX_IS_HS_ENABLING,4,2     ; @MWIFIEX_IS_HS_ENABLING
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_INFO,4,2                       ; @INFO
l_.str.5:                               ; @.str.5
	.asciz	"cmd: suspend with MMC_PM_KEEP_POWER\n"

	.comm	_MWIFIEX_IS_SUSPENDED,4,2       ; @MWIFIEX_IS_SUSPENDED
	.no_dead_strip	_mwifiex_sdio_suspend
.subsections_via_symbols
