	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exited_cleanly                 ## -- Begin function exited_cleanly
	.p2align	4, 0x90
_exited_cleanly:                        ## @exited_cleanly
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movl	%edi, %ebx
	leaq	-44(%rbp), %r13
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	cmpq	(%r15), %rdi
	je	LBB0_1
## %bb.3:
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_12
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_WIFSIGNALED
	movl	-44(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_WTERMSIG
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_12
LBB0_6:
	callq	_WEXITSTATUS
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.10:
	movq	_SYSLOG_LEVEL_INFO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	_SYSLOG_LEVEL_DEBUG1@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
	callq	_do_log2
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: waitpid: %s"

L_.str.1:                               ## @.str.1
	.asciz	"%s %s exited on signal %d"

	.comm	_SYSLOG_LEVEL_DEBUG1,4,2        ## @SYSLOG_LEVEL_DEBUG1
	.comm	_SYSLOG_LEVEL_INFO,4,2          ## @SYSLOG_LEVEL_INFO
L_.str.2:                               ## @.str.2
	.asciz	"%s %s failed, status %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exited_cleanly                 ; -- Begin function exited_cleanly
	.p2align	2
_exited_cleanly:                        ; @exited_cleanly
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x24, _EINTR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x22
	mov	w2, #0
	bl	_waitpid
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x23]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.3:
	bl	_strerror
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_error
	b	LBB0_8
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_WIFSIGNALED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_WTERMSIG
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_error
	b	LBB0_8
LBB0_6:
	bl	_WEXITSTATUS
	cbz	x0, LBB0_9
; %bb.7:
Lloh8:
	adrp	x8, _SYSLOG_LEVEL_DEBUG1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SYSLOG_LEVEL_DEBUG1@GOTPAGEOFF]
Lloh10:
	adrp	x9, _SYSLOG_LEVEL_INFO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SYSLOG_LEVEL_INFO@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	mov	x4, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	mov	x3, x20
	bl	_do_log2
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: waitpid: %s"

l_.str.1:                               ; @.str.1
	.asciz	"%s %s exited on signal %d"

	.comm	_SYSLOG_LEVEL_DEBUG1,4,2        ; @SYSLOG_LEVEL_DEBUG1
	.comm	_SYSLOG_LEVEL_INFO,4,2          ; @SYSLOG_LEVEL_INFO
l_.str.2:                               ; @.str.2
	.asciz	"%s %s failed, status %d"

.subsections_via_symbols
