	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RecheckDataDirLockFile         ## -- Begin function RecheckDataDirLockFile
	.p2align	4, 0x90
_RecheckDataDirLockFile:                ## @RecheckDataDirLockFile
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_DIRECTORY_LOCK_FILE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_PG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	callq	_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	movq	_WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_wait_start
	decl	%ebx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_read
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.2:
	movl	%ebx, %eax
	movb	$0, (%r14,%rax)
	movl	%r15d, %edi
	callq	_close
	movq	%r14, %rdi
	callq	_atol
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_getpid
	movl	$1, %r15d
	cmpq	%rax, %r14
	je	LBB0_9
## %bb.3:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %ebx
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	$-2, %ebx
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r12), %esi
	cmpl	$128, %ebx
	jne	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_9
LBB0_6:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movl	$1, %r15d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r15d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_DIRECTORY_LOCK_FILE,4,2        ## @DIRECTORY_LOCK_FILE
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_errno,4,2                      ## @errno
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not open file \"%s\": %m"

L_.str.1:                               ## @.str.1
	.asciz	"could not open file \"%s\": %m; continuing anyway"

	.comm	_WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ,4,2 ## @WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ
L_.str.2:                               ## @.str.2
	.asciz	"could not read from file \"%s\": %m"

L_.str.3:                               ## @.str.3
	.asciz	"lock file \"%s\" contains wrong PID: %ld instead of %ld"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RecheckDataDirLockFile         ; -- Begin function RecheckDataDirLockFile
	.p2align	2
_RecheckDataDirLockFile:                ; @RecheckDataDirLockFile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x22, _DIRECTORY_LOCK_FILE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DIRECTORY_LOCK_FILE@GOTPAGEOFF]
Lloh10:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	bl	_open
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh16:
	adrp	x8, _WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_pgstat_report_wait_start
	sub	w2, w21, #1
	mov	x0, x20
	mov	x1, x19
	bl	_read
	mov	x21, x0
	bl	_pgstat_report_wait_end
	tbnz	w21, #31, LBB0_7
; %bb.2:
	strb	wzr, [x19, w21, uxtw]
	mov	x0, x20
	bl	_close
	mov	x0, x19
	bl	_atol
	mov	x19, x0
	bl	_getpid
	cmp	x19, x0
	b.eq	LBB0_9
; %bb.3:
Lloh19:
	adrp	x8, _LOG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	ldr	w21, [x22]
	bl	_getpid
	stp	x19, x0, [sp, #-16]!
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x20
	b	LBB0_6
LBB0_4:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w20, w8, #0xfffffffe
Lloh27:
	adrp	x8, _LOG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x22]
	cmp	w20, #128
	b.ne	LBB0_8
; %bb.5:
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
LBB0_6:
	bl	_ereport
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh32:
	adrp	x8, _LOG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh34:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x22]
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	x0, x20
	bl	_close
	b	LBB0_9
LBB0_8:
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_DIRECTORY_LOCK_FILE,4,2        ; @DIRECTORY_LOCK_FILE
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_errno,4,2                      ; @errno
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not open file \"%s\": %m"

l_.str.1:                               ; @.str.1
	.asciz	"could not open file \"%s\": %m; continuing anyway"

	.comm	_WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ,4,2 ; @WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ
l_.str.2:                               ; @.str.2
	.asciz	"could not read from file \"%s\": %m"

l_.str.3:                               ; @.str.3
	.asciz	"lock file \"%s\" contains wrong PID: %ld instead of %ld"

.subsections_via_symbols
