	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameRole                     ## -- Begin function RenameRole
	.p2align	4, 0x90
_RenameRole:                            ## @RenameRole
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_authid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	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	_AuthIdRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_RelationGetDescr
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_AUTHNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%r13, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r12
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_GetSessionUserId
	cmpq	%rax, %r15
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	xorl	%eax, %eax
	callq	_GetOuterUserId
	cmpq	%rax, %r15
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movl	16(%r12), %edi
	callq	_NameStr
	movq	%rax, %rdi
	callq	_IsReservedName
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_RESERVED_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	16(%r12), %edi
	callq	_NameStr
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.4(%rip), %rdi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	%r14, %rdi
	callq	_IsReservedName
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_RESERVED_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.4(%rip), %rdi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	movq	_AUTHNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheExists1
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DUPLICATE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_GETSTRUCT
	cmpq	$0, 8(%rax)
	je	LBB0_15
## %bb.13:
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_18
## %bb.14:
	leaq	L_.str.6(%rip), %r12
	jmp	LBB0_17
LBB0_15:
	xorl	%eax, %eax
	callq	_have_createrole_privilege
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_18
## %bb.16:
	leaq	L_.str.7(%rip), %r12
LBB0_17:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_18:
	movq	_Natts_pg_authid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_20
## %bb.19:
	shlq	$2, %rsi
	movq	%r15, %rdi
	callq	___bzero
LBB0_20:
	movq	_Anum_pg_authid_rolname@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	movl	$1, -4(%r15,%rax,4)
	movq	_namein@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DirectFunctionCall1
	movslq	(%r12), %rcx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, -4(%r12,%rcx,4)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	$0, -4(%rbx,%rcx,4)
	movq	_Anum_pg_authid_rolpassword@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-72(%rbp), %rcx
	movq	%r13, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_heap_getattr
	cmpl	$0, -72(%rbp)
	jne	LBB0_23
## %bb.21:
	movl	%eax, %edi
	callq	_TextDatumGetCString
	movl	%eax, %edi
	callq	_get_password_type
	movq	_PASSWORD_TYPE_MD5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.22:
	movslq	(%r14), %rax
	movl	$1, -4(%r15,%rax,4)
	movl	$1, -4(%rbx,%rax,4)
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_23:
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	callq	_heap_modify_tuple
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_CatalogTupleUpdate
	movq	_AuthIdRelationId@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_ObjectAddressSet
	movq	%r13, %rdi
	callq	_ReleaseSysCache
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_table_close
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_authid,4,2            ## @Natts_pg_authid
	.comm	_AuthIdRelationId,4,2           ## @AuthIdRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_AUTHNAME,4,2                   ## @AUTHNAME
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"role \"%s\" does not exist"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"session user cannot be renamed"

L_.str.2:                               ## @.str.2
	.asciz	"current user cannot be renamed"

	.comm	_ERRCODE_RESERVED_NAME,4,2      ## @ERRCODE_RESERVED_NAME
L_.str.3:                               ## @.str.3
	.asciz	"role name \"%s\" is reserved"

L_.str.4:                               ## @.str.4
	.asciz	"Role names starting with \"pg_\" are reserved."

	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ## @ERRCODE_DUPLICATE_OBJECT
L_.str.5:                               ## @.str.5
	.asciz	"role \"%s\" already exists"

	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
L_.str.6:                               ## @.str.6
	.asciz	"must be superuser to rename superusers"

L_.str.7:                               ## @.str.7
	.asciz	"permission denied to rename role"

	.comm	_Anum_pg_authid_rolname,4,2     ## @Anum_pg_authid_rolname
	.comm	_namein,4,2                     ## @namein
	.comm	_Anum_pg_authid_rolpassword,4,2 ## @Anum_pg_authid_rolpassword
	.comm	_PASSWORD_TYPE_MD5,8,3          ## @PASSWORD_TYPE_MD5
	.comm	_NOTICE,4,2                     ## @NOTICE
L_.str.8:                               ## @.str.8
	.asciz	"MD5 password cleared because of role rename"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RenameRole                     ; -- Begin function RenameRole
	.p2align	2
