	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_acquire_mutex_object   ## -- Begin function acpi_ex_acquire_mutex_object
	.p2align	4, 0x90
_acpi_ex_acquire_mutex_object:          ## @acpi_ex_acquire_mutex_object
	.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
	movl	%edi, %r15d
	movq	_ex_acquire_mutex_object@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE_PTR
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	cmpq	%r14, (%rbx)
	jne	LBB0_4
LBB0_3:
	incl	8(%rbx)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	_acpi_gbl_global_lock_mutex@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_5
## %bb.6:
	movl	32(%rbx), %edi
	movl	%r15d, %esi
	callq	_acpi_ex_system_wait_mutex
	jmp	LBB0_7
LBB0_1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	cmpq	%r14, (%rbx)
	je	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movl	%r15d, %edi
	callq	_acpi_ev_acquire_global_lock
LBB0_7:
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	%r15d, %edi
	callq	_return_ACPI_STATUS
LBB0_9:
	movq	%r14, (%rbx)
	movl	$1, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %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_object,4,2    ## @ex_acquire_mutex_object
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_acpi_gbl_global_lock_mutex,8,3 ## @acpi_gbl_global_lock_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_acquire_mutex_object   ; -- Begin function acpi_ex_acquire_mutex_object
	.p2align	2
_acpi_ex_acquire_mutex_object:          ; @acpi_ex_acquire_mutex_object
	.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_object@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_acquire_mutex_object@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE_PTR
	cbnz	x19, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	x8, [x19]
Lloh6:
	adrp	x22, _AE_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AE_OK@GOTPAGEOFF]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w0, [x22]
	bl	_return_ACPI_STATUS
LBB0_4:
Lloh8:
	adrp	x8, _acpi_gbl_global_lock_mutex@GOTPAGE
Lloh9:
	ldr	x8, [x8, _acpi_gbl_global_lock_mutex@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #32]
	mov	x1, x21
	bl	_acpi_ex_system_wait_mutex
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_acpi_ev_acquire_global_lock
LBB0_7:
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_9:
	str	x20, [x19]
	mov	w8, #1
	str	w8, [x19, #8]
	stp	xzr, xzr, [x19, #16]
	ldr	w0, [x22]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_acquire_mutex_object,4,2    ; @ex_acquire_mutex_object
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_acpi_gbl_global_lock_mutex,8,3 ; @acpi_gbl_global_lock_mutex
.subsections_via_symbols
