	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ps_create_op
_acpi_ps_create_op:                     ## @acpi_ps_create_op
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	_ps_create_op@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_ACPI_FUNCTION_TRACE_PTR
	movq	%r14, %rdi
	callq	_acpi_ps_get_aml_opcode
	movq	%rax, %r15
	movq	_AE_CTRL_PARSE_CONTINUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	(%r14), %rdi
	callq	_acpi_ps_get_opcode_info
	movq	%rax, 32(%r14)
	movq	(%r14), %rdi
	callq	_acpi_ps_alloc_op
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	32(%r14), %rax
	movl	(%rax), %eax
	movq	_AML_NAMED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.5:
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_acpi_ps_build_named_op
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_acpi_ps_free_op
	movq	%r15, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_return_ACPI_STATUS
LBB0_7:
	movq	-56(%rbp), %rax
	movq	%rax, (%rbx)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_return_ACPI_STATUS
	movq	32(%r14), %rax
	movl	(%rax), %eax
LBB0_8:
	movq	_AML_CREATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	%r13, (%r12)
	movq	-48(%rbp), %r12
	movq	$0, 8(%r12)
LBB0_10:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	_AML_BANK_FIELD_OP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r13, (%r12)
	movq	-48(%rbp), %r12
	movq	$0, 8(%r12)
LBB0_12:
	leaq	24(%r14), %rdi
	callq	_acpi_ps_get_parent_scope
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_acpi_ps_append_arg
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.13:
	movq	(%rbx), %rdi
	callq	_acpi_ps_get_opcode_info
	movq	_AML_HAS_TARGET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.14:
	movl	4(%rax), %edi
	callq	_acpi_ps_get_argument_count
	cmpq	%rax, 8(%rbx)
	jle	LBB0_17
LBB0_16:
	movq	_ACPI_PARSEOP_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
LBB0_17:
	cmpq	$0, 8(%r14)
	je	LBB0_20
## %bb.18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	%r12, 16(%r14)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_acpi_ps_next_parse_state
	movq	%rax, %r15
	movq	_AE_CTRL_PENDING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_20
## %bb.19:
	movq	_AE_CTRL_PARSE_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_20:
	movq	%r15, %rdi
	callq	_return_ACPI_STATUS
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	(%rbx), %rax
	movq	_AML_INCREMENT_OP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,8,3                      ## @AE_OK
	.comm	_ps_create_op,4,2               ## @ps_create_op
	.comm	_AE_CTRL_PARSE_CONTINUE,8,3     ## @AE_CTRL_PARSE_CONTINUE
	.comm	_AE_NO_MEMORY,8,3               ## @AE_NO_MEMORY
	.comm	_AML_NAMED,4,2                  ## @AML_NAMED
	.comm	_AML_CREATE,4,2                 ## @AML_CREATE
	.comm	_AML_BANK_FIELD_OP,8,3          ## @AML_BANK_FIELD_OP
	.comm	_AML_HAS_TARGET,4,2             ## @AML_HAS_TARGET
	.comm	_ACPI_PARSEOP_TARGET,4,2        ## @ACPI_PARSEOP_TARGET
	.comm	_AML_INCREMENT_OP,8,3           ## @AML_INCREMENT_OP
	.comm	_AE_CTRL_PENDING,8,3            ## @AE_CTRL_PENDING
	.comm	_AE_CTRL_PARSE_PENDING,8,3      ## @AE_CTRL_PARSE_PENDING
	.no_dead_strip	_acpi_ps_create_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ps_create_op
_acpi_ps_create_op:                     ; @acpi_ps_create_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x23, x1
	mov	x19, x0
	str	xzr, [sp]
Lloh0:
	adrp	x8, _ps_create_op@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ps_create_op@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ACPI_FUNCTION_TRACE_PTR
	mov	x0, x19
	bl	_acpi_ps_get_aml_opcode
	mov	x21, x0
