	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ps_get_next_namestring    ## -- Begin function acpi_ps_get_next_namestring
	.p2align	4, 0x90
_acpi_ps_get_next_namestring:           ## @acpi_ps_get_next_namestring
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_ps_get_next_namestring@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx), %edi
	callq	_acpi_ps_is_prefix_char
	addq	$-4, %r12
	addq	$4, %rbx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	-4(%r15,%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	je	LBB0_7
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%r15, %rax
	subq	%r12, %rax
	xorl	%ecx, %ecx
	cmpq	$-4, %r12
	cmoveq	%rcx, %r15
	jmp	LBB0_9
LBB0_6:
	movq	_ACPI_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	cltq
	leaq	(%r15,%rax,4), %rax
	subq	%r12, %rax
	jmp	LBB0_9
LBB0_7:
	movslq	(%r15,%rbx), %rax
	movq	_ACPI_NAME_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	leaq	(%r15,%rcx,4), %rax
	subq	%r12, %rax
	addq	$4, %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ACPI_NAME_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r15,%rax,4), %rax
	subq	%r12, %rax
	addq	$-4, %rax
LBB0_9:
	movq	%rax, (%r14)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_PTR                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ps_get_next_namestring,4,2     ## @ps_get_next_namestring
	.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_ps_get_next_namestring    ; -- Begin function acpi_ps_get_next_namestring
	.p2align	2
_acpi_ps_get_next_namestring:           ; @acpi_ps_get_next_namestring
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _ps_get_next_namestring@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ps_get_next_namestring@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	mov	x21, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x21]
	bl	_acpi_ps_is_prefix_char
	add	x21, x21, #4
	cbnz	x0, LBB0_1
; %bb.2:
	add	x8, x20, x21
	ldur	w9, [x8, #-4]
	cmp	w9, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w9, #128
	b.eq	LBB0_7
; %bb.4:
	cbnz	w9, LBB0_8
; %bb.5:
	cmp	x21, #4
	csel	x20, xzr, x20, eq
	b	LBB0_10
LBB0_6:
Lloh3:
	adrp	x8, _ACPI_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_NAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	x8, x20, w8, sxtw #2
	add	x8, x8, x21
	b	LBB0_10
LBB0_7:
	ldr	w8, [x20, x21]
Lloh6:
	adrp	x9, _ACPI_NAME_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_NAME_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w10, wzr, #0x2
	madd	w8, w9, w8, w10
	add	x8, x20, w8, sxtw #2
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _ACPI_NAME_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_NAME_SIZE@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #2
LBB0_9:
	add	x8, x8, x21
	sub	x8, x8, #4
LBB0_10:
	str	x8, [x19]
	mov	x0, x20
	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
	b	_return_PTR
	.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	_ps_get_next_namestring,4,2     ; @ps_get_next_namestring
	.comm	_ACPI_NAME_SIZE,4,2             ; @ACPI_NAME_SIZE
.subsections_via_symbols
