	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_begin_method_execution ## -- Begin function acpi_ds_begin_method_execution
	.p2align	4, 0x90
_acpi_ds_begin_method_execution:        ## @acpi_ds_begin_method_execution
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ds_begin_method_execution@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_ACPI_FUNCTION_TRACE_PTR
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	movq	_AE_NULL_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	(%rbx), %rax
	movq	_ACPI_UINT8_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_AML_METHOD_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	_AML_METHOD_SERIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_20
## %bb.5:
	cmpq	$0, 24(%rbx)
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_acpi_ds_create_method_mutex
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_8:
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	24(%rbx), %rax
	cmpq	(%rax), %rcx
	jle	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_acpi_ut_get_node_name
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_MUTEX_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movq	24(%rbx), %rax
LBB0_12:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movq	(%r15), %rdx
	cmpq	%rcx, 8(%rdx)
	jne	LBB0_14
	jmp	LBB0_19
LBB0_9:
	movq	24(%rbx), %rax
LBB0_14:
	movl	24(%rax), %edi
	movq	_ACPI_WAIT_FOREVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acpi_ex_system_wait_mutex
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_16:
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	24(%rbx), %rdx
	movq	%rcx, 16(%rdx)
	movq	8(%rax), %rcx
	movq	24(%rbx), %rdx
	movq	%rcx, 8(%rdx)
	movq	16(%rbx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_19
LBB0_18:
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rax)
LBB0_19:
	movq	24(%rbx), %rax
	incl	28(%rax)
LBB0_20:
	cmpl	$0, 32(%rbx)
	je	LBB0_21
LBB0_22:
	incq	(%rbx)
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
	jmp	LBB0_23
LBB0_21:
	leaq	32(%rbx), %rdi
	callq	_acpi_ut_allocate_owner_id
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_22
LBB0_23:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	24(%rax), %edi
	callq	_acpi_os_release_mutex
LBB0_25:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ds_begin_method_execution,4,2  ## @ds_begin_method_execution
	.comm	_AE_NULL_ENTRY,4,2              ## @AE_NULL_ENTRY
	.comm	_ACPI_UINT8_MAX,8,3             ## @ACPI_UINT8_MAX
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Method reached maximum reentrancy limit (255)"

	.comm	_AE_AML_METHOD_LIMIT,4,2        ## @AE_AML_METHOD_LIMIT
	.comm	_AML_METHOD_SERIALIZED,4,2      ## @AML_METHOD_SERIALIZED
	.comm	_AE_AML_MUTEX_ORDER,4,2         ## @AE_AML_MUTEX_ORDER
	.comm	_ACPI_WAIT_FOREVER,4,2          ## @ACPI_WAIT_FOREVER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ds_begin_method_execution ; -- Begin function acpi_ds_begin_method_execution
	.p2align	2
_acpi_ds_begin_method_execution:        ; @acpi_ds_begin_method_execution
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ds_begin_method_execution@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ds_begin_method_execution@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_ACPI_FUNCTION_TRACE_PTR
	cbnz	x22, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AE_NULL_ENTRY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_NULL_ENTRY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _ACPI_UINT8_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ACPI_UINT8_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh14:
	adrp	x8, _AE_AML_METHOD_LIMIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_AML_METHOD_LIMIT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_4:
	ldr	w8, [x19, #8]
Lloh17:
	adrp	x9, _AML_METHOD_SERIALIZED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AML_METHOD_SERIALIZED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.5:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_acpi_ds_create_method_mutex
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_8:
	cbz	x21, LBB0_13
; %bb.9:
	ldr	x8, [x21]
	ldr	x9, [x8]
	ldr	x8, [x19, #24]
	ldr	x10, [x8]
	cmp	x9, x10
	b.le	LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_acpi_ut_get_node_name
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_ACPI_ERROR
Lloh20:
	adrp	x8, _AE_AML_MUTEX_ORDER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AE_AML_MUTEX_ORDER@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	x8, [x19, #24]
LBB0_11:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_14
; %bb.12:
	ldr	x10, [x21]
	ldr	x10, [x10, #8]
	cmp	x10, x9
	b.ne	LBB0_14
	b	LBB0_19
LBB0_13:
	ldr	x8, [x19, #24]
LBB0_14:
	ldr	w0, [x8, #24]
Lloh23:
	adrp	x8, _ACPI_WAIT_FOREVER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ACPI_WAIT_FOREVER@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_acpi_ex_system_wait_mutex
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_16:
	cbz	x21, LBB0_18
; %bb.17:
	ldr	x8, [x21]
	ldr	x9, [x19, #24]
	ldp	x10, x11, [x8]
	str	x10, [x9, #16]
	ldr	x9, [x19, #24]
	str	x11, [x9, #8]
	ldr	x9, [x19, #16]
	str	x9, [x8]
	b	LBB0_19
LBB0_18:
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	str	x9, [x8, #16]
LBB0_19:
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #28]
	add	w9, w9, #1
	str	w9, [x8, #28]
LBB0_20:
	mov	x0, x19
	ldr	w8, [x0, #32]!
	cbz	w8, LBB0_22
LBB0_21:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	x0, x20
	bl	_return_ACPI_STATUS
	b	LBB0_23
LBB0_22:
	bl	_acpi_ut_allocate_owner_id
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_21
LBB0_23:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	w0, [x8, #24]
	bl	_acpi_os_release_mutex
LBB0_25:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ds_begin_method_execution,4,2  ; @ds_begin_method_execution
	.comm	_AE_NULL_ENTRY,4,2              ; @AE_NULL_ENTRY
	.comm	_ACPI_UINT8_MAX,8,3             ; @ACPI_UINT8_MAX
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Method reached maximum reentrancy limit (255)"

	.comm	_AE_AML_METHOD_LIMIT,4,2        ; @AE_AML_METHOD_LIMIT
	.comm	_AML_METHOD_SERIALIZED,4,2      ; @AML_METHOD_SERIALIZED
	.comm	_AE_AML_MUTEX_ORDER,4,2         ; @AE_AML_MUTEX_ORDER
	.comm	_ACPI_WAIT_FOREVER,4,2          ; @ACPI_WAIT_FOREVER
.subsections_via_symbols
