	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtext_store
_qtext_store:                           ## @qtext_store
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_pgss@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movq	(%r14), %r12
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movslq	%r13d, %rax
	movq	(%r14), %rcx
	addq	%rcx, %rax
	incq	%rax
	movq	%rax, (%r14)
	incl	16(%r14)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movq	%r15, %rdi
	callq	_SpinLockRelease
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	_PGSS_TEXT_FILE@GOTPCREL(%rip), %r13
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r13), %edi
	movq	_PG_BINARY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_OpenTransientFile
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_lseek
	cmpq	%r12, %rax
	jne	LBB0_6
## %bb.4:
	movl	%ebx, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	_write
	cmpl	%r14d, %eax
	jne	LBB0_6
## %bb.5:
	leaq	l_.str(%rip), %rsi
	movl	$1, %r14d
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_write
	cmpl	$1, %eax
	je	LBB0_7
LBB0_6:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	testl	%ebx, %ebx
	js	LBB0_8
LBB0_7:
	movl	%ebx, %edi
	callq	_CloseTransientFile
LBB0_8:
	movq	_pgss@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	decl	16(%rbx)
	movq	%r15, %rdi
	callq	_SpinLockRelease
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pgss,8,3                       ## @pgss
	.comm	_PGSS_TEXT_FILE,4,2             ## @PGSS_TEXT_FILE
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.space	2

	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"could not write file \"%s\": %m"

	.no_dead_strip	_qtext_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtext_store
_qtext_store:                           ; @qtext_store
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _pgss@GOTPAGE
Lloh1:
	ldr	x25, [x25, _pgss@GOTPAGEOFF]
	ldr	x26, [x25]
	add	x24, x26, #12
	mov	x0, x24
	bl	_SpinLockAcquire
	ldr	x22, [x26]
	add	w8, w20, #1
	ldr	x9, [x26]
	add	x8, x9, w8, sxtw
	str	x8, [x26]
	ldr	w8, [x26, #16]
	add	w8, w8, #1
	str	w8, [x26, #16]
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w8, [x26, #8]
	str	w8, [x23]
LBB0_2:
	mov	x0, x24
	bl	_SpinLockRelease
	str	x22, [x19]
Lloh2:
	adrp	x23, _PGSS_TEXT_FILE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PGSS_TEXT_FILE@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh4:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_OpenTransientFile
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
Lloh13:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_lseek
	cmp	x0, x22
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_write
	cmp	w0, w20
	b.ne	LBB0_6
; %bb.5:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	bl	_write
	cmp	w0, #1
	b.eq	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _LOG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x23]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	mov	w21, #0
	mov	w20, #0
	tbnz	w19, #31, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_CloseTransientFile
	mov	x20, x21
LBB0_8:
	ldr	x21, [x25]
	add	x19, x21, #12
	mov	x0, x19
	bl	_SpinLockAcquire
	ldr	w8, [x21, #16]
	sub	w8, w8, #1
	str	w8, [x21, #16]
	mov	x0, x19
	bl	_SpinLockRelease
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_pgss,8,3                       ; @pgss
	.comm	_PGSS_TEXT_FILE,4,2             ; @PGSS_TEXT_FILE
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.space	2

	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"could not write file \"%s\": %m"

	.no_dead_strip	_qtext_store
.subsections_via_symbols
