	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eject_dock
_eject_dock:                            ## @eject_dock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movl	$1, -40(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	$1, -16(%rbp)
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_acpi_evaluate_object
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	callq	_pr_debug
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_EJ0"

L_.str.1:                               ## @.str.1
	.asciz	"No _EJ0 support for dock device\n"

	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
L_.str.2:                               ## @.str.2
	.asciz	"Failed to evaluate _EJ0!\n"

	.no_dead_strip	_eject_dock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eject_dock
_eject_dock:                            ; @eject_dock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #4
	bl	_acpi_get_handle
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #16]
	add	x9, sp, #8
	str	x9, [sp, #24]
	str	w8, [sp, #8]
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #16
	mov	x3, #0
	bl	_acpi_evaluate_object
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_pr_debug
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_EJ0"

l_.str.1:                               ; @.str.1
	.asciz	"No _EJ0 support for dock device\n"

	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
l_.str.2:                               ; @.str.2
	.asciz	"Failed to evaluate _EJ0!\n"

	.no_dead_strip	_eject_dock
.subsections_via_symbols
