	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_metainfo_datafile
_update_metainfo_datafile:              ## @update_metainfo_datafile
	.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	_Log_destination@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_LOG_DESTINATION_STDERR@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	jne	LBB0_5
## %bb.1:
	movq	_LOG_DESTINATION_CSVLOG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_5:
	movq	_pg_mode_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_umask
	movl	%eax, %ebx
	movq	_LOG_METAINFO_DATAFILE_TMP@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_umask
	testq	%r14, %r14
	je	LBB0_10
## %bb.6:
	movq	_PG_IOLBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_setvbuf
	movq	_last_file_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.7:
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_13
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_fprintf
	testq	%rax, %rax
	js	LBB0_9
LBB0_13:
	movq	_last_csv_file_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.14:
	movq	_LOG_DESTINATION_CSVLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_fprintf
	testq	%rax, %rax
	js	LBB0_9
LBB0_16:
	movq	%r14, %rdi
	callq	_fclose
	movl	(%r15), %edi
	movq	_LOG_METAINFO_DATAFILE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_rename
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	jmp	LBB0_11
LBB0_10:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
LBB0_11:
	movl	%ebx, %edi
LBB0_12:
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_9:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r15), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_2:
	movq	_LOG_METAINFO_DATAFILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_unlink
	testq	%rax, %rax
	jns	LBB0_18
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_Log_destination,4,2            ## @Log_destination
	.comm	_LOG_DESTINATION_STDERR,4,2     ## @LOG_DESTINATION_STDERR
	.comm	_LOG_DESTINATION_CSVLOG,4,2     ## @LOG_DESTINATION_CSVLOG
	.comm	_LOG_METAINFO_DATAFILE,4,2      ## @LOG_METAINFO_DATAFILE
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not remove file \"%s\": %m"

	.comm	_pg_mode_mask,4,2               ## @pg_mode_mask
	.comm	_LOG_METAINFO_DATAFILE_TMP,4,2  ## @LOG_METAINFO_DATAFILE_TMP
L_.str.1:                               ## @.str.1
	.asciz	"w"

	.comm	_PG_IOLBF,4,2                   ## @PG_IOLBF
L_.str.2:                               ## @.str.2
	.asciz	"could not open file \"%s\": %m"

	.comm	_last_file_name,8,3             ## @last_file_name
L_.str.3:                               ## @.str.3
	.asciz	"stderr %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"could not write file \"%s\": %m"

	.comm	_last_csv_file_name,8,3         ## @last_csv_file_name
L_.str.5:                               ## @.str.5
	.asciz	"csvlog %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"could not rename file \"%s\" to \"%s\": %m"

	.comm	__O_TEXT,4,2                    ## @_O_TEXT
	.no_dead_strip	_update_metainfo_datafile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_metainfo_datafile
_update_metainfo_datafile:              ; @update_metainfo_datafile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x22, _Log_destination@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Log_destination@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _LOG_DESTINATION_STDERR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _LOG_DESTINATION_STDERR@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _LOG_DESTINATION_CSVLOG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LOG_DESTINATION_CSVLOG@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_2:
Lloh7:
	adrp	x8, _pg_mode_mask@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pg_mode_mask@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_umask
	mov	x20, x0
Lloh10:
	adrp	x21, _LOG_METAINFO_DATAFILE_TMP@GOTPAGE
Lloh11:
	ldr	x21, [x21, _LOG_METAINFO_DATAFILE_TMP@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x19, x0
	mov	x0, x20
	bl	_umask
	cbz	x19, LBB0_11
; %bb.3:
Lloh14:
	adrp	x8, _PG_IOLBF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PG_IOLBF@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	bl	_setvbuf
Lloh17:
	adrp	x8, _last_file_name@GOTPAGE
Lloh18:
	ldr	x8, [x8, _last_file_name@GOTPAGEOFF]
Lloh19:
	ldr	x2, [x8]
	cbz	x2, LBB0_6
; %bb.4:
	ldr	w8, [x22]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	tbnz	x0, #63, LBB0_13
LBB0_6:
Lloh22:
	adrp	x8, _last_csv_file_name@GOTPAGE
Lloh23:
	ldr	x8, [x8, _last_csv_file_name@GOTPAGEOFF]
Lloh24:
	ldr	x2, [x8]
	cbz	x2, LBB0_9
; %bb.7:
	ldr	w8, [x22]
Lloh25:
	adrp	x9, _LOG_DESTINATION_CSVLOG@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LOG_DESTINATION_CSVLOG@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	tbnz	x0, #63, LBB0_13
LBB0_9:
	mov	x0, x19
	bl	_fclose
	ldr	w0, [x21]
Lloh30:
	adrp	x20, _LOG_METAINFO_DATAFILE@GOTPAGE
Lloh31:
	ldr	x20, [x20, _LOG_METAINFO_DATAFILE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_rename
	cbz	x0, LBB0_16
; %bb.10:
Lloh32:
	adrp	x8, _LOG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh34:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x21]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh35:
	adrp	x0, l_.str.6@PAGE
Lloh36:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh37:
	adrp	x8, _LOG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh39:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x21]
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ereport
LBB0_13:
Lloh42:
	adrp	x8, _LOG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh44:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x21]
Lloh45:
	adrp	x0, l_.str.4@PAGE
Lloh46:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_fclose
LBB0_14:
Lloh47:
	adrp	x20, _LOG_METAINFO_DATAFILE@GOTPAGE
Lloh48:
	ldr	x20, [x20, _LOG_METAINFO_DATAFILE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_unlink
	tbz	x0, #63, LBB0_16
; %bb.15:
Lloh49:
	adrp	x8, _errno@GOTPAGE
Lloh50:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
Lloh52:
	adrp	x9, _ENOENT@GOTPAGE
Lloh53:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh55:
	adrp	x8, _LOG@GOTPAGE
Lloh56:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh57:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x20]
Lloh58:
	adrp	x0, l_.str@PAGE
Lloh59:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_Log_destination,4,2            ; @Log_destination
	.comm	_LOG_DESTINATION_STDERR,4,2     ; @LOG_DESTINATION_STDERR
	.comm	_LOG_DESTINATION_CSVLOG,4,2     ; @LOG_DESTINATION_CSVLOG
	.comm	_LOG_METAINFO_DATAFILE,4,2      ; @LOG_METAINFO_DATAFILE
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not remove file \"%s\": %m"

	.comm	_pg_mode_mask,4,2               ; @pg_mode_mask
	.comm	_LOG_METAINFO_DATAFILE_TMP,4,2  ; @LOG_METAINFO_DATAFILE_TMP
l_.str.1:                               ; @.str.1
	.asciz	"w"

	.comm	_PG_IOLBF,4,2                   ; @PG_IOLBF
l_.str.2:                               ; @.str.2
	.asciz	"could not open file \"%s\": %m"

	.comm	_last_file_name,8,3             ; @last_file_name
l_.str.3:                               ; @.str.3
	.asciz	"stderr %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"could not write file \"%s\": %m"

	.comm	_last_csv_file_name,8,3         ; @last_csv_file_name
l_.str.5:                               ; @.str.5
	.asciz	"csvlog %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"could not rename file \"%s\" to \"%s\": %m"

	.comm	__O_TEXT,4,2                    ; @_O_TEXT
	.no_dead_strip	_update_metainfo_datafile
.subsections_via_symbols
