	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ns_externalize_name       ## -- Begin function acpi_ns_externalize_name
	.p2align	4, 0x90
_acpi_ns_externalize_name:              ## @acpi_ns_externalize_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ns_externalize_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	testq	%r15, %r15
	jne	LBB0_4
LBB0_3:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movb	(%rbx), %al
	movsbl	%al, %ecx
	cmpl	$92, %ecx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_32
## %bb.5:
	xorl	%r12d, %r12d
	cmpl	$94, %ecx
	jne	LBB0_12
## %bb.6:
	testq	%r14, %r14
	je	LBB0_12
## %bb.7:
	cmpb	$94, %al
	jne	LBB0_12
## %bb.8:
	leaq	-1(%r14), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%rcx), %r12
	cmpb	$94, 1(%rbx,%rcx)
	movq	%r12, %rcx
	je	LBB0_9
	jmp	LBB0_12
LBB0_32:
	movl	$1, %r12d
LBB0_12:
	xorl	%eax, %eax
	cmpq	%r14, %r12
	jae	LBB0_13
## %bb.15:
	xorl	%ecx, %ecx
	cmpb	$0, (%rbx,%r12)
	setne	%cl
	cmovneq	%r12, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rcx,4), %r13
	jmp	LBB0_16
LBB0_13:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
LBB0_14:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_16:
	incq	%r13
	cmpq	%r14, %r13
	jbe	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_BAD_PATHNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_18:
	movq	%r13, %rdi
	callq	_ACPI_ALLOCATE_ZEROED
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_20:
	testq	%r12, %r12
	je	LBB0_27
## %bb.21:
	leaq	-1(%r12), %rcx
	movl	%r12d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_23
## %bb.22:
	xorl	%ecx, %ecx
	jmp	LBB0_25
LBB0_23:
	movq	%r12, %rsi
	andq	$-4, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx), %edx
	movq	(%r15), %rdi
	movb	%dl, (%rdi,%rcx)
	movzbl	1(%rbx,%rcx), %edx
	movq	(%r15), %rdi
	movb	%dl, 1(%rdi,%rcx)
	movzbl	2(%rbx,%rcx), %edx
	movq	(%r15), %rdi
	movb	%dl, 2(%rdi,%rcx)
	movzbl	3(%rbx,%rcx), %edx
	movq	(%r15), %rdi
	movb	%dl, 3(%rdi,%rcx)
	addq	$4, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_24
LBB0_25:
	testq	%rax, %rax
	je	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rcx), %edx
	movq	(%r15), %rsi
	movb	%dl, (%rsi,%rcx)
	incq	%rcx
	decq	%rax
	jne	LBB0_26
LBB0_27:
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_29
## %bb.28:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movb	(%rbx,%rdx), %al
	movq	(%r15), %rcx
	movb	%al, (%rcx,%r12)
	movb	1(%rbx,%rdx), %al
	movq	(%r15), %rcx
	movb	%al, 1(%r12,%rcx)
	movb	2(%rbx,%rdx), %al
	movq	(%r15), %rcx
	movb	%al, 2(%r12,%rcx)
	movb	3(%rbx,%rdx), %al
	movq	(%r15), %rcx
	movb	%al, 3(%r12,%rcx)
LBB0_29:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	%r13, (%rax)
LBB0_31:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	movq	%r14, %r13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ns_externalize_name,4,2        ## @ns_externalize_name
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid internal name"

	.comm	_AE_BAD_PATHNAME,4,2            ## @AE_BAD_PATHNAME
	.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_externalize_name       ; -- Begin function acpi_ns_externalize_name
	.p2align	2
_acpi_ns_externalize_name:              ; @acpi_ns_externalize_name
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ns_externalize_name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ns_externalize_name@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	cbz	x22, LBB0_3
; %bb.1:
	cbz	x21, LBB0_3
; %bb.2:
	cbnz	x20, 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:
	ldrsb	w8, [x21]
	cmp	w8, #92
	b.eq	LBB0_12
; %bb.5:
	cmp	w8, #94
	b.ne	LBB0_15
; %bb.6:
	mov	x24, #0
	cbz	x22, LBB0_13
; %bb.7:
	and	w8, w8, #0xff
	cmp	w8, #94
	b.ne	LBB0_13
; %bb.8:
	mov	w8, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, x8
	b.eq	LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w9, [x21, x8]
	add	x8, x8, #1
	cmp	w9, #94
	b.eq	LBB0_9
; %bb.11:
	sub	x24, x8, #1
	cmp	x24, x22
	b.lo	LBB0_14
	b	LBB0_16
LBB0_12:
	mov	w24, #1
LBB0_13:
	cmp	x24, x22
	b.hs	LBB0_16
LBB0_14:
	ldrb	w8, [x21, x24]
	cmp	w8, #0
	cset	w26, ne
	csel	x25, xzr, x24, eq
	add	x8, x24, w26, uxtw #2
	b	LBB0_17
LBB0_15:
	mov	x24, #0
	cmp	x24, x22
	b.lo	LBB0_14
LBB0_16:
	mov	x25, #0
	mov	w26, #0
	mov	x8, x24
LBB0_17:
	add	x23, x8, #1
	cmp	x23, x22
	b.ls	LBB0_19
; %bb.18:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh8:
	adrp	x8, _AE_BAD_PATHNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_BAD_PATHNAME@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_19:
	mov	x0, x23
	bl	_ACPI_ALLOCATE_ZEROED
	str	x0, [x20]
	cbz	x0, LBB0_21
; %bb.20:
	cbnz	x24, LBB0_22
	b	LBB0_24
LBB0_21:
Lloh11:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	cbz	x24, LBB0_24
LBB0_22:
	mov	x8, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x21, x8]
	ldr	x10, [x20]
	strb	w9, [x10, x8]
	add	x9, x8, #1
	mov	x8, x9
	cmp	x24, x9
	b.ne	LBB0_23
LBB0_24:
	cbz	w26, LBB0_26
; %bb.25:
	add	x8, x21, x25
	ldrb	w9, [x8]
	ldr	x10, [x20]
	strb	w9, [x10, x24]
	ldr	x9, [x20]
	add	x9, x24, x9
	ldrb	w10, [x8, #1]
	strb	w10, [x9, #1]
	ldr	x9, [x20]
	add	x9, x24, x9
	ldrb	w10, [x8, #2]
	strb	w10, [x9, #2]
	ldr	x9, [x20]
	add	x9, x24, x9
	ldrb	w8, [x8, #3]
	strb	w8, [x9, #3]
LBB0_26:
	cbz	x19, LBB0_28
; %bb.27:
	str	x23, [x19]
LBB0_28:
Lloh14:
	adrp	x8, _AE_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
LBB0_29:
	mov	x25, #0
	mov	w26, #0
	mov	x24, x22
	mov	x8, x22
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ns_externalize_name,4,2        ; @ns_externalize_name
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid internal name"

	.comm	_AE_BAD_PATHNAME,4,2            ; @AE_BAD_PATHNAME
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
