	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fork_write_index               ## -- Begin function fork_write_index
	.p2align	4, 0x90
_fork_write_index:                      ## @fork_write_index
	.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
	movl	(%r14), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_10
## %bb.2:
	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_3:
	xorl	%eax, %eax
	callq	_flush_binlog_ts
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	je	LBB0_11
## %bb.6:
	movl	%eax, %ebx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movl	%ebx, (%r14)
	jmp	LBB0_9
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	_force_write_index@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_binlogname@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_save_index
	movl	%eax, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_child_pid,4,2                  ## @child_pid
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"process with pid %d already generates index, skipping\n"

L_.str.1:                               ## @.str.1
	.asciz	"fork: %m\n"

	.comm	_binlogname,8,3                 ## @binlogname
	.comm	_binlog_disabled,4,2            ## @binlog_disabled
L_.str.2:                               ## @.str.2
	.asciz	"created child process pid = %d\n"

	.comm	_force_write_index,8,3          ## @force_write_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fork_write_index               ; -- Begin function fork_write_index
	.p2align	2
_fork_write_index:                      ; @fork_write_index
	.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]
	cbz	w8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _verbosity@GOTPAGE
Lloh3:
	ldr	x9, [x9, _verbosity@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, #1
	b.lt	LBB0_10
; %bb.2:
Lloh5:
	adrp	x9, _stderr@GOTPAGE
Lloh6:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_10
LBB0_3:
	bl	_flush_binlog_ts
	bl	_fork
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x19, x0
	cbz	w0, LBB0_11
; %bb.5:
Lloh10:
	adrp	x8, _verbosity@GOTPAGE
Lloh11:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_7:
	str	w19, [x20]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_9:
Lloh23:
	adrp	x8, _force_write_index@GOTPAGE
Lloh24:
	ldr	x8, [x8, _force_write_index@GOTPAGEOFF]
Lloh25:
	str	xzr, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
Lloh26:
	adrp	x8, _binlogname@GOTPAGE
Lloh27:
	ldr	x8, [x8, _binlogname@GOTPAGEOFF]
Lloh28:
	str	xzr, [x8]
Lloh29:
	adrp	x8, _binlog_disabled@GOTPAGE
Lloh30:
	ldr	x8, [x8, _binlog_disabled@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_save_index
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_child_pid,4,2                  ; @child_pid
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"process with pid %d already generates index, skipping\n"

l_.str.1:                               ; @.str.1
	.asciz	"fork: %m\n"

	.comm	_binlogname,8,3                 ; @binlogname
	.comm	_binlog_disabled,4,2            ; @binlog_disabled
l_.str.2:                               ; @.str.2
	.asciz	"created child process pid = %d\n"

	.comm	_force_write_index,8,3          ; @force_write_index
.subsections_via_symbols
