	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_release_global_lock    ## -- Begin function acpi_ev_release_global_lock
	.p2align	4, 0x90
_acpi_ev_release_global_lock:           ## @acpi_ev_release_global_lock
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_AE_OK@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	_ev_release_global_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_acpi_gbl_global_lock_acquired@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_WARNING
	movq	_AE_NOT_ACQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_acpi_ev_global_lock_acquired@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r13)
	cmpq	$2, %rax
	jl	LBB0_4
## %bb.3:
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_4:
	movq	_acpi_gbl_global_lock_present@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_acpi_gbl_FACS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ACPI_RELEASE_GLOBAL_LOCK
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	_ACPI_BITREG_GLOBAL_LOCK_RELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_ENABLE_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acpi_write_bit_register
	movl	%eax, %r14d
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
LBB0_8:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_acpi_ev_global_lock_thread_id@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	$0, (%r13)
	movq	_acpi_gbl_global_lock_mutex@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_acpi_os_release_mutex
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
                                        ## implicit-def: $eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ev_release_global_lock,4,2     ## @ev_release_global_lock
	.comm	_acpi_gbl_global_lock_acquired,8,3 ## @acpi_gbl_global_lock_acquired
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot release the ACPI Global Lock, it has not been acquired"

	.comm	_AE_NOT_ACQUIRED,4,2            ## @AE_NOT_ACQUIRED
	.comm	_acpi_ev_global_lock_acquired,8,3 ## @acpi_ev_global_lock_acquired
	.comm	_acpi_gbl_global_lock_present,8,3 ## @acpi_gbl_global_lock_present
	.comm	_acpi_gbl_FACS,4,2              ## @acpi_gbl_FACS
	.comm	_ACPI_BITREG_GLOBAL_LOCK_RELEASE,4,2 ## @ACPI_BITREG_GLOBAL_LOCK_RELEASE
	.comm	_ACPI_ENABLE_EVENT,4,2          ## @ACPI_ENABLE_EVENT
	.comm	_ACPI_DB_EXEC,4,2               ## @ACPI_DB_EXEC
L_.str.1:                               ## @.str.1
	.asciz	"Released hardware Global Lock\n"

	.comm	_acpi_ev_global_lock_thread_id,8,3 ## @acpi_ev_global_lock_thread_id
	.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_ev_release_global_lock    ; -- Begin function acpi_ev_release_global_lock
	.p2align	2
_acpi_ev_release_global_lock:           ; @acpi_ev_release_global_lock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _FALSE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh2:
	adrp	x24, _AE_OK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AE_OK@GOTPAGEOFF]
	ldr	w19, [x24]
Lloh4:
	adrp	x8, _ev_release_global_lock@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ev_release_global_lock@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh7:
	adrp	x22, _acpi_gbl_global_lock_acquired@GOTPAGE
Lloh8:
	ldr	x22, [x22, _acpi_gbl_global_lock_acquired@GOTPAGEOFF]
	ldr	x8, [x22]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_WARNING
Lloh11:
	adrp	x8, _AE_NOT_ACQUIRED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_NOT_ACQUIRED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
Lloh14:
	adrp	x23, _acpi_ev_global_lock_acquired@GOTPAGE
Lloh15:
	ldr	x23, [x23, _acpi_ev_global_lock_acquired@GOTPAGEOFF]
	ldr	x8, [x23]
	sub	x9, x8, #1
	str	x9, [x23]
	cmp	x8, #2
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x24]
	b	LBB0_9
LBB0_4:
Lloh16:
	adrp	x8, _acpi_gbl_global_lock_present@GOTPAGE
Lloh17:
	ldr	x8, [x8, _acpi_gbl_global_lock_present@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
Lloh19:
	adrp	x8, _acpi_gbl_FACS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _acpi_gbl_FACS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ACPI_RELEASE_GLOBAL_LOCK
	cbz	x20, LBB0_7
; %bb.6:
Lloh22:
	adrp	x8, _ACPI_BITREG_GLOBAL_LOCK_RELEASE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ACPI_BITREG_GLOBAL_LOCK_RELEASE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _ACPI_ENABLE_EVENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ACPI_ENABLE_EVENT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_acpi_write_bit_register
	mov	x19, x0
LBB0_7:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
LBB0_8:
	ldr	x8, [x21]
	str	x8, [x22]
Lloh30:
	adrp	x8, _acpi_ev_global_lock_thread_id@GOTPAGE
Lloh31:
	ldr	x8, [x8, _acpi_ev_global_lock_thread_id@GOTPAGEOFF]
Lloh32:
	str	xzr, [x8]
	str	xzr, [x23]
Lloh33:
	adrp	x8, _acpi_gbl_global_lock_mutex@GOTPAGE
Lloh34:
	ldr	x8, [x8, _acpi_gbl_global_lock_mutex@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_acpi_os_release_mutex
	mov	x0, x19
	bl	_return_ACPI_STATUS
                                        ; implicit-def: $w0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ev_release_global_lock,4,2     ; @ev_release_global_lock
	.comm	_acpi_gbl_global_lock_acquired,8,3 ; @acpi_gbl_global_lock_acquired
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot release the ACPI Global Lock, it has not been acquired"

	.comm	_AE_NOT_ACQUIRED,4,2            ; @AE_NOT_ACQUIRED
	.comm	_acpi_ev_global_lock_acquired,8,3 ; @acpi_ev_global_lock_acquired
	.comm	_acpi_gbl_global_lock_present,8,3 ; @acpi_gbl_global_lock_present
	.comm	_acpi_gbl_FACS,4,2              ; @acpi_gbl_FACS
	.comm	_ACPI_BITREG_GLOBAL_LOCK_RELEASE,4,2 ; @ACPI_BITREG_GLOBAL_LOCK_RELEASE
	.comm	_ACPI_ENABLE_EVENT,4,2          ; @ACPI_ENABLE_EVENT
	.comm	_ACPI_DB_EXEC,4,2               ; @ACPI_DB_EXEC
l_.str.1:                               ; @.str.1
	.asciz	"Released hardware Global Lock\n"

	.comm	_acpi_ev_global_lock_thread_id,8,3 ; @acpi_ev_global_lock_thread_id
	.comm	_acpi_gbl_global_lock_mutex,8,3 ; @acpi_gbl_global_lock_mutex
.subsections_via_symbols
