	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_get_handle                ## -- Begin function acpi_get_handle
	.p2align	4, 0x90
_acpi_get_handle:                       ## @acpi_get_handle
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	testq	%r12, %r12
	je	LBB0_11
## %bb.1:
	testq	%r14, %r14
	je	LBB0_11
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_acpi_ns_map_handle_to_node
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_11
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movl	(%r12), %edi
	callq	_acpi_ns_valid_root_prefix
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_ACPI_NS_ROOT_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ACPI_STRCMP
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	_acpi_gbl_root_node@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_acpi_ns_convert_entry_to_handle
	movq	%rax, (%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	testq	%r15, %r15
	je	LBB0_11
LBB0_9:
	movq	_ACPI_NS_NO_UPSEARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_acpi_ns_get_node
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	-40(%rbp), %rdi
	callq	_acpi_ns_convert_entry_to_handle
	movq	%rax, (%r14)
	jmp	LBB0_13
LBB0_11:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_NS_ROOT_PATH,4,2          ## @ACPI_NS_ROOT_PATH
	.comm	_acpi_gbl_root_node,8,3         ## @acpi_gbl_root_node
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ACPI_NS_NO_UPSEARCH,4,2        ## @ACPI_NS_NO_UPSEARCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_get_handle                ; -- Begin function acpi_get_handle
	.p2align	2
_acpi_get_handle:                       ; @acpi_get_handle
	.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, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	bl	_ACPI_FUNCTION_ENTRY
	cbz	x20, LBB0_10
; %bb.1:
	cbz	x19, LBB0_10
; %bb.2:
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_acpi_ns_map_handle_to_node
	mov	x21, x0
	cbz	x0, LBB0_10
LBB0_4:
	ldr	w0, [x20]
	bl	_acpi_ns_valid_root_prefix
	cbz	x0, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _ACPI_NS_ROOT_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_NS_ROOT_PATH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ACPI_STRCMP
	cbnz	w0, LBB0_8
; %bb.6:
Lloh3:
	adrp	x8, _acpi_gbl_root_node@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_gbl_root_node@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_acpi_ns_convert_entry_to_handle
	str	x0, [x19]
Lloh6:
	adrp	x8, _AE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	cbz	x21, LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _ACPI_NS_NO_UPSEARCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACPI_NS_NO_UPSEARCH@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_acpi_ns_get_node
	mov	x20, x0
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x0, [sp, #8]
	bl	_acpi_ns_convert_entry_to_handle
	str	x0, [x19]
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_NS_ROOT_PATH,4,2          ; @ACPI_NS_ROOT_PATH
	.comm	_acpi_gbl_root_node,8,3         ; @acpi_gbl_root_node
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ACPI_NS_NO_UPSEARCH,4,2        ; @ACPI_NS_NO_UPSEARCH
.subsections_via_symbols
