	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Job_CatchChildren              ## -- Begin function Job_CatchChildren
	.p2align	4, 0x90
_Job_CatchChildren:                     ## @Job_CatchChildren
	.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	_jobTokensRunning@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	movq	_WUNTRACED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movl	$-1, %edi
	callq	_waitpid
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movl	%eax, %ebx
	movq	_JOB@GOTPCREL(%rip), %r13
	movq	_TRUE@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi
	movl	(%r14), %edx
	movl	%ebx, %edi
	callq	_JobReapChild
	movq	_WUNTRACED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$-1, %edi
	movq	%r15, %rsi
	callq	_waitpid
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	-44(%rbp), %edi
	callq	_WAIT_STATUS
	movl	%r12d, %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_fprintf
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jobTokensRunning,8,3           ## @jobTokensRunning
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_WUNTRACED,4,2                  ## @WUNTRACED
	.comm	_JOB,4,2                        ## @JOB
	.comm	_debug_file,4,2                 ## @debug_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Process %d exited/stopped status %x.\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Job_CatchChildren              ; -- Begin function Job_CatchChildren
	.p2align	2
_Job_CatchChildren:                     ; @Job_CatchChildren
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _jobTokensRunning@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jobTokensRunning@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
Lloh3:
	adrp	x22, _WNOHANG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _WNOHANG@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _WUNTRACED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _WUNTRACED@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	add	x1, sp, #12
	mov	w0, #-1
	bl	_waitpid
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, x0
Lloh7:
	adrp	x24, _JOB@GOTPAGE
Lloh8:
	ldr	x24, [x24, _JOB@GOTPAGEOFF]
Lloh9:
	adrp	x25, _TRUE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
Lloh11:
	adrp	x19, l_.str@PAGE
Lloh12:
	add	x19, x19, l_.str@PAGEOFF
Lloh13:
	adrp	x26, _debug_file@GOTPAGE
Lloh14:
	ldr	x26, [x26, _debug_file@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #12]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_JobReapChild
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	add	x1, sp, #12
	mov	w0, #-1
	bl	_waitpid
	mov	x20, x0
	cmp	w0, #0
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_DEBUG
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w21, [x26]
	ldr	w0, [sp, #12]
	bl	_WAIT_STATUS
	mov	x3, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_fprintf
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_jobTokensRunning,8,3           ; @jobTokensRunning
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_WUNTRACED,4,2                  ; @WUNTRACED
	.comm	_JOB,4,2                        ; @JOB
	.comm	_debug_file,4,2                 ; @debug_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Process %d exited/stopped status %x.\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
