	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitStandaloneProcess          ## -- Begin function InitStandaloneProcess
	.p2align	4, 0x90
_InitStandaloneProcess:                 ## @InitStandaloneProcess
	.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
	movq	%rdi, %r14
	movq	_IsPostmasterEnvironment@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_InitProcessGlobals
	xorl	%eax, %eax
	callq	_InitializeLatchSupport
	movq	_LocalLatchData@GOTPCREL(%rip), %rdi
	movq	_MyLatch@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	callq	_InitLatch
	movq	_my_exec_path@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	cmpb	$0, (%rsi)
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_find_my_exec
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_elog
LBB0_3:
	movq	_pkglib_path@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_5
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_get_pkglib_path                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IsPostmasterEnvironment,4,2    ## @IsPostmasterEnvironment
	.comm	_LocalLatchData,4,2             ## @LocalLatchData
	.comm	_MyLatch,8,3                    ## @MyLatch
	.comm	_my_exec_path,8,3               ## @my_exec_path
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: could not locate my own executable path"

	.comm	_pkglib_path,8,3                ## @pkglib_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitStandaloneProcess          ; -- Begin function InitStandaloneProcess
	.p2align	2
_InitStandaloneProcess:                 ; @InitStandaloneProcess
	.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, x0
Lloh0:
	adrp	x8, _IsPostmasterEnvironment@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IsPostmasterEnvironment@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	bl	_InitProcessGlobals
	bl	_InitializeLatchSupport
Lloh3:
	adrp	x8, _MyLatch@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MyLatch@GOTPAGEOFF]
Lloh5:
	adrp	x0, _LocalLatchData@GOTPAGE
Lloh6:
	ldr	x0, [x0, _LocalLatchData@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	bl	_InitLatch
Lloh8:
	adrp	x20, _my_exec_path@GOTPAGE
Lloh9:
	ldr	x20, [x20, _my_exec_path@GOTPAGEOFF]
	ldr	x1, [x20]
	ldrb	w8, [x1]
	cbnz	w8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_find_my_exec
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _FATAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_3:
Lloh15:
	adrp	x8, _pkglib_path@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pkglib_path@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	ldrb	w8, [x1]
	cbz	w8, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_get_pkglib_path
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IsPostmasterEnvironment,4,2    ; @IsPostmasterEnvironment
	.comm	_LocalLatchData,4,2             ; @LocalLatchData
	.comm	_MyLatch,8,3                    ; @MyLatch
	.comm	_my_exec_path,8,3               ; @my_exec_path
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: could not locate my own executable path"

	.comm	_pkglib_path,8,3                ; @pkglib_path
.subsections_via_symbols
