	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_cond_wait
_remove_cond_wait:                      ## @remove_cond_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	12(%rsi), %rdi
	addq	$8, %rsi
	callq	_remove_wait_queue
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	%rbx, %rax
	je	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rcx
	movq	%rdx, %rax
	cmpq	%rbx, %rdx
	jne	LBB0_5
	jmp	LBB0_4
LBB0_2:
	xorl	%ecx, %ecx
LBB0_4:
	testq	%rcx, %rcx
	movq	(%rbx), %rax
	cmovneq	%rcx, %r14
	movq	%rax, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_remove_cond_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_cond_wait
_remove_cond_wait:                      ; @remove_cond_wait
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, x1, #12
	add	x1, x1, #8
	bl	_remove_wait_queue
Lloh0:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_set_current_state
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.1:
	cmp	x8, x20
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cbz	x10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, x8
	mov	x8, x10
	cmp	x10, x20
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x9, #0
LBB0_5:
	ldr	x8, [x20]
	cmp	x9, #0
	csel	x9, x19, x9, eq
	str	x8, [x9]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_remove_cond_wait
.subsections_via_symbols
