	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterCollation                 ## -- Begin function AlterCollation
	.p2align	4, 0x90
_AlterCollation:                        ## @AlterCollation
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CollationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_get_collation_oid
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_pg_collation_ownercheck
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_OBJECT_COLLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %edi
	callq	_NameListToString
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_2:
	movq	_COLLOID@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	%r15d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_4:
	movq	%r14, %rdi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	_Anum_pg_collation_collversion@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rsi
	callq	_SysCacheGetAttr
	cmpl	$0, -56(%rbp)
	je	LBB0_6
## %bb.5:
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %edi
	callq	_TextDatumGetCString
	movq	%rax, %r13
LBB0_7:
	movl	(%rbx), %edi
	movl	4(%rbx), %ebx
	callq	_NameStr
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_get_collation_actual_version
	movq	%rax, %r12
	testq	%r13, %r13
	sete	%al
	testq	%r12, %r12
	setne	%cl
	movl	%eax, %edx
	andb	%cl, %dl
	cmpb	$1, %dl
	je	LBB0_9
## %bb.8:
	orb	%cl, %al
	je	LBB0_9
## %bb.10:
	testq	%r13, %r13
	je	LBB0_14
## %bb.11:
	testq	%r12, %r12
	je	LBB0_14
## %bb.12:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	_Natts_pg_collation@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_memset
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_CStringGetTextDatum
	movq	_Anum_pg_collation_collversion@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, -4(%rbx,%rcx,4)
	movl	$1, -4(%r13,%rcx,4)
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_RelationGetDescr
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_heap_modify_tuple
	movq	%rax, %r14
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_16
LBB0_9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_15
LBB0_14:
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_15:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_16:
	movl	%r12d, %edi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_CatalogTupleUpdate
	movq	_CollationRelationId@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movl	(%rbx), %esi
	movl	%r15d, %edx
	callq	_ObjectAddressSet
	movq	%r14, %rdi
	callq	_heap_freetuple
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_table_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CollationRelationId,4,2        ## @CollationRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_COLLATION,4,2           ## @OBJECT_COLLATION
	.comm	_COLLOID,4,2                    ## @COLLOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for collation %u"

	.comm	_Anum_pg_collation_collversion,4,2 ## @Anum_pg_collation_collversion
L_.str.1:                               ## @.str.1
	.asciz	"invalid collation version change"

	.comm	_Natts_pg_collation,4,2         ## @Natts_pg_collation
	.comm	_NOTICE,4,2                     ## @NOTICE
L_.str.2:                               ## @.str.2
	.asciz	"changing version from %s to %s"

L_.str.3:                               ## @.str.3
	.asciz	"version has not changed"

	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterCollation                 ; -- Begin function AlterCollation
	.p2align	2
_AlterCollation:                        ; @AlterCollation
	.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, #48
	mov	x21, 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	x25, _CollationRelationId@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CollationRelationId@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh5:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_table_open
	mov	x19, x0
	ldr	w0, [x21]
	mov	w1, #0
	bl	_get_collation_oid
	mov	x20, x0
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x20
	bl	_pg_collation_ownercheck
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _OBJECT_COLLATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OBJECT_COLLATION@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	ldr	w0, [x21]
	bl	_NameListToString
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_aclcheck_error
LBB0_2:
Lloh14:
	adrp	x23, _COLLOID@GOTPAGE
