	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reap_if_zombie
_reap_if_zombie:                        ## @reap_if_zombie
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 12(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	addq	$4, %rdi
	callq	_lock
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	leaq	8(%r15), %rcx
	cmpq	$0, 16(%rax)
	leaq	12(%rax), %rax
	cmoveq	%rcx, %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_user_put
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	(%r15), %rax
	movl	8(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_current@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_lock
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	leaq	-32(%rbp), %rsi
	callq	_rusage_add
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_unlock
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	-32(%rbp), %esi
	movq	%r14, %rdi
	callq	_user_put
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	(%r15), %rdi
	addq	$4, %rdi
	callq	_unlock
	movq	(%r15), %rdi
	callq	_cond_destroy
	movq	(%r15), %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_task_destroy
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__EFAULT,4,2                    ## @_EFAULT
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_reap_if_zombie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reap_if_zombie
_reap_if_zombie:                        ; @reap_if_zombie
	.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
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	add	x0, x8, #4
	bl	_lock
	cbz	x21, LBB0_3
; %bb.2:
	mov	x8, x19
	ldr	x9, [x8], #8
	ldr	x10, [x9, #16]
	add	x9, x9, #12
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x21
	bl	_user_put
	cbnz	x0, LBB0_5
LBB0_3:
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	str	w8, [sp, #8]
Lloh0:
	adrp	x21, _current@GOTPAGE
Lloh1:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_lock
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x0, x8, #4
	add	x1, sp, #8
	bl	_rusage_add
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_unlock
	cbz	x20, LBB0_7
; %bb.4:
	ldr	w1, [sp, #8]
	mov	x0, x20
	bl	_user_put
	cbz	x0, LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, __EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_unlock
	ldr	x0, [x19]
	bl	_cond_destroy
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_task_destroy
	mov	w0, #1
LBB0_8:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__EFAULT,4,2                    ; @_EFAULT
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_reap_if_zombie
.subsections_via_symbols
