	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetSessionAuthorization        ## -- Begin function SetSessionAuthorization
	.p2align	4, 0x90
_SetSessionAuthorization:               ## @SetSessionAuthorization
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_AuthenticatedUserId@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_AssertState
	cmpq	%rbx, (%r15)
	je	LBB0_3
## %bb.1:
	movq	_AuthenticatedUserIsSuperuser@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_SetSessionUserId
	testl	%r14d, %r14d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_PGC_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PGC_S_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetConfigOption                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AuthenticatedUserId,8,3        ## @AuthenticatedUserId
	.comm	_AuthenticatedUserIsSuperuser,4,2 ## @AuthenticatedUserIsSuperuser
	.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 set session authorization"

L_.str.1:                               ## @.str.1
	.asciz	"is_superuser"

L_.str.2:                               ## @.str.2
	.asciz	"on"

L_.str.3:                               ## @.str.3
	.asciz	"off"

	.comm	_PGC_INTERNAL,4,2               ## @PGC_INTERNAL
	.comm	_PGC_S_OVERRIDE,4,2             ## @PGC_S_OVERRIDE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetSessionAuthorization        ; -- Begin function SetSessionAuthorization
	.p2align	2
_SetSessionAuthorization:               ; @SetSessionAuthorization
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _AuthenticatedUserId@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AuthenticatedUserId@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_OidIsValid
	bl	_AssertState
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _AuthenticatedUserIsSuperuser@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AuthenticatedUserIsSuperuser@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	x8, x20
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_SetSessionUserId
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
Lloh17:
	adrp	x8, _PGC_INTERNAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PGC_INTERNAL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _PGC_S_OVERRIDE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PGC_S_OVERRIDE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SetConfigOption
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AuthenticatedUserId,8,3        ; @AuthenticatedUserId
	.comm	_AuthenticatedUserIsSuperuser,4,2 ; @AuthenticatedUserIsSuperuser
	.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 set session authorization"

l_.str.1:                               ; @.str.1
	.asciz	"is_superuser"

l_.str.2:                               ; @.str.2
	.asciz	"on"

l_.str.3:                               ; @.str.3
	.asciz	"off"

	.comm	_PGC_INTERNAL,4,2               ; @PGC_INTERNAL
	.comm	_PGC_S_OVERRIDE,4,2             ; @PGC_S_OVERRIDE
.subsections_via_symbols
