	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterRoleSet                   ## -- Begin function AlterRoleSet
	.p2align	4, 0x90
_AlterRoleSet:                          ## @AlterRoleSet
	.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
	movq	%rdi, %r13
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	16(%rdi), %rdi
	movq	%r14, %r15
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_check_rolespec_name
	movq	16(%r13), %rdi
	callq	_get_rolespec_tuple
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_GETSTRUCT
	movq	%rax, %rbx
	movq	(%rax), %r15
	movq	_AuthIdRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_shdepLockAndCheckObject
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	callq	_have_createrole_privilege
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	callq	_GetUserId
	cmpq	%rax, %r15
	je	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rax
LBB0_7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movl	%r12d, %edi
	callq	_ReleaseSysCache
LBB0_9:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.10:
	xorl	%esi, %esi
	callq	_get_database_oid
	movq	%rax, %r14
	movq	_DatabaseRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_shdepLockAndCheckObject
	cmpq	$0, 16(%r13)
	jne	LBB0_17
## %bb.11:
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_pg_database_ownercheck
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	cmpq	$0, 16(%r13)
	jne	LBB0_17
LBB0_14:
	cmpq	$0, 8(%r13)
	jne	LBB0_17
## %bb.15:
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_17
LBB0_12:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OBJECT_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rdx
	callq	_aclcheck_error
	cmpq	$0, 16(%r13)
	je	LBB0_14
LBB0_17:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_AlterSetting
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot alter reserved roles."

	.comm	_AuthIdRelationId,4,2           ## @AuthIdRelationId
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
L_.str.1:                               ## @.str.1
	.asciz	"must be superuser to alter superusers"

L_.str.2:                               ## @.str.2
	.asciz	"permission denied"

	.comm	_DatabaseRelationId,4,2         ## @DatabaseRelationId
	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_DATABASE,4,2            ## @OBJECT_DATABASE
L_.str.3:                               ## @.str.3
	.asciz	"must be superuser to alter settings globally"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterRoleSet                   ; -- Begin function AlterRoleSet
	.p2align	2
_AlterRoleSet:                          ; @AlterRoleSet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x0, [x0, #16]
	mov	x21, x20
	cbz	x0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_check_rolespec_name
	ldr	x0, [x19, #16]
	bl	_get_rolespec_tuple
	mov	x22, x0
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	x21, [x0]
Lloh5:
	adrp	x8, _AuthIdRelationId@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AuthIdRelationId@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_shdepLockAndCheckObject
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_superuser
	cbnz	w0, LBB0_8
; %bb.3:
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	bl	_have_createrole_privilege
	cbnz	w0, LBB0_8
; %bb.5:
	bl	_GetUserId
	cmp	x21, x0
	b.eq	LBB0_8
; %bb.6:
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_7:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
Lloh15:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_8:
	mov	x0, x22
	bl	_ReleaseSysCache
LBB0_9:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.10:
	mov	w1, #0
	bl	_get_database_oid
	mov	x20, x0
Lloh18:
	adrp	x8, _DatabaseRelationId@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DatabaseRelationId@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_shdepLockAndCheckObject
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_17
; %bb.11:
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x20
	bl	_pg_database_ownercheck
	cbz	w0, LBB0_16
LBB0_12:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_17
LBB0_13:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_17
; %bb.14:
	bl	_superuser
	cbnz	w0, LBB0_17
; %bb.15:
Lloh21:
	adrp	x8, _ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
Lloh24:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_errcode
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _OBJECT_DATABASE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OBJECT_DATABASE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	bl	_aclcheck_error
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
LBB0_17:
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_AlterSetting
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot alter reserved roles."

	.comm	_AuthIdRelationId,4,2           ; @AuthIdRelationId
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
l_.str.1:                               ; @.str.1
	.asciz	"must be superuser to alter superusers"

l_.str.2:                               ; @.str.2
	.asciz	"permission denied"

	.comm	_DatabaseRelationId,4,2         ; @DatabaseRelationId
	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_DATABASE,4,2            ; @OBJECT_DATABASE
l_.str.3:                               ; @.str.3
	.asciz	"must be superuser to alter settings globally"

.subsections_via_symbols
