	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_old_9_6_invalidate_hash_indexes ## -- Begin function old_9_6_invalidate_hash_indexes
	.p2align	4, 0x90
_old_9_6_invalidate_hash_indexes:       ## @old_9_6_invalidate_hash_indexes
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	leaq	L_.str.1(%rip), %rdi
	callq	_prep_status
	cmpl	$0, (%r13)
	jle	LBB0_25
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_PQclear
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_PQfinish
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%r13), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_connectToServer
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_executeQueryOrDie
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_PQntuples
	movl	%eax, %r12d
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_PQfnumber
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_PQfnumber
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_quote_identifier
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_quote_identifier
	movq	%r15, %rdi
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	movl	$1, %ebx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	incl	%r13d
	cmpl	%r13d, %r12d
	je	LBB0_13
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	testq	%r15, %r15
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_fopen_priv
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	testl	%ebx, %ebx
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_initPQExpBuffer
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_appendPsqlMetaConnect
	movl	-80(%rbp), %edi
	movq	%r15, %rsi
	callq	_fputs
	movq	%rbx, %rdi
	callq	_termPQExpBuffer
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_pg_fatal
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	jne	LBB0_11
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_PQclear
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_executeQueryOrDie
	movq	%rax, %r14
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_19:
	testq	%r15, %r15
	je	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	callq	_fclose
LBB0_21:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_25
## %bb.22:
	movq	_PG_WARNING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_report_status
	movl	(%rbx), %edi
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_pg_log
	jmp	LBB0_26
LBB0_25:
	xorl	%eax, %eax
	callq	_check_ok
	jmp	LBB0_26
