	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitializeSessionUserIdStandalone ## -- Begin function InitializeSessionUserIdStandalone
	.p2align	4, 0x90
_InitializeSessionUserIdStandalone:     ## @InitializeSessionUserIdStandalone
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_IsAutoVacuumWorkerProcess
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_IsBackgroundWorker@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	setne	%bl
LBB0_3:
	movl	%ebx, %edi
	callq	_AssertState
	movq	_AuthenticatedUserId@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_OidIsValid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_AssertState
	movq	_BOOTSTRAP_SUPERUSERID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%rbx)
	movq	_AuthenticatedUserIsSuperuser@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_SetSessionUserId               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IsUnderPostmaster,4,2          ## @IsUnderPostmaster
	.comm	_IsBackgroundWorker,8,3         ## @IsBackgroundWorker
	.comm	_AuthenticatedUserId,4,2        ## @AuthenticatedUserId
	.comm	_BOOTSTRAP_SUPERUSERID,4,2      ## @BOOTSTRAP_SUPERUSERID
	.comm	_AuthenticatedUserIsSuperuser,4,2 ## @AuthenticatedUserIsSuperuser
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitializeSessionUserIdStandalone ; -- Begin function InitializeSessionUserIdStandalone
	.p2align	2
_InitializeSessionUserIdStandalone:     ; @InitializeSessionUserIdStandalone
	.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
Lloh0:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w19, #1
	cbz	w8, LBB0_2
; %bb.1:
	bl	_IsAutoVacuumWorkerProcess
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _IsBackgroundWorker@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IsBackgroundWorker@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
LBB0_4:
	bl	_AssertState
Lloh6:
	adrp	x20, _AuthenticatedUserId@GOTPAGE
Lloh7:
	ldr	x20, [x20, _AuthenticatedUserId@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_OidIsValid
	cmp	w0, #0
	cset	w0, eq
	bl	_AssertState
Lloh8:
	adrp	x8, _BOOTSTRAP_SUPERUSERID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BOOTSTRAP_SUPERUSERID@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	w0, [x20]
Lloh11:
	adrp	x8, _AuthenticatedUserIsSuperuser@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AuthenticatedUserIsSuperuser@GOTPAGEOFF]
Lloh13:
	str	w19, [x8]
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SetSessionUserId
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IsUnderPostmaster,4,2          ; @IsUnderPostmaster
	.comm	_IsBackgroundWorker,8,3         ; @IsBackgroundWorker
	.comm	_AuthenticatedUserId,4,2        ; @AuthenticatedUserId
	.comm	_BOOTSTRAP_SUPERUSERID,4,2      ; @BOOTSTRAP_SUPERUSERID
	.comm	_AuthenticatedUserIsSuperuser,4,2 ; @AuthenticatedUserIsSuperuser
.subsections_via_symbols
