	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_poweroff_notify
_mmc_poweroff_notify:                   ## @mmc_poweroff_notify
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movq	_EXT_CSD_POWER_OFF_LONG@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%esi, (%rax)
	sete	%dl
	movl	(%rdi,%rdx,4), %r14d
	movq	_EXT_CSD_CMD_SET_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXT_CSD_POWER_OFF_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$1
	callq	___mmc_switch
	addq	$32, %rsp
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_pr_err
LBB0_2:
	movq	_EXT_CSD_NO_POWER_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_CSD_POWER_OFF_LONG,4,2     ## @EXT_CSD_POWER_OFF_LONG
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ## @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_POWER_OFF_NOTIFICATION,4,2 ## @EXT_CSD_POWER_OFF_NOTIFICATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Power Off Notification timed out, %u\n"

	.comm	_EXT_CSD_NO_POWER_NOTIFICATION,4,2 ## @EXT_CSD_NO_POWER_NOTIFICATION
	.no_dead_strip	_mmc_poweroff_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_poweroff_notify
_mmc_poweroff_notify:                   ; @mmc_poweroff_notify
	.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	x3, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EXT_CSD_POWER_OFF_LONG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT_CSD_POWER_OFF_LONG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w8, eq
	ldr	w20, [x0, w8, uxtw #2]
Lloh3:
	adrp	x8, _EXT_CSD_CMD_SET_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXT_CSD_CMD_SET_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _EXT_CSD_POWER_OFF_NOTIFICATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXT_CSD_POWER_OFF_NOTIFICATION@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	str	wzr, [sp]
	mov	x4, x20
	mov	w5, #0
	mov	w6, #1
	mov	w7, #0
	bl	___mmc_switch
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_mmc_hostname
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_err
LBB0_2:
Lloh11:
	adrp	x8, _EXT_CSD_NO_POWER_NOTIFICATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXT_CSD_NO_POWER_NOTIFICATION@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_CSD_POWER_OFF_LONG,4,2     ; @EXT_CSD_POWER_OFF_LONG
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ; @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_POWER_OFF_NOTIFICATION,4,2 ; @EXT_CSD_POWER_OFF_NOTIFICATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Power Off Notification timed out, %u\n"

	.comm	_EXT_CSD_NO_POWER_NOTIFICATION,4,2 ; @EXT_CSD_NO_POWER_NOTIFICATION
	.no_dead_strip	_mmc_poweroff_notify
.subsections_via_symbols
