	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ev_global_lock_handler
_acpi_ev_global_lock_handler:           ## @acpi_ev_global_lock_handler
	.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	_acpi_ev_global_lock_pending_lock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_acpi_os_acquire_lock
	movl	%eax, %ebx
	movq	_acpi_ev_global_lock_pending@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.1:
	movq	_acpi_gbl_global_lock_semaphore@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_acpi_os_signal_semaphore
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_4:
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_acpi_os_release_lock
	movq	_ACPI_INTERRUPT_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_ev_global_lock_pending_lock,4,2 ## @acpi_ev_global_lock_pending_lock
	.comm	_acpi_ev_global_lock_pending,8,3 ## @acpi_ev_global_lock_pending
	.comm	_acpi_gbl_global_lock_semaphore,4,2 ## @acpi_gbl_global_lock_semaphore
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not signal Global Lock semaphore"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ACPI_INTERRUPT_HANDLED,4,2     ## @ACPI_INTERRUPT_HANDLED
	.no_dead_strip	_acpi_ev_global_lock_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ev_global_lock_handler
_acpi_ev_global_lock_handler:           ; @acpi_ev_global_lock_handler
	.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
Lloh0:
	adrp	x20, _acpi_ev_global_lock_pending_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _acpi_ev_global_lock_pending_lock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_acpi_os_acquire_lock
	mov	x19, x0
Lloh2:
	adrp	x21, _acpi_ev_global_lock_pending@GOTPAGE
Lloh3:
	ldr	x21, [x21, _acpi_ev_global_lock_pending@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _acpi_gbl_global_lock_semaphore@GOTPAGE
Lloh5:
	ldr	x8, [x8, _acpi_gbl_global_lock_semaphore@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_acpi_os_signal_semaphore
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
LBB0_3:
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_4:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_acpi_os_release_lock
Lloh12:
	adrp	x8, _ACPI_INTERRUPT_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_INTERRUPT_HANDLED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_ev_global_lock_pending_lock,4,2 ; @acpi_ev_global_lock_pending_lock
	.comm	_acpi_ev_global_lock_pending,8,3 ; @acpi_ev_global_lock_pending
	.comm	_acpi_gbl_global_lock_semaphore,4,2 ; @acpi_gbl_global_lock_semaphore
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not signal Global Lock semaphore"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ACPI_INTERRUPT_HANDLED,4,2     ; @ACPI_INTERRUPT_HANDLED
	.no_dead_strip	_acpi_ev_global_lock_handler
.subsections_via_symbols
