	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetCurrentRoleId               ## -- Begin function SetCurrentRoleId
	.p2align	4, 0x90
_SetCurrentRoleId:                      ## @SetCurrentRoleId
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_OidIsValid
	movl	$1, %ecx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_SessionUserId@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_OidIsValid
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %ebx
	movq	_SessionUserIsSuperuser@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%ecx, %ecx
LBB0_3:
	movq	_SetRoleIsActive@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	%ebx, %edi
	callq	_SetOuterUserId
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%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(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SetConfigOption                ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SessionUserId,4,2              ## @SessionUserId
	.comm	_SessionUserIsSuperuser,4,2     ## @SessionUserIsSuperuser
	.comm	_SetRoleIsActive,4,2            ## @SetRoleIsActive
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"is_superuser"

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

L_.str.2:                               ## @.str.2
	.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	_SetCurrentRoleId               ; -- Begin function SetCurrentRoleId
	.p2align	2
_SetCurrentRoleId:                      ; @SetCurrentRoleId
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_OidIsValid
	cbz	w0, LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x19, _SessionUserId@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SessionUserId@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_OidIsValid
	cbz	w0, LBB0_5
; %bb.3:
	mov	w8, #0
	ldr	w20, [x19]
Lloh2:
	adrp	x9, _SessionUserIsSuperuser@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SessionUserIsSuperuser@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x9]
LBB0_4:
Lloh5:
	adrp	x9, _SetRoleIsActive@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SetRoleIsActive@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	mov	x0, x20
	bl	_SetOuterUserId
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh10:
	adrp	x9, l_.str.2@PAGE
Lloh11:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
Lloh12:
	adrp	x8, _PGC_INTERNAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PGC_INTERNAL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _PGC_S_OVERRIDE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PGC_S_OVERRIDE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SetConfigOption
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SessionUserId,4,2              ; @SessionUserId
	.comm	_SessionUserIsSuperuser,4,2     ; @SessionUserIsSuperuser
	.comm	_SetRoleIsActive,4,2            ; @SetRoleIsActive
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"is_superuser"

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

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

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