	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ex_allocate_name_string
_acpi_ex_allocate_name_string:          ## @acpi_ex_allocate_name_string
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	_ex_allocate_name_string@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %r13
	movq	_ACPI_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r14d, %eax
	leal	3(%r12), %ecx
	cmpl	%r12d, (%r13)
	movl	$4, %ebx
	cmovnel	%ecx, %ebx
	addl	%eax, %ebx
	movl	%ebx, %edi
	callq	_ACPI_ALLOCATE
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	%r12d, (%r13)
	jne	LBB0_4
LBB0_2:
	movq	_AML_ROOT_PREFIX@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r15, %rax
	incq	%rax
	movb	%cl, (%r15)
	jmp	LBB0_24
LBB0_3:
	movl	%ebx, %edi
	callq	_ACPI_ERROR
	xorl	%edi, %edi
	callq	_return_PTR
	cmpl	%r12d, (%r13)
	je	LBB0_2
LBB0_4:
	movq	%r15, %rax
	testl	%r12d, %r12d
	je	LBB0_24
## %bb.5:
	leal	-1(%r12), %ecx
	cmpl	$7, %ecx
	jb	LBB0_6
## %bb.7:
	movq	_AML_PARENT_PREFIX@GOTPCREL(%rip), %rax
	leaq	4(%rax), %rdx
	cmpq	%rdx, %r15
	jae	LBB0_10
## %bb.8:
	leaq	(%rcx,%r15), %rdx
	incq	%rdx
	cmpq	_AML_PARENT_PREFIX@GOTPCREL(%rip), %rdx
	jbe	LBB0_10
LBB0_6:
	movq	%r15, %rax
LBB0_17:
	leal	-1(%r12), %ecx
	testb	$7, %r12b
	je	LBB0_21
## %bb.18:
	movl	%r12d, %esi
	andl	$7, %esi
	xorl	%edx, %edx
	movq	_AML_PARENT_PREFIX@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi), %ebx
	movb	%bl, (%rax,%rdx)
	incq	%rdx
	cmpl	%edx, %esi
	jne	LBB0_19
## %bb.20:
	subl	%edx, %r12d
	addq	%rdx, %rax
LBB0_21:
	cmpl	$7, %ecx
	jb	LBB0_24
## %bb.22:
	movq	_AML_PARENT_PREFIX@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx), %edx
	movb	%dl, (%rax)
	movzbl	(%rcx), %edx
	movb	%dl, 1(%rax)
	movzbl	(%rcx), %edx
	movb	%dl, 2(%rax)
	movzbl	(%rcx), %edx
	movb	%dl, 3(%rax)
	movzbl	(%rcx), %edx
	movb	%dl, 4(%rax)
	movb	%dl, 5(%rax)
	movzbl	(%rcx), %edx
	movb	%dl, 6(%rax)
	movb	%dl, 7(%rax)
	addq	$8, %rax
	addl	$-8, %r12d
	jne	LBB0_23
	jmp	LBB0_24
LBB0_10:
	incq	%rcx
	movq	%rcx, %rdx
	andq	$-8, %rdx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.11:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	movd	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	punpcklbw	%xmm0, %xmm0            ## xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
	pshuflw	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0,4,5,6,7]
	xorl	%edi, %edi
	punpckldq	%xmm0, %xmm0            ## xmm0 = xmm0[0,0,1,1]
	punpcklqdq	%xmm0, %xmm0            ## xmm0 = xmm0[0,0]
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%r15,%rdi)
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_12
## %bb.13:
	testb	$1, %bl
	je	LBB0_15
LBB0_14:
	movd	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	punpcklbw	%xmm0, %xmm0            ## xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
	pshuflw	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0,4,5,6,7]
	movd	%xmm0, (%r15,%rdi)
	movd	%xmm0, 4(%r15,%rdi)
LBB0_15:
	movq	%r15, %rax
	addq	%rdx, %rax
	cmpq	%rdx, %rcx
	jne	LBB0_16
LBB0_24:
	cmpl	$3, %r14d
	jl	LBB0_26
## %bb.25:
	movq	_AML_MULTI_NAME_PREFIX_OP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	leaq	1(%rax), %rdx
	movb	%cl, (%rax)
	movl	$2, %ecx
	jmp	LBB0_28
LBB0_26:
	cmpl	$2, %r14d
	jne	LBB0_29
## %bb.27:
	movq	_AML_DUAL_NAME_PREFIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	$1, %ecx
	movq	%rax, %rdx
LBB0_28:
	addq	%rcx, %rax
	movb	%r14b, (%rdx)
