	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcloseve                       ## -- Begin function pcloseve
	.p2align	4, 0x90
_pcloseve:                              ## @pcloseve
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pidlist@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	testq	%r14, %r14
	je	LBB0_12
## %bb.1:
	cmpq	%rdi, 16(%r14)
	je	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rbx
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rdi, 16(%r14)
	jne	LBB0_11
	jmp	LBB0_3
LBB0_12:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_13
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	callq	_fclose
	movq	8(%r14), %rax
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	addq	$8, %rbx
	movq	%rbx, %r15
LBB0_5:
	movq	%rax, (%r15)
	leaq	-44(%rbp), %r15
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	cmpq	%rax, (%r12)
	je	LBB0_6
LBB0_8:
	movq	%r14, %rdi
	callq	_free
	cmpl	$-1, %ebx
	je	LBB0_13
## %bb.9:
	movl	-44(%rbp), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pidlist,8,3                    ## @pidlist
	.comm	_ESRCH,8,3                      ## @ESRCH
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_pidlist_lock,4,2               ## @pidlist_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcloseve                       ; -- Begin function pcloseve
	.p2align	2
_pcloseve:                              ; @pcloseve
	.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
Lloh0:
	adrp	x20, _pidlist@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pidlist@GOTPAGEOFF]
	ldr	x19, [x20]
	cbz	x19, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, x0
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x19
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	cmp	x8, x0
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ESRCH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	x8, [x9]
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	mov	x21, #0
LBB0_6:
	bl	_fclose
	ldr	x8, [x19, #8]
	add	x9, x21, #8
	cmp	x21, #0
	csel	x9, x20, x9, eq
	str	x8, [x9]
Lloh8:
	adrp	x21, _errno@GOTPAGE
Lloh9:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh10:
	adrp	x22, _EINTR@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_7
; %bb.8:
	mov	x20, x0
	mov	x0, x19
	bl	_free
	ldr	w8, [sp, #12]
	cmn	w20, #1
	csinv	w0, w8, wzr, ne
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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pidlist,8,3                    ; @pidlist
	.comm	_ESRCH,8,3                      ; @ESRCH
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_pidlist_lock,4,2               ; @pidlist_lock
.subsections_via_symbols
