	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gc_qtexts
_gc_qtexts:                             ## @gc_qtexts
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_need_gc_qtexts
	testl	%eax, %eax
	je	LBB0_29
## %bb.1:
	leaq	-68(%rbp), %rdi
	callq	_qtext_load_file
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	_PGSS_TEXT_FILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_PG_BINARY_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AllocateFile
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_pgss_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_hash_seq_init
	movq	%rbx, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, (%rbx)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_hash_seq_search
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r14d
	movl	4(%rbx), %edi
	movl	-68(%rbp), %ecx
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_qtext_fetch
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	movq	%rax, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_fwrite
	cmpl	%r14d, %eax
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, 4(%rbx)
	addl	%r14d, %r13d
	incl	%r15d
	jmp	LBB0_11
LBB0_5:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_fileno
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_ftruncate
	testq	%rax, %rax
	movq	_PGSS_TEXT_FILE@GOTPCREL(%rip), %rbx
	je	LBB0_14
## %bb.13:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreeFile
	testq	%rax, %rax
	je	LBB0_15
LBB0_3:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_21:
	movq	_pgss_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_hash_seq_init
	movq	%rbx, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movl	$4294967295, %r14d              ## imm = 0xFFFFFFFF
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, (%rax)
	movq	%rbx, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	jne	LBB0_23
LBB0_24:
	movq	_PGSS_TEXT_FILE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_unlink
	movl	(%rbx), %edi
	movq	_PG_BINARY_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AllocateFile
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:
	movq	%rax, %rdi
	callq	_FreeFile
	jmp	LBB0_27
LBB0_25:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_27:
	movq	_pgss@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
	movq	_ASSUMED_LENGTH_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
LBB0_28:
	xorl	%eax, %eax
	callq	_record_gc_qtexts
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_pgss@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %ecx
	callq	_elog
	movq	(%rbx), %rcx
	movl	%r13d, (%rcx)
	testl	%r15d, %r15d
	jle	LBB0_17
## %bb.16:
	movl	%r13d, %eax
	cltd
	idivl	%r15d
	jmp	LBB0_18
LBB0_19:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movq	_PGSS_TEXT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	leaq	-44(%rbp), %rdi
	callq	_hash_seq_term
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_FreeFile
	jmp	LBB0_20
