	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dofork
_dofork:                                ## @dofork
	.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
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_4
LBB0_5:
	movq	_NumChildren@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_am_set_mypid
	movq	_foreground@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_foreground,8,3                 ## @foreground
	.comm	_NumChildren,4,2                ## @NumChildren
	.no_dead_strip	_dofork
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dofork
_dofork:                                ; @dofork
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_fork
	mov	x19, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	cbz	w19, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _NumChildren@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NumChildren@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_sleep
	bl	_fork
	tbnz	w0, #31, LBB0_3
; %bb.4:
	mov	x19, x0
	cbnz	w19, LBB0_2
LBB0_5:
	bl	_am_set_mypid
Lloh2:
	adrp	x8, _foreground@GOTPAGE
Lloh3:
	ldr	x8, [x8, _foreground@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_foreground,8,3                 ; @foreground
	.comm	_NumChildren,4,2                ; @NumChildren
	.no_dead_strip	_dofork
.subsections_via_symbols