LBB0_29:
	movb	$0, (%rax)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_PTR                     ## TAILCALL
LBB0_16:
	subl	%edx, %r12d
	jmp	LBB0_17
LBB0_30:
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ex_allocate_name_string,4,2    ## @ex_allocate_name_string
	.comm	_ACPI_UINT32_MAX,4,2            ## @ACPI_UINT32_MAX
	.comm	_ACPI_NAME_SIZE,4,2             ## @ACPI_NAME_SIZE
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_AML_ROOT_PREFIX,4,2            ## @AML_ROOT_PREFIX
	.comm	_AML_PARENT_PREFIX,4,2          ## @AML_PARENT_PREFIX
	.comm	_AML_MULTI_NAME_PREFIX_OP,4,2   ## @AML_MULTI_NAME_PREFIX_OP
	.comm	_AML_DUAL_NAME_PREFIX,4,2       ## @AML_DUAL_NAME_PREFIX
	.no_dead_strip	_acpi_ex_allocate_name_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ex_allocate_name_string
_acpi_ex_allocate_name_string:          ; @acpi_ex_allocate_name_string
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ex_allocate_name_string@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_allocate_name_string@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x23, _ACPI_UINT32_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ACPI_UINT32_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x9, _ACPI_NAME_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACPI_NAME_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w10, w21, #3
	mov	w11, #4
	cmp	w8, w21
	csel	w8, w11, w10, eq
	madd	w22, w9, w19, w8
	mov	x0, x22
	bl	_ACPI_ALLOCATE
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_ACPI_ERROR
	mov	x0, #0
	bl	_return_PTR
LBB0_2:
	ldr	w8, [x23]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _AML_ROOT_PREFIX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AML_ROOT_PREFIX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
	mov	x8, x20
	strb	w9, [x8], #1
	b	LBB0_13
LBB0_4:
	mov	x8, x20
	cbz	w21, LBB0_13
; %bb.5:
	sub	w8, w21, #1
Lloh11:
	adrp	x9, _AML_PARENT_PREFIX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AML_PARENT_PREFIX@GOTPAGEOFF]
	cmp	w8, #63
	b.hs	LBB0_7
; %bb.6:
	mov	x8, x20
	b	LBB0_12
LBB0_7:
	add	x10, x8, x20
	add	x10, x10, #1
	add	x11, x9, #4
	cmp	x20, x11
	ccmp	x10, x9, #0, lo
	b.hi	LBB0_11
; %bb.8:
	add	x10, x8, #1
	and	x11, x10, #0x1ffffffc0
	sub	w21, w21, w11
	add	x8, x20, x11
	ld1r.16b	{ v0 }, [x9]
	add	x12, x20, #32
	mov	x13, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #64
	b.ne	LBB0_9
; %bb.10:
	cmp	x10, x11
	b.ne	LBB0_12
	b	LBB0_13
LBB0_11:
	mov	x8, x20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	strb	w10, [x8], #1
	subs	w21, w21, #1
	b.ne	LBB0_12
LBB0_13:
	cmp	w19, #3
	b.lt	LBB0_15
; %bb.14:
Lloh13:
	adrp	x9, _AML_MULTI_NAME_PREFIX_OP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AML_MULTI_NAME_PREFIX_OP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	mov	x10, x8
	strb	w9, [x10], #1
	mov	w9, #2
	b	LBB0_17
LBB0_15:
	cmp	w19, #2
	b.ne	LBB0_18
; %bb.16:
Lloh16:
	adrp	x9, _AML_DUAL_NAME_PREFIX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AML_DUAL_NAME_PREFIX@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x9]
	mov	w9, #1
	mov	x10, x8
LBB0_17:
	add	x8, x8, x9
	strb	w19, [x10]
LBB0_18:
	strb	wzr, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_return_PTR
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_allocate_name_string,4,2    ; @ex_allocate_name_string
	.comm	_ACPI_UINT32_MAX,4,2            ; @ACPI_UINT32_MAX
	.comm	_ACPI_NAME_SIZE,4,2             ; @ACPI_NAME_SIZE
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AML_ROOT_PREFIX,4,2            ; @AML_ROOT_PREFIX
	.comm	_AML_PARENT_PREFIX,4,2          ; @AML_PARENT_PREFIX
	.comm	_AML_MULTI_NAME_PREFIX_OP,4,2   ; @AML_MULTI_NAME_PREFIX_OP
	.comm	_AML_DUAL_NAME_PREFIX,4,2       ; @AML_DUAL_NAME_PREFIX
	.no_dead_strip	_acpi_ex_allocate_name_string
.subsections_via_symbols
