	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_eject_store
_acpi_eject_store:                      ## @acpi_eject_store
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	$0, -36(%rbp)
	callq	_to_acpi_device
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	cmpb	$49, (%rbx)
	jne	LBB0_2
## %bb.4:
	movq	%rax, %r14
	cmpq	$0, 24(%rax)
	je	LBB0_5
## %bb.6:
	movl	16(%r14), %edi
	leaq	-36(%rbp), %rsi
	callq	_acpi_get_type
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, 8(%r14)
	je	LBB0_5
## %bb.8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r15
	movl	16(%r14), %edi
	movl	%edi, 4(%rax)
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.11:
	movq	_ACPI_NOTIFY_EJECT_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	$0, (%r14)
	jmp	LBB0_13
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	_ACPI_OST_EC_OSPM_EJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, (%r15)
	movq	_ACPI_OST_SC_EJECT_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_acpi_evaluate_hotplug_ost
LBB0_13:
	movq	_acpi_bus_hot_remove_device@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_acpi_os_hotplug_execute
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACPI_NOTIFY_EJECT_REQUEST,4,2  ## @ACPI_NOTIFY_EJECT_REQUEST
	.comm	_ACPI_OST_EC_OSPM_EJECT,4,2     ## @ACPI_OST_EC_OSPM_EJECT
	.comm	_ACPI_OST_SC_EJECT_IN_PROGRESS,4,2 ## @ACPI_OST_SC_EJECT_IN_PROGRESS
	.comm	_acpi_bus_hot_remove_device,4,2 ## @acpi_bus_hot_remove_device
	.no_dead_strip	_acpi_eject_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_eject_store
_acpi_eject_store:                      ; @acpi_eject_store
	.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	x19, x3
	mov	x21, x2
	str	wzr, [sp, #12]
	bl	_to_acpi_device
	cbz	x19, LBB0_5
; %bb.1:
	ldrb	w8, [x21]
	cmp	w8, #49
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20, #16]
	add	x1, sp, #12
	bl	_acpi_get_type
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	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
LBB0_8:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.9:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_12
; %bb.10:
	mov	x21, x0
	ldr	w0, [x20, #16]
	str	w0, [x21, #4]
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.11:
Lloh7:
	adrp	x8, _ACPI_NOTIFY_EJECT_REQUEST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACPI_NOTIFY_EJECT_REQUEST@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x21]
	str	xzr, [x20]
	b	LBB0_14
LBB0_12:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
Lloh12:
	adrp	x8, _ACPI_OST_EC_OSPM_EJECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_OST_EC_OSPM_EJECT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	str	w1, [x21]
Lloh15:
	adrp	x8, _ACPI_OST_SC_EJECT_IN_PROGRESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_OST_SC_EJECT_IN_PROGRESS@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_acpi_evaluate_hotplug_ost
LBB0_14:
Lloh18:
	adrp	x8, _acpi_bus_hot_remove_device@GOTPAGE
Lloh19:
	ldr	x8, [x8, _acpi_bus_hot_remove_device@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_acpi_os_hotplug_execute
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACPI_NOTIFY_EJECT_REQUEST,4,2  ; @ACPI_NOTIFY_EJECT_REQUEST
	.comm	_ACPI_OST_EC_OSPM_EJECT,4,2     ; @ACPI_OST_EC_OSPM_EJECT
	.comm	_ACPI_OST_SC_EJECT_IN_PROGRESS,4,2 ; @ACPI_OST_SC_EJECT_IN_PROGRESS
	.comm	_acpi_bus_hot_remove_device,4,2 ; @acpi_bus_hot_remove_device
	.no_dead_strip	_acpi_eject_store
.subsections_via_symbols
