	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_role                     ## -- Begin function check_role
	.p2align	4, 0x90
_check_role:                            ## @check_role
	.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	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IsTransactionState
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_AUTHNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r13), %rdi
	callq	_PointerGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movl	(%rax), %r14d
	movl	4(%rax), %r12d
	movl	%ebx, %edi
	callq	_ReleaseSysCache
	movq	_InitializingParallelWorker@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_5:
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%r14d, %r14d
LBB0_6:
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	%r12d, 4(%rax)
	movl	%r14d, (%rax)
	movq	%rax, (%rbx)
	movl	$1, %r15d
	jmp	LBB0_13
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_9:
	movq	(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_10:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_GetSessionUserId
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_is_member_of_role
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_6
## %bb.11:
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GUC_check_errcode
	movq	(%r13), %rsi
	leaq	L_.str.2(%rip), %rdi
LBB0_12:
	callq	_GUC_check_errmsg
LBB0_13:
	movl	%r15d, %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	"none"

	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_AUTHNAME,4,2                   ## @AUTHNAME
L_.str.1:                               ## @.str.1
	.asciz	"role \"%s\" does not exist"

	.comm	_InitializingParallelWorker,4,2 ## @InitializingParallelWorker
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
L_.str.2:                               ## @.str.2
	.asciz	"permission denied to set role \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_role                     ; -- Begin function check_role
	.p2align	2
_check_role:                            ; @check_role
	.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, x1
	mov	x20, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.1:
	bl	_IsTransactionState
	cbz	w0, LBB0_11
; %bb.2:
Lloh2:
	adrp	x8, _AUTHNAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AUTHNAME@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	ldr	x0, [x20]
	bl	_PointerGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_SearchSysCache1
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_9
; %bb.3:
	mov	x0, x22
	bl	_GETSTRUCT
	ldp	w23, w21, [x0]
	mov	x0, x22
	bl	_ReleaseSysCache
Lloh5:
	adrp	x8, _InitializingParallelWorker@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InitializingParallelWorker@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbnz	w8, LBB0_7
; %bb.4:
	bl	_GetSessionUserId
	mov	x1, x21
	bl	_is_member_of_role
	cbnz	w0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_GUC_check_errcode
	ldr	x1, [x20]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
	mov	w23, #0
Lloh13:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh14:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
LBB0_7:
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x8, x0
	stp	w23, w21, [x0]
	mov	w0, #1
	str	x8, [x19]
	b	LBB0_11
LBB0_9:
	ldr	x1, [x20]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_GUC_check_errmsg
	mov	w0, #0
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_AUTHNAME,4,2                   ; @AUTHNAME
l_.str.1:                               ; @.str.1
	.asciz	"role \"%s\" does not exist"

	.comm	_InitializingParallelWorker,4,2 ; @InitializingParallelWorker
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
l_.str.2:                               ; @.str.2
	.asciz	"permission denied to set role \"%s\""

.subsections_via_symbols
