	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_get_internal_name_length ## -- Begin function acpi_ns_get_internal_name_length
	.p2align	4, 0x90
_acpi_ns_get_internal_name_length:      ## @acpi_ns_get_internal_name_length
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	movq	(%r14), %r15
	movq	$0, 24(%r14)
	movl	$0, 8(%r14)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movsbl	(%r15), %edi
	callq	_acpi_ns_valid_root_prefix
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	1(%r15), %edi
	incq	%r15
	callq	_acpi_ns_valid_root_prefix
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movb	(%r15), %al
	jmp	LBB0_7
LBB0_1:
	movb	(%r15), %al
	cmpb	$94, %al
	jne	LBB0_7
## %bb.2:
	movq	24(%r14), %rcx
	incq	%rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, 24(%r14)
	movzbl	1(%r15), %eax
	incq	%r15
	incq	%rcx
	cmpb	$94, %al
	je	LBB0_3
LBB0_7:
	testb	%al, %al
	je	LBB0_13
## %bb.8:
	movl	$1, 8(%r14)
	movb	(%r15), %al
	testb	%al, %al
	je	LBB0_13
## %bb.9:
	leaq	1(%r15), %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_acpi_ns_valid_path_separator
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	8(%r14)
	jmp	LBB0_12
LBB0_13:
	movq	_ACPI_NAME_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	8(%r14), %rcx
	imulq	%rax, %rcx
	movq	24(%r14), %rax
	addq	%rcx, %rax
	addq	$4, %rax
	movq	%rax, 32(%r14)
	movq	%r15, 16(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_ACPI_NAME_SIZE,4,2             ## @ACPI_NAME_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_get_internal_name_length ; -- Begin function acpi_ns_get_internal_name_length
	.p2align	2
_acpi_ns_get_internal_name_length:      ; @acpi_ns_get_internal_name_length
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_ACPI_FUNCTION_ENTRY
	ldr	x20, [x19]
	str	xzr, [x19, #24]
	str	wzr, [x19, #8]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldrsb	w0, [x20]
	bl	_acpi_ns_valid_root_prefix
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #40]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, #1]!
	bl	_acpi_ns_valid_root_prefix
	cbnz	x0, LBB0_2
; %bb.3:
	ldrb	w8, [x20]
	b	LBB0_7
LBB0_4:
	ldrb	w8, [x20]
	cmp	w8, #94
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19, #24]
	add	x9, x8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	x9, [x19, #24]
	ldrb	w8, [x20, #1]!
	add	x9, x9, #1
	cmp	w8, #94
	b.eq	LBB0_6
LBB0_7:
	cbz	w8, LBB0_13
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #8]
	ldrb	w8, [x20]
	cbz	w8, LBB0_13
; %bb.9:
	add	x21, x20, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x21], #1
	cbz	w8, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_acpi_ns_valid_path_separator
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_10
LBB0_13:
Lloh6:
	adrp	x8, _ACPI_NAME_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_NAME_SIZE@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	ldrsw	x9, [x19, #8]
	ldr	x10, [x19, #24]
	madd	x8, x9, x8, x10
	add	x8, x8, #4
	str	x8, [x19, #32]
	str	x20, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_ACPI_NAME_SIZE,4,2             ; @ACPI_NAME_SIZE
.subsections_via_symbols
