	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blockif_close                  ## -- Begin function blockif_close
	.p2align	4, 0x90
_blockif_close:                         ## @blockif_close
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_BLOCKIF_SIG@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	leaq	28(%r12), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movl	$1, 8(%r12)
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	leaq	24(%r12), %rdi
	callq	_pthread_cond_broadcast
	movq	_BLOCKIF_NUMTHR@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_pthread_join
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	$0, (%r12)
	movl	12(%r12), %edi
	callq	_close
	movq	%r12, %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCKIF_SIG,8,3                ## @BLOCKIF_SIG
	.comm	_BLOCKIF_NUMTHR,4,2             ## @BLOCKIF_NUMTHR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blockif_close                  ; -- Begin function blockif_close
	.p2align	2
_blockif_close:                         ; @blockif_close
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BLOCKIF_SIG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BLOCKIF_SIG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	add	x20, x19, #28
	mov	x0, x20
	bl	_pthread_mutex_lock
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_pthread_mutex_unlock
	add	x0, x19, #24
	bl	_pthread_cond_broadcast
Lloh3:
	adrp	x20, _BLOCKIF_NUMTHR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BLOCKIF_NUMTHR@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x21, lsl #2]
	add	x1, sp, #8
	bl	_pthread_join
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	str	xzr, [x19]
	ldr	w0, [x19, #12]
	bl	_close
	mov	x0, x19
	bl	_free
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCKIF_SIG,8,3                ; @BLOCKIF_SIG
	.comm	_BLOCKIF_NUMTHR,4,2             ; @BLOCKIF_NUMTHR
.subsections_via_symbols
