	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sigchld_handler
_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movaps	L___const.sigchld_handler.msg(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movabsq	$2850072356480371, %rax         ## imm = 0xA20202E646573
	movq	%rax, -65(%rbp)
	movq	_sshpid@GOTPCREL(%rip), %r12
	movq	_WNOHANG@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %ecx
	cmpl	%ecx, (%r15)
	je	LBB0_1
LBB0_3:
	cmpl	(%r12), %eax
	jne	LBB0_5
## %bb.4:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	movl	$22, %edx
	callq	_write
	movl	$-1, (%r12)
LBB0_5:
	movl	%r14d, (%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.sigchld_handler.msg
L___const.sigchld_handler.msg:
	.asciz	"\rConnection closed.  \n"

	.comm	_sshpid,4,2                     ## @sshpid
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.no_dead_strip	_sigchld_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sigchld_handler
_sigchld_handler:                       ; @sigchld_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x19, _errno@GOTPAGE
Lloh4:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w20, [x19]
Lloh5:
	adrp	x8, l___const.sigchld_handler.msg@PAGE
Lloh6:
	add	x8, x8, l___const.sigchld_handler.msg@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldur	x8, [x8, #15]
	stur	x8, [sp, #15]
Lloh7:
	adrp	x21, _sshpid@GOTPAGE
Lloh8:
	ldr	x21, [x21, _sshpid@GOTPAGEOFF]
Lloh9:
	adrp	x22, _WNOHANG@GOTPAGE
Lloh10:
	ldr	x22, [x22, _WNOHANG@GOTPAGEOFF]
Lloh11:
	adrp	x23, _EINTR@GOTPAGE
Lloh12:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	x1, #0
	bl	_waitpid
	ldr	w8, [x19]
	ldr	w9, [x23]
	cmn	w0, #1
	ccmp	w8, w9, #0, eq
	b.eq	LBB0_1
; %bb.2:
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #22
	bl	_write
	mov	w8, #-1
	str	w8, [x21]
LBB0_4:
	str	w20, [x19]
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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
	add	sp, sp, #96
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l___const.sigchld_handler.msg:          ; @__const.sigchld_handler.msg
	.asciz	"\rConnection closed.  \n"

	.comm	_sshpid,4,2                     ; @sshpid
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.no_dead_strip	_sigchld_handler
.subsections_via_symbols
