	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_get_reference_name     ## -- Begin function acpi_ut_get_reference_name
	.p2align	4, 0x90
_acpi_ut_get_reference_name:            ## @acpi_ut_get_reference_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
	callq	_ACPI_GET_DESCRIPTOR_TYPE
	movq	_ACPI_DESC_TYPE_OPERAND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movq	_ACPI_TYPE_LOCAL_REFERENCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_ACPI_REFCLASS_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_acpi_gbl_ref_class_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %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 Object"

	.comm	_ACPI_DESC_TYPE_OPERAND,8,3     ## @ACPI_DESC_TYPE_OPERAND
L_.str.1:                               ## @.str.1
	.asciz	"Not an Operand object"

	.comm	_ACPI_TYPE_LOCAL_REFERENCE,8,3  ## @ACPI_TYPE_LOCAL_REFERENCE
L_.str.2:                               ## @.str.2
	.asciz	"Not a Reference object"

	.comm	_ACPI_REFCLASS_MAX,8,3          ## @ACPI_REFCLASS_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Unknown Reference class"

	.comm	_acpi_gbl_ref_class_names,8,3   ## @acpi_gbl_ref_class_names
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_get_reference_name     ; -- Begin function acpi_ut_get_reference_name
	.p2align	2
_acpi_ut_get_reference_name:            ; @acpi_ut_get_reference_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_5
; %bb.1:
	mov	x19, x0
	bl	_ACPI_GET_DESCRIPTOR_TYPE
Lloh0:
	adrp	x8, _ACPI_DESC_TYPE_OPERAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_DESC_TYPE_OPERAND@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x9, _ACPI_REFCLASS_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_REFCLASS_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_8
; %bb.4:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x9, _acpi_gbl_ref_class_names@GOTPAGE
Lloh18:
	ldr	x9, [x9, _acpi_gbl_ref_class_names@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	x0, [x9, x8, lsl #3]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NULL Object"

	.comm	_ACPI_DESC_TYPE_OPERAND,8,3     ; @ACPI_DESC_TYPE_OPERAND
l_.str.1:                               ; @.str.1
	.asciz	"Not an Operand object"

	.comm	_ACPI_TYPE_LOCAL_REFERENCE,8,3  ; @ACPI_TYPE_LOCAL_REFERENCE
l_.str.2:                               ; @.str.2
	.asciz	"Not a Reference object"

	.comm	_ACPI_REFCLASS_MAX,8,3          ; @ACPI_REFCLASS_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Unknown Reference class"

	.comm	_acpi_gbl_ref_class_names,8,3   ; @acpi_gbl_ref_class_names
.subsections_via_symbols
