	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reap_worker
_reap_worker:                           ## @reap_worker
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_thread_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	leaq	-16(%rbp), %rsi
	callq	_pthread_join
	jmp	LBB0_4
LBB0_1:
	leaq	-4(%rbp), %rdi
	callq	_wait
	movl	-4(%rbp), %edi
	callq	_WIFEXITED
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_thread_mode,4,2                ## @thread_mode
	.no_dead_strip	_reap_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reap_worker
_reap_worker:                           ; @reap_worker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _thread_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thread_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x1, sp
	bl	_pthread_join
	b	LBB0_3
LBB0_2:
	sub	x0, x29, #4
	bl	_wait
	ldur	w0, [x29, #-4]
	bl	_WIFEXITED
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_4:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_thread_mode,4,2                ; @thread_mode
	.no_dead_strip	_reap_worker
.subsections_via_symbols
