	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AlterForeignDataWrapperOwner_internal
_AlterForeignDataWrapperOwner_internal: ## @AlterForeignDataWrapperOwner_internal
	.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	%edx, %r12d
	movq	%rsi, %r13
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_foreign_data_wrapper@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	movq	%r13, %rbx
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r13, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%r13), %edi
	callq	_NameStr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	%r12d, %edi
	callq	_superuser_arg
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpl	%r12d, 4(%r13)
	jne	LBB0_5
	jmp	LBB0_8
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%r13), %edi
	callq	_NameStr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.2(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	cmpl	%r12d, 4(%r13)
	je	LBB0_8
LBB0_5:
	shll	$2, %r15d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	movq	_Anum_pg_foreign_data_wrapper_fdwowner@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	movl	$1, -4(%r14,%rax,4)
	movl	%r12d, %edi
	callq	_ObjectIdGetDatum
	movslq	(%rbx), %rcx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, -4(%rbx,%rcx,4)
	movq	_Anum_pg_foreign_data_wrapper_fdwacl@GOTPCREL(%rip), %rax
	movl	%r12d, %r15d
	movl	(%rax), %r12d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_RelationGetDescr
	leaq	-68(%rbp), %rcx
	movq	%r13, %rdi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %r12d
	movq	%rbx, %r15
	movl	%eax, %edx
	callq	_heap_getattr
	cmpl	$0, -68(%rbp)
	jne	LBB0_7
## %bb.6:
	movl	%eax, %edi
	callq	_DatumGetAclP
	movl	4(%r13), %esi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_aclnewowner
	movq	_Anum_pg_foreign_data_wrapper_fdwacl@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	movl	$1, -4(%r14,%rcx,4)
	movq	%rax, %rdi
	callq	_PointerGetDatum
	movslq	(%rbx), %rcx
	movl	%eax, -4(%r15,%rcx,4)
LBB0_7:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_RelationGetDescr
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_heap_modify_tuple
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%rax, %rdx
	callq	_CatalogTupleUpdate
	movq	_ForeignDataWrapperRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	movl	%r12d, %edx
	callq	_changeDependencyOnOwner
LBB0_8:
	movq	_ForeignDataWrapperRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_foreign_data_wrapper,4,2 ## @Natts_pg_foreign_data_wrapper
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"permission denied to change owner of foreign-data wrapper \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"Must be superuser to change owner of a foreign-data wrapper."

L_.str.2:                               ## @.str.2
	.asciz	"The owner of a foreign-data wrapper must be a superuser."

	.comm	_Anum_pg_foreign_data_wrapper_fdwowner,4,2 ## @Anum_pg_foreign_data_wrapper_fdwowner
	.comm	_Anum_pg_foreign_data_wrapper_fdwacl,4,2 ## @Anum_pg_foreign_data_wrapper_fdwacl
	.comm	_ForeignDataWrapperRelationId,4,2 ## @ForeignDataWrapperRelationId
	.no_dead_strip	_AlterForeignDataWrapperOwner_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AlterForeignDataWrapperOwner_internal
_AlterForeignDataWrapperOwner_internal: ; @AlterForeignDataWrapperOwner_internal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _Natts_pg_foreign_data_wrapper@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Natts_pg_foreign_data_wrapper@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	lsl	x8, x27, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x24, x9, x12
	mov	sp, x24
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x12
	mov	sp, x25
	mov	x0, x1
	bl	_GETSTRUCT
	mov	x22, x0
	bl	_superuser
	cbnz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w26, [x8]
Lloh15:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x22, #8]
	bl	_NameStr
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_2:
	mov	x0, x19
	bl	_superuser_arg
	cbnz	w0, LBB0_4
; %bb.3:
Lloh22:
	adrp	x8, _ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w26, [x8]
Lloh25:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x22, #8]
	bl	_NameStr
	mov	x1, x0
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_4:
	ldr	w8, [x22, #4]
Lloh32:
	adrp	x28, _ForeignDataWrapperRelationId@GOTPAGE
Lloh33:
	ldr	x28, [x28, _ForeignDataWrapperRelationId@GOTPAGEOFF]
	cmp	w8, w19
	b.eq	LBB0_8
; %bb.5:
	lsl	w26, w27, #2
	mov	x0, x24
	mov	w1, #0
	mov	x2, x26
	bl	_memset
	mov	x0, x25
	mov	w1, #0
	mov	x2, x26
	bl	_memset
Lloh34:
	adrp	x26, _Anum_pg_foreign_data_wrapper_fdwowner@GOTPAGE
Lloh35:
	ldr	x26, [x26, _Anum_pg_foreign_data_wrapper_fdwowner@GOTPAGEOFF]
	ldrsw	x8, [x26]
	add	x8, x25, x8, lsl #2
	mov	w9, #1
	stur	w9, [x8, #-4]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	ldrsw	x8, [x26]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
Lloh36:
	adrp	x27, _Anum_pg_foreign_data_wrapper_fdwacl@GOTPAGE
Lloh37:
	ldr	x27, [x27, _Anum_pg_foreign_data_wrapper_fdwacl@GOTPAGEOFF]
	ldr	w26, [x27]
	mov	x0, x20
	bl	_RelationGetDescr
	mov	x2, x0
	sub	x3, x29, #92
	mov	x0, x21
	mov	x1, x26
	bl	_heap_getattr
	ldur	w8, [x29, #-92]
	cbnz	w8, LBB0_7
; %bb.6:
	bl	_DatumGetAclP
	ldr	w1, [x22, #4]
	mov	x2, x19
	bl	_aclnewowner
	ldrsw	x8, [x27]
	add	x8, x25, x8, lsl #2
	mov	w9, #1
	stur	w9, [x8, #-4]
	bl	_PointerGetDatum
	ldrsw	x8, [x27]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
LBB0_7:
	mov	x0, x20
	bl	_RelationGetDescr
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_heap_modify_tuple
	mov	x1, x0
	mov	x0, x20
	mov	x2, x1
	bl	_CatalogTupleUpdate
	ldr	w0, [x28]
	ldr	w1, [x22]
	mov	x2, x19
	bl	_changeDependencyOnOwner
LBB0_8:
	ldr	w0, [x28]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	ldur	x8, [x29, #-88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_foreign_data_wrapper,4,2 ; @Natts_pg_foreign_data_wrapper
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"permission denied to change owner of foreign-data wrapper \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"Must be superuser to change owner of a foreign-data wrapper."

l_.str.2:                               ; @.str.2
	.asciz	"The owner of a foreign-data wrapper must be a superuser."

	.comm	_Anum_pg_foreign_data_wrapper_fdwowner,4,2 ; @Anum_pg_foreign_data_wrapper_fdwowner
	.comm	_Anum_pg_foreign_data_wrapper_fdwacl,4,2 ; @Anum_pg_foreign_data_wrapper_fdwacl
	.comm	_ForeignDataWrapperRelationId,4,2 ; @ForeignDataWrapperRelationId
	.no_dead_strip	_AlterForeignDataWrapperOwner_internal
.subsections_via_symbols
