	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_bus_get_ejd               ## -- Begin function acpi_bus_get_ejd
	.p2align	4, 0x90
_acpi_bus_get_ejd:                      ## @acpi_bus_get_ejd
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -40(%rbp)
	movl	$0, -32(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_object
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax
	movq	_ACPI_ROOT_OBJECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rsi
	movq	%r14, %rdx
	callq	_acpi_get_handle
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_kfree
LBB0_3:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_EJD"

	.comm	_ACPI_ROOT_OBJECT,4,2           ## @ACPI_ROOT_OBJECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_bus_get_ejd               ; -- Begin function acpi_bus_get_ejd
	.p2align	2
_acpi_bus_get_ejd:                      ; @acpi_bus_get_ejd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp]
	str	wzr, [sp, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #28
	bl	_acpi_get_handle
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	x0, x20
	mov	x2, #0
	bl	_acpi_evaluate_object
	mov	x21, x0
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [sp]
Lloh7:
	adrp	x9, _ACPI_ROOT_OBJECT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ACPI_ROOT_OBJECT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	ldr	x1, [x8]
	mov	x2, x19
	bl	_acpi_get_handle
	mov	x21, x0
	ldr	x0, [sp]
	bl	_kfree
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_EJD"

	.comm	_ACPI_ROOT_OBJECT,4,2           ; @ACPI_ROOT_OBJECT
.subsections_via_symbols