LBB0_24:
	leaq	L_.str.11(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_pg_log
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reindex_hash.sql"

L_.str.1:                               ## @.str.1
	.asciz	"Checking for hash indexes"

L_.str.2:                               ## @.str.2
	.asciz	"SELECT n.nspname, c.relname FROM\tpg_catalog.pg_class c, \t\tpg_catalog.pg_index i, \t\tpg_catalog.pg_am a, \t\tpg_catalog.pg_namespace n WHERE\ti.indexrelid = c.oid AND \t\tc.relam = a.oid AND \t\tc.relnamespace = n.oid AND \t\ta.amname = 'hash'"

L_.str.3:                               ## @.str.3
	.asciz	"nspname"

L_.str.4:                               ## @.str.4
	.asciz	"relname"

L_.str.5:                               ## @.str.5
	.asciz	"w"

L_.str.6:                               ## @.str.6
	.asciz	"could not open file \"%s\": %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.7:                               ## @.str.7
	.asciz	"REINDEX INDEX %s.%s;\n"

L_.str.8:                               ## @.str.8
	.asciz	"UPDATE pg_catalog.pg_index i SET\tindisvalid = false FROM\tpg_catalog.pg_class c, \t\tpg_catalog.pg_am a, \t\tpg_catalog.pg_namespace n WHERE\ti.indexrelid = c.oid AND \t\tc.relam = a.oid AND \t\tc.relnamespace = n.oid AND \t\ta.amname = 'hash'"

	.comm	_PG_WARNING,4,2                 ## @PG_WARNING
L_.str.9:                               ## @.str.9
	.asciz	"warning"

L_.str.10:                              ## @.str.10
	.asciz	"\nYour installation contains hash indexes.  These indexes have different\ninternal formats between your old and new clusters, so they must be\nreindexed with the REINDEX command.  After upgrading, you will be given\nREINDEX instructions.\n\n"

L_.str.11:                              ## @.str.11
	.asciz	"\nYour installation contains hash indexes.  These indexes have different\ninternal formats between your old and new clusters, so they must be\nreindexed with the REINDEX command.  The file\n    %s\nwhen executed by psql by the database superuser will recreate all invalid\nindexes; until then, none of these indexes will be used.\n\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_old_9_6_invalidate_hash_indexes ; -- Begin function old_9_6_invalidate_hash_indexes
	.p2align	2
_old_9_6_invalidate_hash_indexes:       ; @old_9_6_invalidate_hash_indexes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_prep_status
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x22, #0
	mov	x28, #0
	mov	w20, #0
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_PQclear
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_PQfinish
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_19
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x27, [x21, #8]
	ldr	w1, [x27, x22, lsl #2]
	mov	x0, x21
	bl	_connectToServer
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_executeQueryOrDie
	mov	x23, x0
	bl	_PQntuples
	mov	x24, x0
	mov	x0, x23
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PQfnumber
	mov	x26, x0
	mov	x0, x23
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PQfnumber
	cmp	w24, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	mov	w21, #0
	mov	w20, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh11:
	adrp	x0, l_.str.6@PAGE
Lloh12:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pg_fatal
	cbz	w21, LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x23
	mov	x1, x20
	mov	x2, x26
	bl	_PQgetvalue
	bl	_quote_identifier
	mov	x21, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x25
	bl	_PQgetvalue
	bl	_quote_identifier
	mov	x3, x0
	mov	x0, x28
Lloh15:
	adrp	x1, l_.str.7@PAGE
Lloh16:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x21
	bl	_fprintf
	mov	w21, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w20, w20, #1
	cmp	w24, w20
	b.eq	LBB0_15
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w19, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cbnz	x28, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fopen_priv
	mov	x28, x0
	cbz	x0, LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	cbnz	w21, LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x0, sp, #24
	bl	_initPQExpBuffer
	ldr	w1, [x27, x22, lsl #2]
	add	x0, sp, #24
	bl	_appendPsqlMetaConnect
	ldr	w0, [sp, #24]
	mov	x1, x28
	bl	_fputs
	add	x0, sp, #24
	bl	_termPQExpBuffer
	b	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_PQclear
	mov	w20, #1
	cbnz	w19, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x24
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_executeQueryOrDie
	mov	x23, x0
	mov	w20, #1
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x21, x24, [sp, #8]              ; 16-byte Folded Reload
	b	LBB0_4
LBB0_19:
	cbz	x28, LBB0_21
; %bb.20:
	mov	x0, x28
	bl	_fclose
LBB0_21:
	cbz	w20, LBB0_24
; %bb.22:
Lloh23:
	adrp	x20, _PG_WARNING@GOTPAGE
Lloh24:
	ldr	x20, [x20, _PG_WARNING@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_report_status
	ldr	w0, [x20]
	cbz	w19, LBB0_25
; %bb.23:
Lloh27:
	adrp	x1, l_.str.10@PAGE
Lloh28:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_26
LBB0_24:
	bl	_check_ok
	b	LBB0_27
LBB0_25:
Lloh29:
	adrp	x8, l_.str@PAGE
Lloh30:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.11@PAGE
Lloh32:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_26:
	bl	_pg_log
LBB0_27:
	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
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reindex_hash.sql"

l_.str.1:                               ; @.str.1
	.asciz	"Checking for hash indexes"

l_.str.2:                               ; @.str.2
	.asciz	"SELECT n.nspname, c.relname FROM\tpg_catalog.pg_class c, \t\tpg_catalog.pg_index i, \t\tpg_catalog.pg_am a, \t\tpg_catalog.pg_namespace n WHERE\ti.indexrelid = c.oid AND \t\tc.relam = a.oid AND \t\tc.relnamespace = n.oid AND \t\ta.amname = 'hash'"

l_.str.3:                               ; @.str.3
	.asciz	"nspname"

l_.str.4:                               ; @.str.4
	.asciz	"relname"

l_.str.5:                               ; @.str.5
	.asciz	"w"

l_.str.6:                               ; @.str.6
	.asciz	"could not open file \"%s\": %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.7:                               ; @.str.7
	.asciz	"REINDEX INDEX %s.%s;\n"

l_.str.8:                               ; @.str.8
	.asciz	"UPDATE pg_catalog.pg_index i SET\tindisvalid = false FROM\tpg_catalog.pg_class c, \t\tpg_catalog.pg_am a, \t\tpg_catalog.pg_namespace n WHERE\ti.indexrelid = c.oid AND \t\tc.relam = a.oid AND \t\tc.relnamespace = n.oid AND \t\ta.amname = 'hash'"

	.comm	_PG_WARNING,4,2                 ; @PG_WARNING
l_.str.9:                               ; @.str.9
	.asciz	"warning"

l_.str.10:                              ; @.str.10
	.asciz	"\nYour installation contains hash indexes.  These indexes have different\ninternal formats between your old and new clusters, so they must be\nreindexed with the REINDEX command.  After upgrading, you will be given\nREINDEX instructions.\n\n"

l_.str.11:                              ; @.str.11
	.asciz	"\nYour installation contains hash indexes.  These indexes have different\ninternal formats between your old and new clusters, so they must be\nreindexed with the REINDEX command.  The file\n    %s\nwhen executed by psql by the database superuser will recreate all invalid\nindexes; until then, none of these indexes will be used.\n\n"

.subsections_via_symbols
