	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ps_get_arg                ## -- Begin function acpi_ps_get_arg
	.p2align	4, 0x90
_acpi_ps_get_arg:                       ## @acpi_ps_get_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	movl	16(%r15), %edi
	callq	_acpi_ps_get_opcode_info
	movq	(%rax), %rcx
	movq	_AML_CLASS_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.1:
	movq	_AML_HAS_ARGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_2
## %bb.3:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	testq	%r14, %r14
	je	LBB0_8
## %bb.5:
	decq	%r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rbx
	addq	$-1, %r14
	setb	%al
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	jne	LBB0_6
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AML_CLASS_UNKNOWN,8,3          ## @AML_CLASS_UNKNOWN
	.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_get_arg                ; -- Begin function acpi_ps_get_arg
	.p2align	2
_acpi_ps_get_arg:                       ; @acpi_ps_get_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	x19, x1
	mov	x20, x0
	bl	_ACPI_FUNCTION_ENTRY
	ldr	w0, [x20, #16]
	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.eq	LBB0_7
; %bb.1:
	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_7
; %bb.2:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.3:
	cbz	x19, LBB0_8
; %bb.4:
	sub	x8, x19, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x0]
	subs	x8, x8, #1
	cset	w9, hs
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w9, #0, LBB0_5
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	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	_AML_HAS_ARGS,4,2               ; @AML_HAS_ARGS
.subsections_via_symbols
