	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_child_status             ## -- Begin function check_child_status
	.p2align	4, 0x90
_check_child_status:                    ## @check_child_status
	.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	_child_pid@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_12
## %bb.1:
	movl	$0, -44(%rbp)
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	callq	_waitpid
	movl	(%r13), %edx
	cmpl	%edx, %eax
	jne	LBB0_7
## %bb.2:
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	-44(%rbp), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_12
LBB0_4:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r13), %r14d
	movl	-44(%rbp), %edi
	callq	_WIFEXITED
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
	movl	-44(%rbp), %edi
	callq	_WIFSIGNALED
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movl	-44(%rbp), %edi
	callq	_WEXITSTATUS
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	movl	$0, (%r13)
	jmp	LBB0_12
LBB0_7:
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$0, (%r13)
	jmp	LBB0_12
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_child_pid,4,2                  ## @child_pid
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"child process %d terminated: exited = %d, signaled = %d, exit code = %d\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"waitpid (%d): %m\n"

L_.str.2:                               ## @.str.2
	.asciz	"waitpid (%d) returned %d???\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_child_status             ; -- Begin function check_child_status
	.p2align	2
_check_child_status:                    ; @check_child_status
	.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	x21, _child_pid@GOTPAGE
Lloh1:
	ldr	x21, [x21, _child_pid@GOTPAGEOFF]
	ldr	w0, [x21]
	cbz	w0, LBB0_12
; %bb.1:
	str	wzr, [sp, #28]
Lloh2:
	adrp	x8, _WNOHANG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WNOHANG@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #28
	bl	_waitpid
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w2, [x21]
	cmp	w0, w2
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [sp, #28]
	bl	_WIFEXITED
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [sp, #28]
	bl	_WIFSIGNALED
	cbz	x0, LBB0_12
LBB0_4:
Lloh5:
	adrp	x8, _verbosity@GOTPAGE
Lloh6:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	ldr	w20, [x21]
	ldr	w0, [sp, #28]
	bl	_WIFEXITED
	cmp	x0, #0
	cset	w22, ne
	ldr	w0, [sp, #28]
	bl	_WIFSIGNALED
	cmp	x0, #0
	cset	w23, ne
	ldr	w0, [sp, #28]
	bl	_WEXITSTATUS
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	str	x22, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_fprintf
LBB0_6:
	str	wzr, [x21]
	b	LBB0_12
LBB0_7:
	cbz	w0, LBB0_12
; %bb.8:
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.9:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _EINTR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	str	wzr, [x21]
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_fprintf
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_child_pid,4,2                  ; @child_pid
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"child process %d terminated: exited = %d, signaled = %d, exit code = %d\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"waitpid (%d): %m\n"

l_.str.2:                               ; @.str.2
	.asciz	"waitpid (%d) returned %d???\n"

.subsections_via_symbols
