	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sigchld_handler                ## -- Begin function sigchld_handler
	.p2align	4, 0x90
_sigchld_handler:                       ## @sigchld_handler
	.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	_did_sigchild@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	-4(%rbp), %rdi
	callq	_wait
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	-4(%rbp), %eax
	jmp	LBB0_3
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	movq	_child_status@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_child_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_did_sigchild,4,2               ## @did_sigchild
	.comm	_errno,4,2                      ## @errno
	.comm	_child_status,4,2               ## @child_status
	.comm	_child_count,4,2                ## @child_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sigchld_handler                ; -- Begin function sigchld_handler
	.p2align	2
_sigchld_handler:                       ; @sigchld_handler
	.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, _did_sigchild@GOTPAGE
Lloh1:
	ldr	x8, [x8, _did_sigchild@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
	sub	x0, x29, #4
	bl	_wait
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldur	w9, [x29, #-4]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, #1
	csneg	w8, w9, w8, ne
Lloh6:
	adrp	x9, _child_status@GOTPAGE
Lloh7:
	ldr	x9, [x9, _child_status@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x8, _child_count@GOTPAGE
Lloh10:
	ldr	x8, [x8, _child_count@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_did_sigchild,4,2               ; @did_sigchild
	.comm	_errno,4,2                      ; @errno
	.comm	_child_status,4,2               ; @child_status
	.comm	_child_count,4,2                ; @child_count
.subsections_via_symbols
