	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_call_control_method    ## -- Begin function acpi_ds_call_control_method
	.p2align	4, 0x90
_acpi_ds_call_control_method:           ## @acpi_ds_call_control_method
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_ds_call_control_method@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE_PTR
	movl	%r15d, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	16(%r15), %r12
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	movq	_AE_NULL_ENTRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	%r12, %rdi
	callq	_acpi_ns_get_attached_object
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_AE_NULL_OBJECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_acpi_ds_begin_method_execution
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_return_ACPI_STATUS
LBB0_6:
	movl	32(%r14), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_acpi_ds_create_walk_state
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	$0, (%rcx,%rax,8)
	movl	$8, %edi
	callq	_ACPI_ALLOCATE_ZEROED
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_return_ACPI_STATUS
LBB0_10:
	movq	8(%r15), %rax
	movq	%rax, (%r13)
	movl	24(%r14), %r8d
	movl	28(%r14), %ecx
	movq	_ACPI_IMODE_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r13, %r9
	callq	_acpi_ds_init_aml_walk
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_ACPI_FREE
	movq	%r12, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_18
## %bb.11:
	movq	%rbx, %r13
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_acpi_ut_remove_reference
	movq	8(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_13
LBB0_14:
	movq	$0, (%r15)
	movq	%r13, %rbx
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AML_METHOD_INTERNAL_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_17
## %bb.15:
	movq	%rbx, %rdi
	callq	*16(%r14)
	movq	%rax, %r12
	movq	_AE_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_17
## %bb.16:
	movq	_AE_CTRL_TERMINATE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_17:
	movq	%r12, %rdi
	callq	_return_ACPI_STATUS
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_acpi_ds_terminate_control_method
	movq	%rbx, %rdi
	callq	_acpi_ds_delete_walk_state
	jmp	LBB0_19
LBB0_7:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_acpi_ds_terminate_control_method
LBB0_19:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_call_control_method,4,2     ## @ds_call_control_method
	.comm	_ACPI_DB_DISPATCH,4,2           ## @ACPI_DB_DISPATCH
	.comm	_AE_NULL_ENTRY,8,3              ## @AE_NULL_ENTRY
	.comm	_AE_NULL_OBJECT,8,3             ## @AE_NULL_OBJECT
	.comm	_AE_NO_MEMORY,8,3               ## @AE_NO_MEMORY
	.comm	_ACPI_IMODE_EXECUTE,4,2         ## @ACPI_IMODE_EXECUTE
	.comm	_AML_METHOD_INTERNAL_ONLY,4,2   ## @AML_METHOD_INTERNAL_ONLY
	.comm	_AE_OK,8,3                      ## @AE_OK
	.comm	_AE_CTRL_TERMINATE,8,3          ## @AE_CTRL_TERMINATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_call_control_method    ; -- Begin function acpi_ds_call_control_method
	.p2align	2
_acpi_ds_call_control_method:           ; @acpi_ds_call_control_method
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ds_call_control_method@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_call_control_method@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE_PTR
	mov	x0, x20
	bl	_ACPI_DEBUG_PRINT
	ldr	x22, [x20, #16]
	cbnz	x22, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AE_NULL_ENTRY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_NULL_ENTRY@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	mov	x0, x22
	bl	_acpi_ns_get_attached_object
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _AE_NULL_OBJECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_NULL_OBJECT@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_return_ACPI_STATUS
LBB0_4:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_acpi_ds_begin_method_execution
	mov	x23, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x23
	bl	_return_ACPI_STATUS
LBB0_6:
	ldr	w0, [x19, #32]
	mov	x1, #0
	mov	x2, x19
	mov	x3, x21
	bl	_acpi_ds_create_walk_state
	cbz	x0, LBB0_17
; %bb.7:
	mov	x21, x0
	ldp	x9, x8, [x20]
	str	xzr, [x8, x9, lsl #3]
	mov	w0, #8
	bl	_ACPI_ALLOCATE_ZEROED
	mov	x23, x0
	cbnz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	bl	_return_ACPI_STATUS
LBB0_9:
	ldr	x8, [x20, #8]
	str	x8, [x23]
	ldp	w4, w3, [x19, #24]
Lloh12:
	adrp	x8, _ACPI_IMODE_EXECUTE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_IMODE_EXECUTE@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x2, x22
	mov	x5, x23
	bl	_acpi_ds_init_aml_walk
	mov	x22, x0
	mov	x0, x23
	bl	_ACPI_FREE
	mov	x0, x22
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_16
; %bb.10:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	lsl	x24, x23, #3
	ldr	x0, [x8, x24]
	bl	_acpi_ut_remove_reference
	ldr	x8, [x20, #8]
	str	xzr, [x8, x24]
	add	x23, x23, #1
	ldr	x8, [x19]
	cmp	x23, x8
	b.lo	LBB0_12
LBB0_13:
	str	xzr, [x20]
	mov	x0, x21
	bl	_ACPI_DEBUG_PRINT
	ldr	w8, [x19, #8]
Lloh15:
	adrp	x9, _AML_METHOD_INTERNAL_ONLY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AML_METHOD_INTERNAL_ONLY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [x19, #16]
	mov	x0, x21
	blr	x8
Lloh18:
	adrp	x8, _AE_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _AE_CTRL_TERMINATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AE_CTRL_TERMINATE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x22, x9, x0, eq
LBB0_15:
	mov	x0, x22
	bl	_return_ACPI_STATUS
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	bl	_acpi_ds_terminate_control_method
	mov	x0, x21
	bl	_acpi_ds_delete_walk_state
	b	LBB0_18
LBB0_17:
Lloh24:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh26:
	ldr	x22, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_acpi_ds_terminate_control_method
LBB0_18:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_call_control_method,4,2     ; @ds_call_control_method
	.comm	_ACPI_DB_DISPATCH,4,2           ; @ACPI_DB_DISPATCH
	.comm	_AE_NULL_ENTRY,8,3              ; @AE_NULL_ENTRY
	.comm	_AE_NULL_OBJECT,8,3             ; @AE_NULL_OBJECT
	.comm	_AE_NO_MEMORY,8,3               ; @AE_NO_MEMORY
	.comm	_ACPI_IMODE_EXECUTE,4,2         ; @ACPI_IMODE_EXECUTE
	.comm	_AML_METHOD_INTERNAL_ONLY,4,2   ; @AML_METHOD_INTERNAL_ONLY
	.comm	_AE_OK,8,3                      ; @AE_OK
	.comm	_AE_CTRL_TERMINATE,8,3          ; @AE_CTRL_TERMINATE
.subsections_via_symbols
