	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitializeGUCOptionsFromEnvironment
_InitializeGUCOptionsFromEnvironment:   ## @InitializeGUCOptionsFromEnvironment
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PGC_POSTMASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PGC_S_ENV_VAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_SetConfigOption
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PGC_POSTMASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PGC_S_ENV_VAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_SetConfigOption
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_PGC_POSTMASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PGC_S_ENV_VAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	callq	_SetConfigOption
LBB0_6:
	xorl	%eax, %eax
	callq	_get_stack_depth_rlimit
	testq	%rax, %rax
	jle	LBB0_9
## %bb.7:
	movq	_STACK_DEPTH_SLOP@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	cmpq	$103424, %rax                   ## imm = 0x19400
	jl	LBB0_9
## %bb.8:
	shrq	$10, %rax
	movq	%rax, %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_Min
	leaq	L_.str.6(%rip), %rsi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_sprintf
	movq	_PGC_POSTMASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PGC_S_ENV_VAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rdi
	movq	%rbx, %rsi
	callq	_SetConfigOption
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PGPORT"

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

	.comm	_PGC_POSTMASTER,4,2             ## @PGC_POSTMASTER
	.comm	_PGC_S_ENV_VAR,4,2              ## @PGC_S_ENV_VAR
L_.str.2:                               ## @.str.2
	.asciz	"PGDATESTYLE"

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

L_.str.4:                               ## @.str.4
	.asciz	"PGCLIENTENCODING"

L_.str.5:                               ## @.str.5
	.asciz	"client_encoding"

	.comm	_STACK_DEPTH_SLOP,8,3           ## @STACK_DEPTH_SLOP
L_.str.6:                               ## @.str.6
	.asciz	"%ld"

L_.str.7:                               ## @.str.7
	.asciz	"max_stack_depth"

	.no_dead_strip	_InitializeGUCOptionsFromEnvironment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitializeGUCOptionsFromEnvironment
_InitializeGUCOptionsFromEnvironment:   ; @InitializeGUCOptionsFromEnvironment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh5:
	adrp	x19, _PGC_POSTMASTER@GOTPAGE
Lloh6:
	ldr	x19, [x19, _PGC_POSTMASTER@GOTPAGEOFF]
Lloh7:
	adrp	x20, _PGC_S_ENV_VAR@GOTPAGE
Lloh8:
	ldr	x20, [x20, _PGC_S_ENV_VAR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	ldr	w2, [x19]
	ldr	w3, [x20]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SetConfigOption
LBB0_2:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x0
	ldr	w2, [x19]
	ldr	w3, [x20]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_SetConfigOption
LBB0_4:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
	ldr	w2, [x19]
	ldr	w3, [x20]
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_SetConfigOption
LBB0_6:
	bl	_get_stack_depth_rlimit
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.7:
Lloh19:
	adrp	x8, _STACK_DEPTH_SLOP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STACK_DEPTH_SLOP@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	mov	w9, #37888
	movk	w9, #1, lsl #16
	sub	x8, x0, x8
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.8:
	lsr	x0, x8, #10
	mov	w1, #2048
	bl	_Min
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	ldr	w2, [x19]
	ldr	w3, [x20]
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	add	x1, sp, #8
	bl	_SetConfigOption
LBB0_9:
	ldr	x8, [sp, #24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PGPORT"

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

	.comm	_PGC_POSTMASTER,4,2             ; @PGC_POSTMASTER
	.comm	_PGC_S_ENV_VAR,4,2              ; @PGC_S_ENV_VAR
l_.str.2:                               ; @.str.2
	.asciz	"PGDATESTYLE"

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

l_.str.4:                               ; @.str.4
	.asciz	"PGCLIENTENCODING"

l_.str.5:                               ; @.str.5
	.asciz	"client_encoding"

	.comm	_STACK_DEPTH_SLOP,8,3           ; @STACK_DEPTH_SLOP
l_.str.6:                               ; @.str.6
	.asciz	"%ld"

l_.str.7:                               ; @.str.7
	.asciz	"max_stack_depth"

	.no_dead_strip	_InitializeGUCOptionsFromEnvironment
.subsections_via_symbols