Lloh3:
	adrp	x8, _AE_CTRL_PARSE_CONTINUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_CTRL_PARSE_CONTINUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	x0, [x19]
	bl	_acpi_ps_get_opcode_info
	str	x0, [x19, #32]
	ldr	x0, [x19]
	bl	_acpi_ps_alloc_op
	mov	x22, x0
	str	x0, [sp, #8]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_return_ACPI_STATUS
LBB0_4:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _AML_NAMED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AML_NAMED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	mov	x3, sp
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_acpi_ps_build_named_op
	mov	x21, x0
	mov	x0, x22
	bl	_acpi_ps_free_op
	mov	x0, x21
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_7:
	ldr	x8, [sp]
	str	x8, [x20]
Lloh12:
	adrp	x8, _AE_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	bl	_return_ACPI_STATUS
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
LBB0_8:
Lloh15:
	adrp	x9, _AML_CREATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AML_CREATE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	str	x23, [x22]
	ldr	x22, [sp, #8]
	str	xzr, [x22, #8]
LBB0_10:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _AML_BANK_FIELD_OP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AML_BANK_FIELD_OP@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	str	x23, [x22]
	ldr	x22, [sp, #8]
	str	xzr, [x22, #8]
LBB0_12:
	add	x0, x19, #24
	bl	_acpi_ps_get_parent_scope
	mov	x23, x0
	mov	x1, x22
	bl	_acpi_ps_append_arg
	cbz	x23, LBB0_16
; %bb.13:
	ldr	x0, [x23]
	bl	_acpi_ps_get_opcode_info
	ldr	w8, [x0]
Lloh21:
	adrp	x9, _AML_HAS_TARGET@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AML_HAS_TARGET@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.14:
	ldr	w0, [x0, #4]
	bl	_acpi_ps_get_argument_count
	ldr	x8, [x23, #8]
	cmp	x8, x0
	b.le	LBB0_16
LBB0_15:
Lloh24:
	adrp	x8, _ACPI_PARSEOP_TARGET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ACPI_PARSEOP_TARGET@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	orr	w8, w9, w8
	str	w8, [x22, #16]
LBB0_16:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.17:
	str	x22, [x20]
	str	x22, [x19, #16]
	ldr	x8, [x19, #8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	mov	x2, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_acpi_ps_next_parse_state
Lloh27:
	adrp	x8, _AE_CTRL_PENDING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AE_CTRL_PENDING@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _AE_CTRL_PARSE_PENDING@GOTPAGE
Lloh31:
	ldr	x9, [x9, _AE_CTRL_PARSE_PENDING@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x21, x9, x0, eq
LBB0_18:
	mov	x0, x21
	bl	_return_ACPI_STATUS
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	ldr	x8, [x23]
Lloh33:
	adrp	x9, _AML_INCREMENT_OP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AML_INCREMENT_OP@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,8,3                      ; @AE_OK
	.comm	_ps_create_op,4,2               ; @ps_create_op
	.comm	_AE_CTRL_PARSE_CONTINUE,8,3     ; @AE_CTRL_PARSE_CONTINUE
	.comm	_AE_NO_MEMORY,8,3               ; @AE_NO_MEMORY
	.comm	_AML_NAMED,4,2                  ; @AML_NAMED
	.comm	_AML_CREATE,4,2                 ; @AML_CREATE
	.comm	_AML_BANK_FIELD_OP,8,3          ; @AML_BANK_FIELD_OP
	.comm	_AML_HAS_TARGET,4,2             ; @AML_HAS_TARGET
	.comm	_ACPI_PARSEOP_TARGET,4,2        ; @ACPI_PARSEOP_TARGET
	.comm	_AML_INCREMENT_OP,8,3           ; @AML_INCREMENT_OP
	.comm	_AE_CTRL_PENDING,8,3            ; @AE_CTRL_PENDING
	.comm	_AE_CTRL_PARSE_PENDING,8,3      ; @AE_CTRL_PARSE_PENDING
	.no_dead_strip	_acpi_ps_create_op
.subsections_via_symbols
