	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function binary_upgrade_set_pg_class_oids
_binary_upgrade_set_pg_class_oids:      ## @binary_upgrade_set_pg_class_oids
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%r12d, %edx
	callq	_appendPQExpBuffer
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ExecuteSqlQueryForSingleRow
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_PQfnumber
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_appendPQExpBufferStr
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_appendPQExpBuffer
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_appendPQExpBuffer
	movl	%r13d, %r12d
LBB0_3:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_appendPQExpBuffer
LBB0_4:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_appendPQExpBufferChar
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroyPQExpBuffer             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT c.reltoastrelid, i.indexrelid FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_index i ON (c.reltoastrelid = i.indrelid AND i.indisvalid) WHERE c.oid = '%u'::pg_catalog.oid;"

L_.str.1:                               ## @.str.1
	.asciz	"reltoastrelid"

L_.str.2:                               ## @.str.2
	.asciz	"indexrelid"

L_.str.3:                               ## @.str.3
	.asciz	"\n-- For binary upgrade, must preserve pg_class oids\n"

L_.str.4:                               ## @.str.4
	.asciz	"SELECT pg_catalog.binary_upgrade_set_next_heap_pg_class_oid('%u'::pg_catalog.oid);\n"

L_.str.5:                               ## @.str.5
	.asciz	"SELECT pg_catalog.binary_upgrade_set_next_toast_pg_class_oid('%u'::pg_catalog.oid);\n"

L_.str.6:                               ## @.str.6
	.asciz	"SELECT pg_catalog.binary_upgrade_set_next_index_pg_class_oid('%u'::pg_catalog.oid);\n"

	.no_dead_strip	_binary_upgrade_set_pg_class_oids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function binary_upgrade_set_pg_class_oids
_binary_upgrade_set_pg_class_oids:      ; @binary_upgrade_set_pg_class_oids
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_createPQExpBuffer
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_appendPQExpBuffer
	ldr	w1, [x19]
	mov	x0, x21
	bl	_ExecuteSqlQueryForSingleRow
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PQfnumber
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_PQgetvalue
	bl	_atooid
	mov	x24, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_PQgetvalue
	bl	_atooid
	mov	x25, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_appendPQExpBufferStr
	cbnz	w23, LBB0_3
; %bb.1:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_appendPQExpBuffer
	mov	x0, x24
	bl	_OidIsValid
	cbz	x0, LBB0_4
; %bb.2:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_appendPQExpBuffer
	mov	x22, x25
LBB0_3:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_appendPQExpBuffer
LBB0_4:
	mov	x0, x20
	mov	w1, #10
	bl	_appendPQExpBufferChar
	mov	x0, x21
	bl	_PQclear
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_destroyPQExpBuffer
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT c.reltoastrelid, i.indexrelid FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_index i ON (c.reltoastrelid = i.indrelid AND i.indisvalid) WHERE c.oid = '%u'::pg_catalog.oid;"

l_.str.1:                               ; @.str.1
	.asciz	"reltoastrelid"

l_.str.2:                               ; @.str.2
	.asciz	"indexrelid"

l_.str.3:                               ; @.str.3
	.asciz	"\n-- For binary upgrade, must preserve pg_class oids\n"

l_.str.4:                               ; @.str.4
	.asciz	"SELECT pg_catalog.binary_upgrade_set_next_heap_pg_class_oid('%u'::pg_catalog.oid);\n"

l_.str.5:                               ; @.str.5
	.asciz	"SELECT pg_catalog.binary_upgrade_set_next_toast_pg_class_oid('%u'::pg_catalog.oid);\n"

l_.str.6:                               ; @.str.6
	.asciz	"SELECT pg_catalog.binary_upgrade_set_next_index_pg_class_oid('%u'::pg_catalog.oid);\n"

	.no_dead_strip	_binary_upgrade_set_pg_class_oids
.subsections_via_symbols
