	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdopenfork
_mdopenfork:                            ## @mdopenfork
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rax
	cmpq	$0, (%rax,%rsi,8)
	jle	LBB0_2
## %bb.1:
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %rbx
	jmp	LBB0_8
LBB0_2:
	movl	%edx, %r13d
	movl	16(%r12), %edi
	movq	%r14, %rsi
	callq	_relpath
	movq	%rax, %r15
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_PG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_PathNameOpenFile
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_7
## %bb.3:
	movq	_EXTENSION_RETURN_NULL@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FILE_POSSIBLY_DELETED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_pfree
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%rbx, %r13
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movq	%r13, %rbx
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	%r15, %rdi
	callq	_pfree
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	__fdvec_resize
	movq	8(%r12), %rax
	movq	%rbx, %rcx
	movq	(%rax,%r14,8), %rbx
	movq	%rcx, 8(%rbx)
	movq	$0, (%rbx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	__mdnblocks
	movq	_RELSEG_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	callq	_Assert
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_EXTENSION_RETURN_NULL,4,2      ## @EXTENSION_RETURN_NULL
	.comm	_errno,4,2                      ## @errno
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not open file \"%s\": %m"

	.comm	_RELSEG_SIZE,8,3                ## @RELSEG_SIZE
	.no_dead_strip	_mdopenfork
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdopenfork
_mdopenfork:                            ; @mdopenfork
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8, x1, lsl #3]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x21, [x8, x19, lsl #3]
	b	LBB0_8
LBB0_2:
	mov	x23, x2
	ldr	w0, [x20, #16]
	mov	x1, x19
	bl	_relpath
	mov	x21, x0
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_PathNameOpenFile
	mov	x22, x0
	tbz	x0, #63, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _EXTENSION_RETURN_NULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXTENSION_RETURN_NULL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_FILE_POSSIBLY_DELETED
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_pfree
	mov	x21, #0
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	bl	_errcode_for_file_access
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_7:
	mov	x0, x21
	bl	_pfree
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	__fdvec_resize
	ldr	x8, [x20, #8]
	ldr	x21, [x8, x19, lsl #3]
	stp	xzr, x22, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	__mdnblocks
Lloh17:
	adrp	x8, _RELSEG_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RELSEG_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, le
	bl	_Assert
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_EXTENSION_RETURN_NULL,4,2      ; @EXTENSION_RETURN_NULL
	.comm	_errno,4,2                      ; @errno
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not open file \"%s\": %m"

	.comm	_RELSEG_SIZE,8,3                ; @RELSEG_SIZE
	.no_dead_strip	_mdopenfork
.subsections_via_symbols
