	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ps_append_arg             ## -- Begin function acpi_ps_append_arg
	.p2align	4, 0x90
_acpi_ps_append_arg:                    ## @acpi_ps_append_arg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movl	32(%r14), %edi
	callq	_acpi_ps_get_opcode_info
	movq	(%rax), %rcx
	movq	_AML_CLASS_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.11:
	movl	32(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ACPI_ERROR                     ## TAILCALL
LBB0_2:
	movq	_AML_HAS_ARGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_10
## %bb.3:
	movq	24(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.6:
	addq	$8, %rax
	movq	%rbx, (%rax)
	jmp	LBB0_9
LBB0_4:
	leaq	24(%r14), %rax
	movq	%rbx, (%rax)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, 16(%rbx)
	movq	8(%rbx), %rbx
	incl	(%r14)
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AML_CLASS_UNKNOWN,8,3          ## @AML_CLASS_UNKNOWN
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_AML_HAS_ARGS,4,2               ## @AML_HAS_ARGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ps_append_arg             ; -- Begin function acpi_ps_append_arg
	.p2align	2
_acpi_ps_append_arg:                    ; @acpi_ps_append_arg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_ACPI_FUNCTION_ENTRY
	cbz	x19, LBB0_9
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_acpi_ps_get_opcode_info
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AML_CLASS_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AML_CLASS_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ACPI_ERROR
LBB0_3:
	ldr	w8, [x0, #8]
Lloh3:
	adrp	x9, _AML_HAS_ARGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AML_HAS_ARGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.4:
	mov	x8, x19
	ldr	x9, [x8, #24]!
	cbz	x9, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_5
; %bb.6:
	add	x8, x8, #8
LBB0_7:
	str	x20, [x8]
	cbz	x20, LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	x19, [x20, #16]
	ldr	x20, [x20, #8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	cbnz	x20, LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AML_CLASS_UNKNOWN,8,3          ; @AML_CLASS_UNKNOWN
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AML_HAS_ARGS,4,2               ; @AML_HAS_ARGS
.subsections_via_symbols
