	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_system_wait_semaphore  ## -- Begin function acpi_ex_system_wait_semaphore
	.p2align	4, 0x90
_acpi_ex_system_wait_semaphore:         ## @acpi_ex_system_wait_semaphore
	.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
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_ex_system_wait_semaphore@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_DO_NOT_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_acpi_os_wait_semaphore
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_AE_TIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_acpi_ex_relinquish_interpreter
	movl	%r15d, %edi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_acpi_os_wait_semaphore
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_acpi_format_exception
	movl	%eax, %edi
	callq	_ACPI_DEBUG_PRINT
	xorl	%eax, %eax
	callq	_acpi_ex_reacquire_interpreter
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ex_system_wait_semaphore,4,2   ## @ex_system_wait_semaphore
	.comm	_ACPI_DO_NOT_WAIT,4,2           ## @ACPI_DO_NOT_WAIT
	.comm	_AE_TIME,8,3                    ## @AE_TIME
	.comm	_ACPI_DB_EXEC,4,2               ## @ACPI_DB_EXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ex_system_wait_semaphore  ; -- Begin function acpi_ex_system_wait_semaphore
	.p2align	2
_acpi_ex_system_wait_semaphore:         ; @acpi_ex_system_wait_semaphore
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ex_system_wait_semaphore@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ex_system_wait_semaphore@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x8, _ACPI_DO_NOT_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_DO_NOT_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_acpi_os_wait_semaphore
	mov	x21, x0
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_2:
Lloh6:
	adrp	x8, _AE_TIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_TIME@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_4
; %bb.3:
	bl	_acpi_ex_relinquish_interpreter
	mov	x0, x20
	mov	w1, #1
	mov	x2, x19
	bl	_acpi_os_wait_semaphore
	mov	x21, x0
	bl	_acpi_format_exception
	bl	_ACPI_DEBUG_PRINT
	bl	_acpi_ex_reacquire_interpreter
LBB0_4:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ex_system_wait_semaphore,4,2   ; @ex_system_wait_semaphore
	.comm	_ACPI_DO_NOT_WAIT,4,2           ; @ACPI_DO_NOT_WAIT
	.comm	_AE_TIME,8,3                    ; @AE_TIME
	.comm	_ACPI_DB_EXEC,4,2               ; @ACPI_DB_EXEC
.subsections_via_symbols
