	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usem_wait
_usem_wait:                             ## @usem_wait
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, %r15d
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	%esi, -32(%rbp)
	movq	_TIMER_ABSTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	je	LBB0_4
## %bb.3:
	movq	_UMTX_ABSTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	leaq	-40(%rbp), %r8
	movl	%eax, -36(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	$16, %ecx
	jmp	LBB0_5
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_5:
	movq	_UMTX_OP_SEM2_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	__umtx_op
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EINTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.7:
	testq	%r14, %r14
	je	LBB0_11
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	movq	_TIMER_ABSTIME@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	jne	LBB0_11
## %bb.10:
	movl	-28(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMER_ABSTIME,4,2              ## @TIMER_ABSTIME
	.comm	_UMTX_ABSTIME,4,2               ## @UMTX_ABSTIME
	.comm	_UMTX_OP_SEM2_WAIT,4,2          ## @UMTX_OP_SEM2_WAIT
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.no_dead_strip	_usem_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usem_wait
_usem_wait:                             ; @usem_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	cbz	x3, LBB0_2
; %bb.1:
	mov	x4, sp
	str	w1, [sp, #8]
Lloh0:
	adrp	x8, _TIMER_ABSTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIMER_ABSTIME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _UMTX_ABSTIME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UMTX_ABSTIME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w20
	csel	w8, wzr, w9, eq
	ldr	w9, [x21]
	stp	w9, w8, [sp]
	mov	w3, #16
	b	LBB0_3
LBB0_2:
	mov	x4, #0
LBB0_3:
Lloh6:
	adrp	x8, _UMTX_OP_SEM2_WAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UMTX_OP_SEM2_WAIT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	__umtx_op
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _EINTR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	cbz	x19, LBB0_9
; %bb.6:
	cbz	x21, LBB0_9
; %bb.7:
Lloh15:
	adrp	x8, _TIMER_ABSTIME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TIMER_ABSTIME@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w20
	cbnz	w8, LBB0_9
; %bb.8:
	ldr	w8, [sp, #12]
	str	w8, [x19]
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMER_ABSTIME,4,2              ; @TIMER_ABSTIME
	.comm	_UMTX_ABSTIME,4,2               ; @UMTX_ABSTIME
	.comm	_UMTX_OP_SEM2_WAIT,4,2          ; @UMTX_OP_SEM2_WAIT
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.no_dead_strip	_usem_wait
.subsections_via_symbols