Lloh15:
	ldr	x23, [x23, _COLLOID@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_SearchSysCacheCopy1
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	str	x20, [sp, #-16]!
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	add	sp, sp, #16
LBB0_4:
	mov	x0, x21
	bl	_GETSTRUCT
	mov	x22, x0
	ldr	w0, [x23]
Lloh21:
	adrp	x28, _Anum_pg_collation_collversion@GOTPAGE
Lloh22:
	ldr	x28, [x28, _Anum_pg_collation_collversion@GOTPAGEOFF]
	ldr	w2, [x28]
	sub	x3, x29, #92
	mov	x1, x21
	bl	_SysCacheGetAttr
	ldur	w8, [x29, #-92]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x23, #0
	b	LBB0_7
LBB0_6:
	bl	_TextDatumGetCString
	mov	x23, x0
LBB0_7:
	ldp	w0, w24, [x22]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x24
	bl	_get_collation_actual_version
	cmp	x23, #0
	cset	w8, eq
	cmp	x0, #0
	cset	w9, ne
	and	w10, w8, w9
	cmp	w10, #1
	b.eq	LBB0_13
; %bb.8:
	orr	w8, w8, w9
	tbz	w8, #0, LBB0_13
; %bb.9:
	cbz	x23, LBB0_14
; %bb.10:
	mov	x22, x0
	cbz	x0, LBB0_14
; %bb.11:
	mov	x0, x22
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.12:
	mov	x8, sp
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh23:
	adrp	x12, _Natts_pg_collation@GOTPAGE
Lloh24:
	ldr	x12, [x12, _Natts_pg_collation@GOTPAGEOFF]
	ldr	w8, [x12]
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	lsl	x8, x8, #2
	mov	x9, x8
Lloh25:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh26:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	mov	sp, x8
	ldr	w24, [x12]
	lsl	x8, x24, #2
	mov	x9, x8
Lloh27:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh28:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x25, x9, x12
	mov	sp, x25
	mov	x9, x8
Lloh29:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh30:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x26, x8, x12
	mov	sp, x26
Lloh31:
	adrp	x8, _NOTICE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh33:
	ldr	w27, [x8]
	stp	x23, x22, [sp, #-16]!
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
	lsl	w23, w24, #2
	mov	x0, x26
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldp	x24, x8, [x29, #-120]           ; 16-byte Folded Reload
	lsl	w2, w8, #2
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	mov	x0, x25
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	mov	x0, x22
	bl	_CStringGetTextDatum
	ldrsw	x8, [x28]
	lsl	x8, x8, #2
	sub	x8, x8, #4
	str	w0, [x26, x8]
	mov	w9, #1
	str	w9, [x25, x8]
	mov	x0, x19
	bl	_RelationGetDescr
	mov	x1, x0
	mov	x0, x21
	mov	x2, x26
	mov	x3, x24
	mov	x4, x25
Lloh36:
	adrp	x25, _CollationRelationId@GOTPAGE
Lloh37:
	ldr	x25, [x25, _CollationRelationId@GOTPAGEOFF]
	bl	_heap_modify_tuple
	mov	x21, x0
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
	b	LBB0_15
LBB0_13:
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	b	LBB0_15
LBB0_14:
Lloh43:
	adrp	x8, _NOTICE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh45:
	ldr	w22, [x8]
Lloh46:
	adrp	x0, l_.str.3@PAGE
Lloh47:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_CatalogTupleUpdate
	ldr	w0, [x25]
	mov	x1, x20
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	ldr	w1, [x25]
	mov	x2, x20
	bl	_ObjectAddressSet
	mov	x0, x21
	bl	_heap_freetuple
Lloh48:
	adrp	x8, _NoLock@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_table_close
	ldur	x8, [x29, #-88]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_CollationRelationId,4,2        ; @CollationRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_COLLATION,4,2           ; @OBJECT_COLLATION
	.comm	_COLLOID,4,2                    ; @COLLOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for collation %u"

	.comm	_Anum_pg_collation_collversion,4,2 ; @Anum_pg_collation_collversion
l_.str.1:                               ; @.str.1
	.asciz	"invalid collation version change"

	.comm	_Natts_pg_collation,4,2         ; @Natts_pg_collation
	.comm	_NOTICE,4,2                     ; @NOTICE
l_.str.2:                               ; @.str.2
	.asciz	"changing version from %s to %s"

l_.str.3:                               ; @.str.3
	.asciz	"version has not changed"

	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
