	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reapchild
_reapchild:                             ## @reapchild
	.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	_WNOHANG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdi
	xorl	%edx, %edx
	callq	_wait3
	testq	%rax, %rax
	jle	LBB0_25
## %bb.1:
	movq	%rax, %r13
	movq	_debug@GOTPCREL(%rip), %r14
	jmp	LBB0_2
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_WTERMSIG
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	movq	%r12, %r8
	movq	%rax, %r9
	callq	_syslog
	movq	%r14, %r15
	movq	_debug@GOTPCREL(%rip), %r14
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_reapchild_conn
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdi
	xorl	%edx, %edx
	callq	_wait3
	movq	%rax, %r13
	testq	%rax, %rax
	jle	LBB0_25
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rbx
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	movl	-44(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_WEXITSTATUS
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_WTERMSIG
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_warnx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_servtab@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	xorl	%ebx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpl	%eax, %ebx
	jne	LBB0_12
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	32(%r12), %r12
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
	testq	%r12, %r12
	je	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movslq	(%r12), %rax
	testq	%rax, %rax
	jle	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%eax, %ecx
	movq	8(%r12), %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%r13, (%rdx,%rbx,8)
	je	LBB0_11
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=3
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_19
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, 16(%r12)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_enable
	movl	(%r12), %eax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rcx
	leal	-1(%rax), %edx
	movl	%edx, (%r12)
	cltq
	movq	-8(%rcx,%rax,8), %rax
	movl	%ebx, %edx
	movq	%rax, (%rcx,%rdx,8)
	movl	-44(%rbp), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	testq	%rax, %rax
	je	LBB0_24
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r14
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	24(%r12), %ebx
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %r12
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %r12
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	movl	-44(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_WEXITSTATUS
	jmp	LBB0_23
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d reaped, %s %u"

L_.str.1:                               ## @.str.1
	.asciz	"status"

L_.str.2:                               ## @.str.2
	.asciz	"signal"

	.comm	_servtab,8,3                    ## @servtab
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"%s[%d]: exited, %s %u"

	.no_dead_strip	_reapchild
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reapchild
_reapchild:                             ; @reapchild
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x25, _WNOHANG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WNOHANG@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x0, sp, #12
	mov	x2, #0
	bl	_wait3
	cmp	x0, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x26, _debug@GOTPAGE
Lloh3:
	ldr	x26, [x26, _debug@GOTPAGEOFF]
Lloh4:
	adrp	x27, _servtab@GOTPAGE
Lloh5:
	ldr	x27, [x27, _servtab@GOTPAGEOFF]
Lloh6:
	adrp	x28, l_.str.1@PAGE
Lloh7:
	add	x28, x28, l_.str.1@PAGEOFF
Lloh8:
	adrp	x20, l_.str.2@PAGE
Lloh9:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_WTERMSIG
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x5, x0
	mov	x0, x23
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	mov	x4, x24
	bl	_syslog
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_reapchild_conn
	ldr	w1, [x25]
	add	x0, sp, #12
	mov	x2, #0
	bl	_wait3
	mov	x19, x0
	cmp	x0, #0
	b.le	LBB0_24
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	ldr	x8, [x26]
	cbz	x8, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cmp	x0, #0
	csel	x22, x20, x28, eq
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_WEXITSTATUS
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_WTERMSIG
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x3, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_warnx
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x27]
	cbnz	x22, LBB0_14
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=2
	mov	w23, #0
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	cmp	w23, w8
	b.ne	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	x22, [x22, #32]
	cbz	x22, LBB0_4
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x23, #0
	ldr	x9, [x22, #8]
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x9, x23, lsl #3]
	cmp	x10, x19
	b.eq	LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	add	x23, x23, #1
	cmp	x8, x23
	b.ne	LBB0_16
	b	LBB0_13
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x8
	sxtw	x9, w9
	ldr	x10, [x22, #16]
	cmp	x10, x9
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_enable
	ldr	w8, [x22]
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22, #8]
	sub	w8, w8, #1
	str	w8, [x22]
	ldr	x8, [x9, w8, sxtw #3]
	str	x8, [x9, w23, uxtw #3]
	ldr	w0, [sp, #12]
	bl	_WIFSIGNALED
	cbnz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	cbz	x0, LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	ldr	w22, [x22, #24]
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cmp	x0, #0
	csel	x24, x20, x28, eq
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_WEXITSTATUS
	b	LBB0_3
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d reaped, %s %u"

l_.str.1:                               ; @.str.1
	.asciz	"status"

l_.str.2:                               ; @.str.2
	.asciz	"signal"

	.comm	_servtab,8,3                    ; @servtab
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"%s[%d]: exited, %s %u"

	.no_dead_strip	_reapchild
.subsections_via_symbols
