	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_get_node_name          ## -- Begin function acpi_ut_get_node_name
	.p2align	4, 0x90
_acpi_ut_get_node_name:                 ## @acpi_ut_get_node_name
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_ACPI_ROOT_OBJECT@GOTPCREL(%rip), %rcx
	leaq	L_.str.1(%rip), %rax
	cmpq	%rdi, (%rcx)
	je	LBB0_9
## %bb.3:
	movq	_acpi_gbl_root_node@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	je	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	callq	_ACPI_GET_DESCRIPTOR_TYPE
	movq	_ACPI_DESC_TYPE_NAMED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	8(%rbx), %edi
	callq	_acpi_ut_valid_acpi_name
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rdi
	callq	_acpi_ut_repair_name
	movl	%eax, 8(%rbx)
LBB0_8:
	movq	(%rbx), %rax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NULL"

	.comm	_ACPI_ROOT_OBJECT,8,3           ## @ACPI_ROOT_OBJECT
	.comm	_acpi_gbl_root_node,8,3         ## @acpi_gbl_root_node
L_.str.1:                               ## @.str.1
	.asciz	"\"\\\" "

	.comm	_ACPI_DESC_TYPE_NAMED,8,3       ## @ACPI_DESC_TYPE_NAMED
L_.str.2:                               ## @.str.2
	.asciz	"####"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_get_node_name          ; -- Begin function acpi_ut_get_node_name
	.p2align	2
_acpi_ut_get_node_name:                 ; @acpi_ut_get_node_name
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ACPI_ROOT_OBJECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ROOT_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _acpi_gbl_root_node@GOTPAGE
Lloh4:
	ldr	x9, [x9, _acpi_gbl_root_node@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_ACPI_GET_DESCRIPTOR_TYPE
Lloh10:
	adrp	x8, _ACPI_DESC_TYPE_NAMED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ACPI_DESC_TYPE_NAMED@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_acpi_ut_valid_acpi_name
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19]
	bl	_acpi_ut_repair_name
	str	w0, [x19, #8]
LBB0_7:
	ldr	x0, [x19]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NULL"

	.comm	_ACPI_ROOT_OBJECT,8,3           ; @ACPI_ROOT_OBJECT
	.comm	_acpi_gbl_root_node,8,3         ; @acpi_gbl_root_node
l_.str.1:                               ; @.str.1
	.asciz	"\"\\\" "

	.comm	_ACPI_DESC_TYPE_NAMED,8,3       ; @ACPI_DESC_TYPE_NAMED
l_.str.2:                               ; @.str.2
	.asciz	"####"

.subsections_via_symbols