LBB0_17:
	movq	_ASSUMED_LENGTH_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	movl	%eax, 4(%rcx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_PGSS_TEXT_FILE,4,2             ## @PGSS_TEXT_FILE
	.comm	_PG_BINARY_W,4,2                ## @PG_BINARY_W
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not write file \"%s\": %m"

	.comm	_pgss_hash,4,2                  ## @pgss_hash
L_.str.1:                               ## @.str.1
	.asciz	"could not truncate file \"%s\": %m"

	.comm	_DEBUG1,4,2                     ## @DEBUG1
L_.str.2:                               ## @.str.2
	.asciz	"pgss gc of queries file shrunk size from %zu to %zu"

	.comm	_pgss,8,3                       ## @pgss
	.comm	_ASSUMED_LENGTH_INIT,8,3        ## @ASSUMED_LENGTH_INIT
L_.str.3:                               ## @.str.3
	.asciz	"could not recreate file \"%s\": %m"

	.no_dead_strip	_gc_qtexts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gc_qtexts
_gc_qtexts:                             ; @gc_qtexts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	bl	_need_gc_qtexts
	cbz	w0, LBB0_24
; %bb.1:
	add	x0, sp, #12
	bl	_qtext_load_file
Lloh0:
	adrp	x26, _pgss_hash@GOTPAGE
Lloh1:
	ldr	x26, [x26, _pgss_hash@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PGSS_TEXT_FILE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PGSS_TEXT_FILE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PG_BINARY_W@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PG_BINARY_W@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.2:
	mov	x19, x0
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_AllocateFile
	cbz	x0, LBB0_14
; %bb.3:
	mov	x20, x0
	ldr	w1, [x26]
	add	x0, sp, #8
	bl	_hash_seq_init
	add	x0, sp, #8
	bl	_hash_seq_search
	cbz	x0, LBB0_10
; %bb.4:
	mov	x22, x0
	mov	w27, #0
	mov	w21, #0
	movi	d8, #0x000000ffffffff
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	d8, [x22]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	bl	_hash_seq_search
	mov	x22, x0
	cbz	x0, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w23, w0, [x22]
	ldr	w3, [sp, #12]
	mov	x1, x23
	mov	x2, x19
	bl	_qtext_fetch
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w23, #1
	mov	w1, #1
	mov	x2, x23
	mov	x3, x20
	bl	_fwrite
	cmp	w0, w23
	b.ne	LBB0_27
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w21, [x22, #4]
	add	w21, w23, w21
	add	w27, w27, #1
	b	LBB0_6
LBB0_10:
	mov	w21, #0
	mov	w27, #0
LBB0_11:
	mov	x0, x20
	bl	_fileno
	mov	x1, x21
	bl	_ftruncate
	cbz	x0, LBB0_13
; %bb.12:
Lloh6:
	adrp	x8, _LOG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x24]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_13:
	mov	x0, x20
	bl	_FreeFile
	cbz	x0, LBB0_25
LBB0_14:
Lloh11:
	adrp	x8, _LOG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x24]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_15:
	mov	x0, x19
	bl	_free
LBB0_16:
	ldr	w1, [x26]
	add	x0, sp, #8
	bl	_hash_seq_init
	add	x0, sp, #8
	bl	_hash_seq_search
	cbz	x0, LBB0_19
; %bb.17:
	movi	d8, #0x000000ffffffff
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	str	d8, [x0]
	add	x0, sp, #8
	bl	_hash_seq_search
	cbnz	x0, LBB0_18
LBB0_19:
	ldr	w0, [x24]
	bl	_unlink
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_AllocateFile
	cbz	x0, LBB0_21
; %bb.20:
	bl	_FreeFile
	b	LBB0_22
LBB0_21:
Lloh16:
	adrp	x8, _LOG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x24]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_22:
Lloh21:
	adrp	x8, _pgss@GOTPAGE
Lloh22:
	ldr	x8, [x8, _pgss@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _ASSUMED_LENGTH_INIT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ASSUMED_LENGTH_INIT@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	stp	wzr, w9, [x8]
LBB0_23:
	bl	_record_gc_qtexts
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_25:
Lloh27:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x20, _pgss@GOTPAGE
Lloh31:
	ldr	x20, [x20, _pgss@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w2, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x21
	bl	_elog
	ldr	x8, [x20]
	str	w21, [x8]
	cmp	w27, #1
	b.lt	LBB0_28
; %bb.26:
	sdiv	w9, w21, w27
	b	LBB0_29
LBB0_27:
Lloh34:
	adrp	x8, _LOG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
	bl	_errcode_for_file_access
	ldr	w1, [x24]
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	add	x0, sp, #8
	bl	_hash_seq_term
	mov	x0, x20
	bl	_FreeFile
	b	LBB0_15
LBB0_28:
Lloh39:
	adrp	x9, _ASSUMED_LENGTH_INIT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ASSUMED_LENGTH_INIT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
LBB0_29:
	str	w9, [x8, #4]
	mov	x0, x19
	bl	_free
	b	LBB0_23
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PGSS_TEXT_FILE,4,2             ; @PGSS_TEXT_FILE
	.comm	_PG_BINARY_W,4,2                ; @PG_BINARY_W
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not write file \"%s\": %m"

	.comm	_pgss_hash,4,2                  ; @pgss_hash
l_.str.1:                               ; @.str.1
	.asciz	"could not truncate file \"%s\": %m"

	.comm	_DEBUG1,4,2                     ; @DEBUG1
l_.str.2:                               ; @.str.2
	.asciz	"pgss gc of queries file shrunk size from %zu to %zu"

	.comm	_pgss,8,3                       ; @pgss
	.comm	_ASSUMED_LENGTH_INIT,8,3        ; @ASSUMED_LENGTH_INIT
l_.str.3:                               ; @.str.3
	.asciz	"could not recreate file \"%s\": %m"

	.no_dead_strip	_gc_qtexts
.subsections_via_symbols
