	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_acquire_mutex          ## -- Begin function acpi_ex_acquire_mutex
	.p2align	4, 0x90
_acpi_ex_acquire_mutex:                 ## @acpi_ex_acquire_mutex
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_ex_acquire_mutex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE_PTR
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	32(%rbx), %edi
	callq	_acpi_ut_get_node_name
	movl	%eax, %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movq	(%r14), %rax
LBB0_4:
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	jle	LBB0_6
## %bb.5:
	movl	32(%rbx), %edi
	callq	_acpi_ut_get_node_name
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_ACPI_ERROR
	movq	_AE_AML_MUTEX_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movq	(%r14), %rax
LBB0_6:
	movl	(%r15), %edi
	movl	8(%rax), %edx
	movq	%rbx, %rsi
	callq	_acpi_ex_acquire_mutex_object
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	cmpl	$1, 8(%rbx)
	jne	LBB0_9
## %bb.8:
	movq	(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rax
	movq	(%r14), %rsi
	movq	%rax, (%rsi)
	movq	%rbx, %rdi
	callq	_acpi_ex_link_mutex
LBB0_9:
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ex_acquire_mutex,4,2           ## @ex_acquire_mutex
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_AE_AML_INTERNAL,4,2            ## @AE_AML_INTERNAL
	.comm	_AE_AML_MUTEX_ORDER,4,2         ## @AE_AML_MUTEX_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_acquire_mutex          ; -- Begin function acpi_ex_acquire_mutex
	.p2align	2
_acpi_ex_acquire_mutex:                 ; @acpi_ex_acquire_mutex
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ex_acquire_mutex@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_acquire_mutex@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE_PTR
	cbz	x19, LBB0_9
; %bb.1:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
LBB0_2:
	ldr	w0, [x19, #32]
	bl	_acpi_ut_get_node_name
	bl	_ACPI_ERROR
Lloh3:
	adrp	x8, _AE_AML_INTERNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_AML_INTERNAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	x8, [x20]
LBB0_3:
	ldr	x9, [x8]
	ldr	x10, [x19]
	cmp	x9, x10
	b.le	LBB0_5
; %bb.4:
	ldr	w0, [x19, #32]
	bl	_acpi_ut_get_node_name
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_ACPI_ERROR
Lloh6:
	adrp	x8, _AE_AML_MUTEX_ORDER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_AML_MUTEX_ORDER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	x8, [x20]
LBB0_5:
	ldr	w0, [x21]
	ldr	w2, [x8, #8]
	mov	x1, x19
	bl	_acpi_ex_acquire_mutex_object
	mov	x21, x0
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x20]
	str	x8, [x19, #24]
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	x8, [x19]
	ldr	x1, [x20]
	str	x8, [x1]
	mov	x0, x19
	bl	_acpi_ex_link_mutex
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
Lloh9:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_acquire_mutex,4,2           ; @ex_acquire_mutex
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_AE_AML_INTERNAL,4,2            ; @AE_AML_INTERNAL
	.comm	_AE_AML_MUTEX_ORDER,4,2         ; @AE_AML_MUTEX_ORDER
.subsections_via_symbols