_RenameRole:                            ; @RenameRole
	.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, #32
	mov	x25, x1
	mov	x26, x0
	mov	x8, sp
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
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	x12, _Natts_pg_authid@GOTPAGE
Lloh4:
	ldr	x12, [x12, _Natts_pg_authid@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh11:
	adrp	x8, _AuthIdRelationId@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AuthIdRelationId@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_table_open
	stur	w0, [x29, #-112]                ; 4-byte Folded Spill
	bl	_RelationGetDescr
	stur	w0, [x29, #-108]                ; 4-byte Folded Spill
Lloh17:
	adrp	x8, _AUTHNAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AUTHNAME@GOTPAGEOFF]
Lloh19:
	ldr	w23, [x8]
	mov	x0, x26
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCache1
	mov	x23, x0
	bl	_HeapTupleIsValid
Lloh20:
	adrp	x28, _ERROR@GOTPAGE
Lloh21:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w27, [x28]
Lloh22:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_errcode
	str	x26, [sp, #-16]!
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_2:
	mov	x0, x23
	bl	_GETSTRUCT
	mov	x27, x0
	ldr	x26, [x0]
	bl	_GetSessionUserId
Lloh27:
	adrp	x24, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh28:
	ldr	x24, [x24, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
	cmp	x26, x0
	mov	x19, x28
	b.ne	LBB0_4
; %bb.3:
	ldr	w28, [x19]
	ldr	w0, [x24]
	bl	_errcode
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x28
	mov	x28, x19
	bl	_ereport
LBB0_4:
	bl	_GetOuterUserId
	cmp	x26, x0
	b.ne	LBB0_6
; %bb.5:
	ldr	w28, [x19]
	ldr	w0, [x24]
	bl	_errcode
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x28
	mov	x28, x19
	bl	_ereport
LBB0_6:
	ldr	w0, [x27, #16]
	bl	_NameStr
	bl	_IsReservedName
Lloh33:
	adrp	x24, _ERRCODE_RESERVED_NAME@GOTPAGE
Lloh34:
	ldr	x24, [x24, _ERRCODE_RESERVED_NAME@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w28, [x19]
	ldr	w0, [x24]
	bl	_errcode
	ldr	w0, [x27, #16]
	bl	_NameStr
	str	x0, [sp, #-16]!
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
Lloh37:
	adrp	x0, l_.str.4@PAGE
Lloh38:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x28
	mov	x28, x19
	bl	_ereport
LBB0_8:
	mov	x0, x25
	bl	_IsReservedName
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w27, [x28]
	ldr	w0, [x24]
	bl	_errcode
	str	x25, [sp, #-16]!
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_10:
Lloh43:
	adrp	x8, _AUTHNAME@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AUTHNAME@GOTPAGEOFF]
Lloh45:
	ldr	w27, [x8]
	mov	x0, x25
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x27
	bl	_SearchSysCacheExists1
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w27, [x28]
Lloh46:
	adrp	x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_errcode
	str	x25, [sp, #-16]!
Lloh49:
	adrp	x0, l_.str.5@PAGE
Lloh50:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_12:
	mov	x0, x23
	bl	_GETSTRUCT
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_15
; %bb.13:
	bl	_superuser
	cbnz	w0, LBB0_18
; %bb.14:
Lloh51:
	adrp	x27, l_.str.6@PAGE
Lloh52:
	add	x27, x27, l_.str.6@PAGEOFF
	b	LBB0_17
LBB0_15:
	bl	_have_createrole_privilege
	cbnz	w0, LBB0_18
; %bb.16:
Lloh53:
	adrp	x27, l_.str.7@PAGE
Lloh54:
	add	x27, x27, l_.str.7@PAGEOFF
LBB0_17:
	ldr	w28, [x28]
Lloh55:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x27
	bl	_errmsg
	mov	x1, x0
	mov	x0, x28
	bl	_ereport
LBB0_18:
Lloh58:
	adrp	x8, _Natts_pg_authid@GOTPAGE
Lloh59:
	ldr	x8, [x8, _Natts_pg_authid@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.19:
	lsl	x1, x8, #2
	mov	x0, x22
	bl	_bzero
LBB0_20:
Lloh61:
	adrp	x24, _Anum_pg_authid_rolname@GOTPAGE
Lloh62:
	ldr	x24, [x24, _Anum_pg_authid_rolname@GOTPAGEOFF]
	ldrsw	x8, [x24]
	add	x8, x22, x8, lsl #2
	mov	w9, #1
	stur	w9, [x8, #-4]
Lloh63:
	adrp	x8, _namein@GOTPAGE
Lloh64:
	ldr	x8, [x8, _namein@GOTPAGEOFF]
Lloh65:
	ldr	w27, [x8]
	mov	x0, x25
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x27
	bl	_DirectFunctionCall1
	ldrsw	x8, [x24]
	lsl	x8, x8, #2
	sub	x8, x8, #4
	str	w0, [x20, x8]
	str	wzr, [x21, x8]
Lloh66:
	adrp	x24, _Anum_pg_authid_rolpassword@GOTPAGE
Lloh67:
	ldr	x24, [x24, _Anum_pg_authid_rolpassword@GOTPAGEOFF]
	ldr	w1, [x24]
	sub	x3, x29, #92
	mov	x0, x23
	ldur	w27, [x29, #-108]               ; 4-byte Folded Reload
	mov	x2, x27
	bl	_heap_getattr
	ldur	w8, [x29, #-92]
	cbnz	w8, LBB0_23
; %bb.21:
	bl	_TextDatumGetCString
	bl	_get_password_type
Lloh68:
	adrp	x8, _PASSWORD_TYPE_MD5@GOTPAGE
Lloh69:
	ldr	x8, [x8, _PASSWORD_TYPE_MD5@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.22:
	ldrsw	x8, [x24]
	lsl	x8, x8, #2
	sub	x8, x8, #4
	mov	w9, #1
	str	w9, [x22, x8]
	str	w9, [x21, x8]
Lloh71:
	adrp	x8, _NOTICE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh73:
	ldr	w25, [x8]
Lloh74:
	adrp	x0, l_.str.8@PAGE
Lloh75:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_23:
	mov	x0, x23
	mov	x1, x27
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_heap_modify_tuple
	mov	x2, x0
	ldur	w19, [x29, #-112]               ; 4-byte Folded Reload
	mov	x0, x19
	mov	x1, x23
	bl	_CatalogTupleUpdate
Lloh76:
	adrp	x20, _AuthIdRelationId@GOTPAGE
Lloh77:
	ldr	x20, [x20, _AuthIdRelationId@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x26
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	ldr	w1, [x20]
	mov	x2, x26
	bl	_ObjectAddressSet
	mov	x0, x23
	bl	_ReleaseSysCache
Lloh78:
	adrp	x8, _NoLock@GOTPAGE
Lloh79:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_table_close
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh81:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh82:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	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_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_authid,4,2            ; @Natts_pg_authid
	.comm	_AuthIdRelationId,4,2           ; @AuthIdRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_AUTHNAME,4,2                   ; @AUTHNAME
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"role \"%s\" does not exist"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"session user cannot be renamed"

l_.str.2:                               ; @.str.2
	.asciz	"current user cannot be renamed"

	.comm	_ERRCODE_RESERVED_NAME,4,2      ; @ERRCODE_RESERVED_NAME
l_.str.3:                               ; @.str.3
	.asciz	"role name \"%s\" is reserved"

l_.str.4:                               ; @.str.4
	.asciz	"Role names starting with \"pg_\" are reserved."

	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ; @ERRCODE_DUPLICATE_OBJECT
l_.str.5:                               ; @.str.5
	.asciz	"role \"%s\" already exists"

	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
l_.str.6:                               ; @.str.6
	.asciz	"must be superuser to rename superusers"

l_.str.7:                               ; @.str.7
	.asciz	"permission denied to rename role"

	.comm	_Anum_pg_authid_rolname,4,2     ; @Anum_pg_authid_rolname
	.comm	_namein,4,2                     ; @namein
	.comm	_Anum_pg_authid_rolpassword,4,2 ; @Anum_pg_authid_rolpassword
	.comm	_PASSWORD_TYPE_MD5,8,3          ; @PASSWORD_TYPE_MD5
	.comm	_NOTICE,4,2                     ; @NOTICE
l_.str.8:                               ; @.str.8
	.asciz	"MD5 password cleared because of role rename"

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