	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_release_mutex_object   ## -- Begin function acpi_ex_release_mutex_object
	.p2align	4, 0x90
_acpi_ex_release_mutex_object:          ## @acpi_ex_release_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	%rdi, %rbx
	movq	_AE_OK@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	_ex_release_mutex_object@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	decq	%rax
	movq	%rax, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_acpi_ex_unlink_mutex
	movq	$0, 24(%rbx)
LBB0_6:
	movq	_acpi_gbl_global_lock_mutex@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_7
## %bb.8:
	movl	16(%rbx), %edi
	callq	_acpi_os_release_mutex
	jmp	LBB0_9
LBB0_1:
	movq	_AE_NOT_ACQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
	callq	_acpi_ev_release_global_lock
	movl	%eax, %r14d
LBB0_9:
	movq	$0, 8(%rbx)
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
                                        ## implicit-def: $eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ex_release_mutex_object,4,2    ## @ex_release_mutex_object
	.comm	_AE_NOT_ACQUIRED,4,2            ## @AE_NOT_ACQUIRED
	.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_release_mutex_object   ; -- Begin function acpi_ex_release_mutex_object
	.p2align	2
_acpi_ex_release_mutex_object:          ; @acpi_ex_release_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	x19, x0
Lloh0:
	adrp	x21, _AE_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AE_OK@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh2:
	adrp	x8, _ex_release_mutex_object@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ex_release_mutex_object@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.1:
	subs	x8, x8, #1
	str	x8, [x19]
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_return_ACPI_STATUS
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_acpi_ex_unlink_mutex
	str	xzr, [x19, #24]
LBB0_5:
Lloh5:
	adrp	x8, _acpi_gbl_global_lock_mutex@GOTPAGE
Lloh6:
	ldr	x8, [x8, _acpi_gbl_global_lock_mutex@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x19, #16]
	bl	_acpi_os_release_mutex
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _AE_NOT_ACQUIRED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_NOT_ACQUIRED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_8:
	bl	_acpi_ev_release_global_lock
	mov	x20, x0
LBB0_9:
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_return_ACPI_STATUS
                                        ; implicit-def: $w0
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ex_release_mutex_object,4,2    ; @ex_release_mutex_object
	.comm	_AE_NOT_ACQUIRED,4,2            ; @AE_NOT_ACQUIRED
	.comm	_acpi_gbl_global_lock_mutex,8,3 ; @acpi_gbl_global_lock_mutex
.subsections_via_symbols
