	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_children_dead
_check_children_dead:                   ## @check_children_dead
	.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
	xorl	%ebx, %ebx
	movq	_pids@GOTPCREL(%rip), %r12
	leaq	-44(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	$11, %ebx
	je	LBB0_20
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_workers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rcx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r12), %rcx
	leaq	(%rcx,%r13), %rdx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$0, (%rdx)
	movq	_workers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movslq	%eax, %rdx
	addq	$4, %r13
	cmpq	%rdx, %r14
	jge	LBB0_15
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%rcx,%r13)
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$0, -44(%rbp)
	movl	(%rcx,%r13), %edi
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_waitpid
	movq	(%r12), %rcx
	cmpl	(%rcx,%r13), %eax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%rcx,%r14,4), %rdx
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_11
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	-44(%rbp), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	jne	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_workers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%eax, %r14d
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$9, %ebx
	ja	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$100000, %edi                   ## imm = 0x186A0
	callq	_usleep
	jmp	LBB0_18
LBB0_19:
	cmpl	$11, %ebx
	jne	LBB0_27
LBB0_20:
	movq	_workers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.22:
	xorl	%ebx, %ebx
	movq	_SIGKILL@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,4), %edi
	testl	%edi, %edi
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	incl	%r15d
	movl	(%r14), %esi
	callq	_kill
	movq	_workers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_21:
	xorl	%r15d, %r15d
LBB0_26:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_kprintf
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_workers,4,2                    ## @workers
	.comm	_pids,8,3                       ## @pids
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_SIGKILL,4,2                    ## @SIGKILL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: %d children unfinished --> they are now killed\n"

	.no_dead_strip	_check_children_dead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_children_dead
_check_children_dead:                   ; @check_children_dead
	.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
	mov	w19, #0
Lloh0:
	adrp	x20, _workers@GOTPAGE
Lloh1:
	ldr	x20, [x20, _workers@GOTPAGEOFF]
Lloh2:
	adrp	x21, _pids@GOTPAGE
Lloh3:
	ldr	x21, [x21, _pids@GOTPAGEOFF]
Lloh4:
	adrp	x22, _WNOHANG@GOTPAGE
Lloh5:
	ldr	x22, [x22, _WNOHANG@GOTPAGEOFF]
Lloh6:
	adrp	x23, _errno@GOTPAGE
Lloh7:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh8:
	adrp	x24, _EINTR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	cmp	w19, #11
	b.eq	LBB0_20
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, #0
	mov	x25, #0
	ldr	x8, [x21]
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbz	x0, LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x21]
	add	x9, x8, x26
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	str	wzr, [x9]
	ldr	w9, [x20]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x25, x25, #1
	add	x26, x26, #4
	cmp	x25, w9, sxtw
	b.ge	LBB0_16
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x8, x26]
	cbz	w10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	str	wzr, [sp, #12]
	ldr	w0, [x8, x26]
	ldr	w2, [x22]
	add	x1, sp, #12
	bl	_waitpid
	ldr	x8, [x21]
	ldr	w9, [x8, x26]
	cmp	w0, w9
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x9, x8, x25, lsl #2
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	cbnz	w0, LBB0_6
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x10, [x23]
	ldr	x11, [x24]
	cmp	x10, x11
	b.ne	LBB0_6
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [sp, #12]
	bl	_WIFSIGNALED
	cbnz	x0, LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x20]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #0
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w9
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w19, #9
	b.hi	LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #34464
	movk	w0, #1, lsl #16
	bl	_usleep
	b	LBB0_1
LBB0_19:
	cmp	w19, #11
	b.ne	LBB0_27
LBB0_20:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.21:
	mov	x22, #0
	mov	w19, #0
Lloh10:
	adrp	x23, _SIGKILL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SIGKILL@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_26
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	w0, [x9, x22, lsl #2]
	cbz	w0, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	w19, w19, #1
	ldr	w1, [x23]
	bl	_kill
	ldr	w8, [x20]
	b	LBB0_22
LBB0_25:
	mov	w19, #0
LBB0_26:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_kprintf
LBB0_27:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_workers,4,2                    ; @workers
	.comm	_pids,8,3                       ; @pids
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_SIGKILL,4,2                    ; @SIGKILL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: %d children unfinished --> they are now killed\n"

	.no_dead_strip	_check_children_dead
.subsections_via_symbols
