	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function binary_upgrade_set_type_oids_by_rel_oid
_binary_upgrade_set_type_oids_by_rel_oid: ## @binary_upgrade_set_type_oids_by_rel_oid
	.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	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %r15
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_appendPQExpBuffer
	movl	(%r15), %esi
	movq	%r13, %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
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_binary_upgrade_set_type_oids_by_type_oid
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PQfnumber
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_PQgetisnull
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	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, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_appendPQExpBufferStr
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_appendPQExpBuffer
	movl	$1, %r12d
LBB0_2:
	movq	%rbx, %rdi
	callq	_PQclear
	movq	%r15, %rdi
	callq	_destroyPQExpBuffer
	movl	%r12d, %eax
	addq	$8, %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	"SELECT c.reltype AS crel, t.reltype AS trel FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_class t ON   (c.reltoastrelid = t.oid AND c.relkind <> '%c') WHERE c.oid = '%u'::pg_catalog.oid;"

	.comm	_RELKIND_PARTITIONED_TABLE,4,2  ## @RELKIND_PARTITIONED_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"crel"

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

L_.str.3:                               ## @.str.3
	.asciz	"\n-- For binary upgrade, must preserve pg_type toast oid\n"

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

	.no_dead_strip	_binary_upgrade_set_type_oids_by_rel_oid
.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_type_oids_by_rel_oid
_binary_upgrade_set_type_oids_by_rel_oid: ; @binary_upgrade_set_type_oids_by_rel_oid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	bl	_createPQExpBuffer
	mov	x19, x0
Lloh0:
	adrp	x8, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_appendPQExpBuffer
	ldr	w1, [x19]
	mov	x0, x22
	bl	_ExecuteSqlQueryForSingleRow
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PQfnumber
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_PQgetvalue
	bl	_atooid
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	mov	w3, #0
	bl	_binary_upgrade_set_type_oids_by_type_oid
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_PQfnumber
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_PQgetisnull
	mov	w22, #0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	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	x22, x0
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_appendPQExpBufferStr
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_appendPQExpBuffer
	mov	w22, #1
LBB0_2:
	mov	x0, x21
	bl	_PQclear
	mov	x0, x19
	bl	_destroyPQExpBuffer
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT c.reltype AS crel, t.reltype AS trel FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_class t ON   (c.reltoastrelid = t.oid AND c.relkind <> '%c') WHERE c.oid = '%u'::pg_catalog.oid;"

	.comm	_RELKIND_PARTITIONED_TABLE,4,2  ; @RELKIND_PARTITIONED_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"crel"

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

l_.str.3:                               ; @.str.3
	.asciz	"\n-- For binary upgrade, must preserve pg_type toast oid\n"

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

	.no_dead_strip	_binary_upgrade_set_type_oids_by_rel_oid
.subsections_via_symbols
