	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_internalize_name       ## -- Begin function acpi_ns_internalize_name
	.p2align	4, 0x90
_acpi_ns_internalize_name:              ## @acpi_ns_internalize_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ns_internalize_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	cmpb	$0, (%rbx)
	jne	LBB0_4
LBB0_3:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	%rbx, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_acpi_ns_get_internal_name_length
	movl	-32(%rbp), %edi
	callq	_ACPI_ALLOCATE_ZEROED
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_6:
	movq	%rbx, -40(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_acpi_ns_build_internal_name
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_ACPI_FREE
	movl	%r15d, %edi
	callq	_return_ACPI_STATUS
LBB0_8:
	movq	%rbx, (%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ns_internalize_name,4,2        ## @ns_internalize_name
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_internalize_name       ; -- Begin function acpi_ns_internalize_name
	.p2align	2
_acpi_ns_internalize_name:              ; @acpi_ns_internalize_name
	.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, _ns_internalize_name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ns_internalize_name@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	cbz	x20, LBB0_3
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_4:
	str	x20, [sp, #8]
	add	x0, sp, #8
	bl	_acpi_ns_get_internal_name_length
	ldr	w0, [sp, #24]
	bl	_ACPI_ALLOCATE_ZEROED
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_6:
	str	x20, [sp, #16]
	add	x0, sp, #8
	bl	_acpi_ns_build_internal_name
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_ACPI_FREE
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_8:
	str	x20, [x19]
Lloh9:
	adrp	x8, _AE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ns_internalize_name,4,2        ; @ns_internalize_name
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
