	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function child_stop
_child_stop:                            ## @child_stop
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	callq	_close
	movl	$-1, (%rbx)
LBB0_2:
	movl	4(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.3:
	callq	_close
	movl	$-1, 4(%rbx)
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	leaq	20(%rbx), %r15
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	movl	%eax, 16(%rbx)
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpq	%rcx, (%r12)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_waitpid
	movl	%eax, 16(%rbx)
	cmpl	$-1, %eax
	je	LBB0_8
LBB0_10:
	movq	$0, 8(%rbx)
	testl	%eax, %eax
	js	LBB0_12
LBB0_13:
	movl	20(%rbx), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	(%r14), %r14
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	20(%rbx), %edi
	callq	_WTERMSIG
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %r12
	jmp	LBB0_19
LBB0_5:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	jns	LBB0_13
LBB0_12:
	movq	(%r14), %rdi
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %r12
	jmp	LBB0_19
LBB0_15:
	movl	20(%rbx), %edi
	callq	_WIFEXITED
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movl	20(%rbx), %edi
	callq	_WEXITSTATUS
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	(%r14), %r14
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	20(%rbx), %edi
	callq	_WEXITSTATUS
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_19
LBB0_17:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
LBB0_19:
	movl	(%r12), %eax
	addq	$8, %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
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Child process exited badly"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
L_.str.1:                               ## @.str.1
	.asciz	"Child process exited with signal %d"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.2:                               ## @.str.2
	.asciz	"Child process exited with status %d"

	.comm	_SIGPIPE,8,3                    ## @SIGPIPE
	.no_dead_strip	_child_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function child_stop
_child_stop:                            ; @child_stop
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
LBB0_2:
	ldr	w0, [x19, #4]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	bl	_close
	mov	w8, #-1
	str	w8, [x19, #4]
LBB0_4:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.5:
	add	x21, x19, #20
	mov	x1, x21
	mov	w2, #0
	bl	_waitpid
	str	w0, [x19, #16]
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _EINTR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	w2, #0
	bl	_waitpid
	str	w0, [x19, #16]
	ldr	x8, [x22]
	b	LBB0_6
LBB0_8:
	str	xzr, [x19, #8]
	tbnz	w0, #31, LBB0_13
LBB0_9:
	ldr	w0, [x19, #20]
	bl	_WIFSIGNALED
	cbz	x0, LBB0_17
; %bb.10:
	ldr	x20, [x20]
Lloh4:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	ldr	w0, [x19, #20]
	bl	_WTERMSIG
	str	x0, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	b	LBB0_14
LBB0_12:
	ldr	w0, [x19, #16]
	tbz	w0, #31, LBB0_9
LBB0_13:
	ldr	x0, [x20]
Lloh9:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
LBB0_14:
	bl	_archive_set_error
LBB0_15:
Lloh14:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
LBB0_17:
	ldr	w0, [x19, #20]
	bl	_WIFEXITED
	cbz	x0, LBB0_15
; %bb.18:
	ldr	w0, [x19, #20]
	bl	_WEXITSTATUS
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x20, [x20]
Lloh16:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	ldr	w0, [x19, #20]
	bl	_WEXITSTATUS
	str	x0, [sp]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_20:
Lloh21:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Child process exited badly"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
l_.str.1:                               ; @.str.1
	.asciz	"Child process exited with signal %d"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.2:                               ; @.str.2
	.asciz	"Child process exited with status %d"

	.comm	_SIGPIPE,8,3                    ; @SIGPIPE
	.no_dead_strip	_child_stop
.subsections_via_symbols
