	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LWP_SemWait                    ## -- Begin function LWP_SemWait
	.p2align	4, 0x90
_LWP_SemWait:                           ## @LWP_SemWait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	___lwp_sema_open
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	addq	$4, %rdi
	movl	(%rax), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LWP_THREADQ_NOTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	___lwp_sema_seize
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	___lwp_thread_dispatchenable
	movq	__thr_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	$131, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_8
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_LWP_THREADQ_NOTIMEOUT,4,2      ## @LWP_THREADQ_NOTIMEOUT
	.comm	__thr_executing,8,3             ## @_thr_executing
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LWP_SemWait                    ; -- Begin function LWP_SemWait
	.p2align	2
_LWP_SemWait:                           ; @LWP_SemWait
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	___lwp_sema_open
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w1, [x0], #4
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _LWP_THREADQ_NOTIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LWP_THREADQ_NOTIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	___lwp_sema_seize
	bl	___lwp_thread_dispatchenable
Lloh6:
	adrp	x8, __thr_executing@GOTPAGE
Lloh7:
	ldr	x8, [x8, __thr_executing@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #131
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_LWP_THREADQ_NOTIMEOUT,4,2      ; @LWP_THREADQ_NOTIMEOUT
	.comm	__thr_executing,8,3             ; @_thr_executing
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
