	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finish
_finish:                                ## @finish
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_child@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leaq	-12(%rbp), %rsi
	xorl	%edx, %edx
	callq	_waitpid
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.1:
	movl	-12(%rbp), %edi
	callq	_WIFEXITED
	movl	-12(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_WEXITSTATUS
	jmp	LBB0_6
LBB0_3:
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	-12(%rbp), %edi
	callq	_WTERMSIG
LBB0_6:
	movl	%eax, %edi
LBB0_7:
	callq	_done
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %edi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_child,8,3                      ## @child
	.no_dead_strip	_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finish
_finish:                                ; @finish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _child@GOTPAGE
Lloh1:
	ldr	x19, [x19, _child@GOTPAGEOFF]
	ldr	x0, [x19]
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_WEXITSTATUS
	b	LBB0_6
LBB0_3:
	bl	_WIFSIGNALED
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_WTERMSIG
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	bl	_done
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_child,8,3                      ; @child
	.no_dead_strip	_finish
.subsections_via_symbols
