	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fork_write_stats               ## -- Begin function fork_write_stats
	.p2align	4, 0x90
_fork_write_stats:                      ## @fork_write_stats
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_child_pid@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	je	LBB0_8
## %bb.3:
	movl	%eax, %ebx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	movl	%ebx, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_8:
	movq	_sfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_close
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	xorl	%eax, %eax
	callq	_write_stats
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_child_pid,4,2                  ## @child_pid
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork: %m\n"

	.comm	_sfd,4,2                        ## @sfd
	.comm	_verbosity,8,3                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"created child process pid = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fork_write_stats               ; -- Begin function fork_write_stats
	.p2align	2
_fork_write_stats:                      ; @fork_write_stats
	.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	x20, _child_pid@GOTPAGE
Lloh1:
	ldr	x20, [x20, _child_pid@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
; %bb.1:
	bl	_fork
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x19, x0
	cbz	w0, LBB0_8
; %bb.3:
Lloh2:
	adrp	x8, _verbosity@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_5:
	str	w19, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fprintf
LBB0_8:
Lloh15:
	adrp	x8, _sfd@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sfd@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_close
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	bl	_write_stats
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_child_pid,4,2                  ; @child_pid
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork: %m\n"

	.comm	_sfd,4,2                        ; @sfd
	.comm	_verbosity,8,3                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"created child process pid = %d\n"

.subsections_via_symbols
