	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fork_and_wait
_fork_and_wait:                         ## @fork_and_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rsi, %rax
	movq	%rdi, -40(%rbp)
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rcx
	movq	%rax, %rdi
	callq	_init_sbs
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_exec_child@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	_atf_process_fork
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	-28(%rbp), %rdi
	movq	%r14, %rsi
	callq	_atf_process_child_wait
	movl	%eax, %ebx
LBB0_3:
	leaq	-20(%rbp), %rdi
	callq	_atf_process_stream_fini
	leaq	-24(%rbp), %rdi
	callq	_atf_process_stream_fini
LBB0_4:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_child,4,2                 ## @exec_child
	.no_dead_strip	_fork_and_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fork_and_wait
_fork_and_wait:                         ; @fork_and_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	mov	x8, x1
	str	x0, [sp, #8]
	add	x1, sp, #24
	add	x3, sp, #20
	mov	x0, x8
	bl	_init_sbs
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _exec_child@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exec_child@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x0, x29, #20
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #8
	bl	_atf_process_fork
	mov	x20, x0
	bl	_atf_is_error
	cbnz	x0, LBB0_3
; %bb.2:
	sub	x0, x29, #20
	mov	x1, x19
	bl	_atf_process_child_wait
	mov	x20, x0
LBB0_3:
	add	x0, sp, #20
	bl	_atf_process_stream_fini
	add	x0, sp, #24
	bl	_atf_process_stream_fini
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_child,4,2                 ; @exec_child
	.no_dead_strip	_fork_and_wait
.subsections_via_symbols
