	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_runtime_suspend
_omap_hsmmc_runtime_suspend:            ## @omap_hsmmc_runtime_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, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_omap_hsmmc_context_save
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rax
	movq	_MMC_CAP_SDIO_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_HSMMC_SDIO_IRQ_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.2:
	movl	8(%rbx), %edi
	movq	_ISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_OMAP_HSMMC_WRITE
	movl	8(%rbx), %edi
	movq	_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_OMAP_HSMMC_WRITE
	movl	8(%rbx), %edi
	movq	_PSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OMAP_HSMMC_READ
	movl	%eax, %r13d
	movl	$1, %edi
	callq	_DLEV_DAT
	testl	%r13d, %eax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_pinctrl_pm_select_idle_state
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_pinctrl_pm_select_idle_state
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movl	8(%rbx), %edi
	movq	_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STAT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_OMAP_HSMMC_WRITE
	movl	8(%rbx), %edi
	movq	_ISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CIRQ_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_OMAP_HSMMC_WRITE
	movl	8(%rbx), %edi
	movq	_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	callq	_OMAP_HSMMC_WRITE
	movq	%r15, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %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	"disabled\n"

	.comm	_MMC_CAP_SDIO_IRQ,4,2           ## @MMC_CAP_SDIO_IRQ
	.comm	_HSMMC_SDIO_IRQ_ENABLED,4,2     ## @HSMMC_SDIO_IRQ_ENABLED
	.comm	_ISE,4,2                        ## @ISE
	.comm	_IE,4,2                         ## @IE
	.comm	_PSTATE,4,2                     ## @PSTATE
L_.str.1:                               ## @.str.1
	.asciz	"pending sdio irq, abort suspend\n"

	.comm	_STAT,4,2                       ## @STAT
	.comm	_STAT_CLEAR,4,2                 ## @STAT_CLEAR
	.comm	_CIRQ_EN,4,2                    ## @CIRQ_EN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_omap_hsmmc_runtime_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_runtime_suspend
_omap_hsmmc_runtime_suspend:            ; @omap_hsmmc_runtime_suspend
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x21, x0
	bl	_omap_hsmmc_context_save
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	add	x19, x21, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _MMC_CAP_SDIO_IRQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC_CAP_SDIO_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _HSMMC_SDIO_IRQ_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HSMMC_SDIO_IRQ_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x21, #8]
Lloh8:
	adrp	x23, _ISE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ISE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_OMAP_HSMMC_WRITE
	ldr	w0, [x21, #8]
Lloh10:
	adrp	x24, _IE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _IE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_OMAP_HSMMC_WRITE
	ldr	w0, [x21, #8]
Lloh12:
	adrp	x8, _PSTATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSTATE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_OMAP_HSMMC_READ
	mov	x22, x0
	mov	w0, #1
	bl	_DLEV_DAT
	tst	w0, w22
	b.eq	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_pinctrl_pm_select_idle_state
	mov	w20, #0
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w0, [x21, #8]
Lloh17:
	adrp	x8, _STAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STAT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _STAT_CLEAR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STAT_CLEAR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_OMAP_HSMMC_WRITE
	ldr	w0, [x21, #8]
	ldr	w1, [x23]
Lloh23:
	adrp	x22, _CIRQ_EN@GOTPAGE
Lloh24:
	ldr	x22, [x22, _CIRQ_EN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_OMAP_HSMMC_WRITE
	ldr	w0, [x21, #8]
	ldr	w1, [x24]
	ldr	w2, [x22]
	bl	_OMAP_HSMMC_WRITE
	mov	x0, x20
	bl	_pm_runtime_mark_last_busy
Lloh25:
	adrp	x8, _EBUSY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabled\n"

	.comm	_MMC_CAP_SDIO_IRQ,4,2           ; @MMC_CAP_SDIO_IRQ
	.comm	_HSMMC_SDIO_IRQ_ENABLED,4,2     ; @HSMMC_SDIO_IRQ_ENABLED
	.comm	_ISE,4,2                        ; @ISE
	.comm	_IE,4,2                         ; @IE
	.comm	_PSTATE,4,2                     ; @PSTATE
l_.str.1:                               ; @.str.1
	.asciz	"pending sdio irq, abort suspend\n"

	.comm	_STAT,4,2                       ; @STAT
	.comm	_STAT_CLEAR,4,2                 ; @STAT_CLEAR
	.comm	_CIRQ_EN,4,2                    ; @CIRQ_EN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_omap_hsmmc_runtime_suspend
.subsections_via_symbols
