	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_JobReapChild                   ## -- Begin function JobReapChild
	.p2align	4, 0x90
_JobReapChild:                          ## @JobReapChild
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_jobTokensRunning@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	_JOB_ST_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_JobFindPid
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movq	_JOB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movq	16(%r15), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_8:
	movq	_make_suspended@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.9:
	movl	%r14d, %edi
	callq	_WSTOPSIG
	cmpl	$129, %eax
	je	LBB0_13
## %bb.10:
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.11:
	movq	16(%r15), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.3:
	movq	_lurking_children@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_18
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Error                          ## TAILCALL
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_JOB_ST_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	%r14d, %edi
	callq	_WAIT_STATUS
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_JobFinish                      ## TAILCALL
LBB0_13:
	movq	16(%r15), %rax
	movq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdi
LBB0_12:
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_15
LBB0_14:
	movq	16(%r15), %rax
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_WSTOPSIG
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_15:
	movl	$1, 4(%r15)
LBB0_16:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jobTokensRunning,8,3           ## @jobTokensRunning
	.comm	_JOB_ST_RUNNING,4,2             ## @JOB_ST_RUNNING
	.comm	_lurking_children,4,2           ## @lurking_children
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Child (%d) status %x not in table?"

	.comm	_JOB,4,2                        ## @JOB
	.comm	_debug_file,4,2                 ## @debug_file
L_.str.1:                               ## @.str.1
	.asciz	"Process %d (%s) stopped.\n"

	.comm	_make_suspended,4,2             ## @make_suspended
L_.str.2:                               ## @.str.2
	.asciz	"*** [%s] Suspended\n"

L_.str.3:                               ## @.str.3
	.asciz	"*** [%s] Stopped\n"

L_.str.4:                               ## @.str.4
	.asciz	"*** [%s] Stopped -- signal %d\n"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_JOB_ST_FINISHED,4,2            ## @JOB_ST_FINISHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_JobReapChild                   ; -- Begin function JobReapChild
	.p2align	2
_JobReapChild:                          ; @JobReapChild
	.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	x8, _jobTokensRunning@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jobTokensRunning@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh3:
	adrp	x8, _JOB_ST_RUNNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JOB_ST_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_JobFindPid
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	bl	_WIFSTOPPED
	cbz	x0, LBB0_13
; %bb.3:
Lloh6:
	adrp	x8, _JOB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JOB@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_DEBUG
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _debug_file@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x19]
	ldr	x8, [x19, #16]
	ldr	x3, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_5:
Lloh14:
	adrp	x8, _make_suspended@GOTPAGE
Lloh15:
	ldr	x8, [x8, _make_suspended@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbnz	w8, LBB0_17
; %bb.6:
	mov	x0, x20
	bl	_WSTOPSIG
	cmp	w0, #129
	b.eq	LBB0_14
; %bb.7:
	cmp	w0, #128
	b.ne	LBB0_15
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_9:
	cbz	x22, LBB0_12
; %bb.10:
Lloh19:
	adrp	x8, _lurking_children@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lurking_children@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
; %bb.11:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	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
	b	_Error
LBB0_12:
	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
LBB0_13:
Lloh24:
	adrp	x8, _JOB_ST_FINISHED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _JOB_ST_FINISHED@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x20
	bl	_WAIT_STATUS
	str	w0, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	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
	b	_JobFinish
LBB0_14:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_15:
	ldr	x8, [x19, #16]
	ldr	x21, [x8]
	mov	x0, x20
	bl	_WSTOPSIG
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
LBB0_16:
	bl	_printf
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_17:
Lloh31:
	adrp	x8, _stdout@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	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
	b	_fflush
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_jobTokensRunning,8,3           ; @jobTokensRunning
	.comm	_JOB_ST_RUNNING,4,2             ; @JOB_ST_RUNNING
	.comm	_lurking_children,4,2           ; @lurking_children
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Child (%d) status %x not in table?"

	.comm	_JOB,4,2                        ; @JOB
	.comm	_debug_file,4,2                 ; @debug_file
l_.str.1:                               ; @.str.1
	.asciz	"Process %d (%s) stopped.\n"

	.comm	_make_suspended,4,2             ; @make_suspended
l_.str.2:                               ; @.str.2
	.asciz	"*** [%s] Suspended\n"

l_.str.3:                               ; @.str.3
	.asciz	"*** [%s] Stopped\n"

l_.str.4:                               ; @.str.4
	.asciz	"*** [%s] Stopped -- signal %d\n"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_JOB_ST_FINISHED,4,2            ; @JOB_ST_FINISHED
.subsections_via_symbols
