	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ut_delete_mutex
_acpi_ut_delete_mutex:                  ## @acpi_ut_delete_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ut_delete_mutex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ACPI_FUNCTION_TRACE_U32
	movq	_ACPI_MAX_MUTEX@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_acpi_gbl_mutex_info@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	shlq	$4, %rbx
	movq	8(%rax,%rbx), %rdi
	callq	_acpi_os_delete_mutex
	movq	(%r14), %rax
	movq	$0, 8(%rax,%rbx)
	movq	_ACPI_MUTEX_NOT_ACQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ut_delete_mutex,4,2            ## @ut_delete_mutex
	.comm	_ACPI_MAX_MUTEX,8,3             ## @ACPI_MAX_MUTEX
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_acpi_gbl_mutex_info,8,3        ## @acpi_gbl_mutex_info
	.comm	_ACPI_MUTEX_NOT_ACQUIRED,4,2    ## @ACPI_MUTEX_NOT_ACQUIRED
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_acpi_ut_delete_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ut_delete_mutex
_acpi_ut_delete_mutex:                  ; @acpi_ut_delete_mutex
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ut_delete_mutex@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ut_delete_mutex@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ACPI_FUNCTION_TRACE_U32
Lloh3:
	adrp	x8, _ACPI_MAX_MUTEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_MAX_MUTEX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
Lloh9:
	adrp	x20, _acpi_gbl_mutex_info@GOTPAGE
Lloh10:
	ldr	x20, [x20, _acpi_gbl_mutex_info@GOTPAGEOFF]
	ldr	x8, [x20]
	lsl	x19, x19, #4
	add	x8, x8, x19
	ldr	x0, [x8, #8]
	bl	_acpi_os_delete_mutex
	ldr	x8, [x20]
	add	x8, x8, x19
	str	xzr, [x8, #8]
Lloh11:
	adrp	x8, _ACPI_MUTEX_NOT_ACQUIRED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACPI_MUTEX_NOT_ACQUIRED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, x19]
Lloh14:
	adrp	x8, _AE_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ut_delete_mutex,4,2            ; @ut_delete_mutex
	.comm	_ACPI_MAX_MUTEX,8,3             ; @ACPI_MAX_MUTEX
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_acpi_gbl_mutex_info,8,3        ; @acpi_gbl_mutex_info
	.comm	_ACPI_MUTEX_NOT_ACQUIRED,4,2    ; @ACPI_MUTEX_NOT_ACQUIRED
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_acpi_ut_delete_mutex
.subsections_via_symbols
