	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ps_get_next_field
_acpi_ps_get_next_field:                ## @acpi_ps_get_next_field
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	4(%r14), %esi
	callq	_ACPI_PTR_DIFF
	movl	%eax, %r15d
	movq	_ps_get_next_field@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movl	(%r14), %edi
	callq	_ACPI_GET8
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$129, %ebx
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	movl	$130, %ebx
	jmp	LBB0_4
LBB0_1:
	movl	$128, %ebx
LBB0_4:
	incl	(%r14)
LBB0_5:
	movl	%ebx, %edi
	callq	_acpi_ps_alloc_op
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	callq	_return_PTR
LBB0_7:
	movl	%r15d, (%r12)
	cmpb	$-128, %bl
	je	LBB0_11
## %bb.8:
	cmpb	$-126, %bl
	je	LBB0_12
## %bb.9:
	cmpb	$-127, %bl
	jne	LBB0_13
## %bb.10:
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdi
	callq	_ACPI_MOVE_32_TO_32
	movl	-36(%rbp), %esi
	movq	%r12, %rdi
	callq	_acpi_ps_set_name
	movq	_ACPI_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, (%r14)
LBB0_11:
	movq	%r14, %rdi
	callq	_acpi_ps_get_next_package_length
	movq	%rax, 16(%r12)
	jmp	LBB0_13
LBB0_12:
	movl	(%r14), %edi
	callq	_ACPI_GET8
	shll	$8, %eax
	movl	%eax, 8(%r12)
	movl	(%r14), %edi
	incl	%edi
	movl	%edi, (%r14)
	callq	_ACPI_GET8
	orl	%eax, 8(%r12)
	incl	(%r14)
LBB0_13:
	movq	%r12, %rdi
	callq	_return_PTR
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ps_get_next_field,4,2          ## @ps_get_next_field
	.comm	_ACPI_NAME_SIZE,4,2             ## @ACPI_NAME_SIZE
	.no_dead_strip	_acpi_ps_get_next_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ps_get_next_field
_acpi_ps_get_next_field:                ; @acpi_ps_get_next_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w1, [x19, #4]
	bl	_ACPI_PTR_DIFF
	mov	x21, x0
Lloh0:
	adrp	x8, _ps_get_next_field@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ps_get_next_field@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	w0, [x19]
	bl	_ACPI_GET8
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
	mov	w22, #130
	b	LBB0_4
LBB0_3:
	mov	w22, #128
LBB0_4:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	w22, #129
LBB0_6:
	mov	x0, x22
	bl	_acpi_ps_alloc_op
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
	bl	_return_PTR
LBB0_8:
	str	w21, [x20]
	ands	w8, w22, #0x3
	b.eq	LBB0_12
; %bb.9:
	cmp	w8, #2
	b.eq	LBB0_13
; %bb.10:
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.11:
	ldr	w1, [x19]
	add	x0, sp, #12
	bl	_ACPI_MOVE_32_TO_32
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_acpi_ps_set_name
Lloh3:
	adrp	x8, _ACPI_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_NAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
LBB0_12:
	mov	x0, x19
	bl	_acpi_ps_get_next_package_length
	str	x0, [x20, #16]
	b	LBB0_14
LBB0_13:
	ldr	w0, [x19]
	bl	_ACPI_GET8
	lsl	w8, w0, #8
	str	w8, [x20, #8]
	ldr	w8, [x19]
	add	w0, w8, #1
	str	w0, [x19]
	bl	_ACPI_GET8
	ldr	w8, [x20, #8]
	orr	w8, w8, w0
	str	w8, [x20, #8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_14:
	mov	x0, x20
	bl	_return_PTR
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ps_get_next_field,4,2          ; @ps_get_next_field
	.comm	_ACPI_NAME_SIZE,4,2             ; @ACPI_NAME_SIZE
	.no_dead_strip	_acpi_ps_get_next_field
.subsections_via_symbols
