	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_psqlrc
_process_psqlrc:                        ## @process_psqlrc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_find_my_exec
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_get_etc_path
	movq	_MAXPGPATH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SYSPSQLRC@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_process_psqlrc_file
	testq	%r13, %r13
	je	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_strlen
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_pstrdup
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_expand_tilde
	movq	-56(%rbp), %rdi
	jmp	LBB0_6
LBB0_4:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_home_path
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%r14), %esi
	movq	_PSQLRC@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_snprintf
	movq	%r15, %rdi
LBB0_6:
	callq	_process_psqlrc_file
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_pg_log_fatal
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PSQLRC"

L_.str.1:                               ## @.str.1
	.asciz	"could not find own program executable"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

	.comm	_SYSPSQLRC,8,3                  ## @SYSPSQLRC
	.comm	_PSQLRC,8,3                     ## @PSQLRC
	.no_dead_strip	_process_psqlrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_psqlrc
_process_psqlrc:                        ; @process_psqlrc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAXPGPATH@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x19, x9, x12
	mov	sp, x19
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x21, x0
	mov	x0, x24
	mov	x1, x23
	bl	_find_my_exec
	tbnz	x0, #63, LBB0_9
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_get_etc_path
	ldr	w1, [x25]
Lloh15:
	adrp	x8, _SYSPSQLRC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SYSPSQLRC@GOTPAGEOFF]
Lloh17:
	ldr	x4, [x8]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_snprintf
	mov	x0, x20
	bl	_process_psqlrc_file
	cbz	x21, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_pstrdup
	stur	x0, [x29, #-80]
	sub	x0, x29, #80
	bl	_expand_tilde
	ldur	x0, [x29, #-80]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_get_home_path
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w1, [x25]
Lloh20:
	adrp	x8, _PSQLRC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PSQLRC@GOTPAGEOFF]
Lloh22:
	ldr	x4, [x8]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_snprintf
	mov	x0, x20
LBB0_6:
	bl	_process_psqlrc_file
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_log_fatal
Lloh30:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_exit
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PSQLRC"

l_.str.1:                               ; @.str.1
	.asciz	"could not find own program executable"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

	.comm	_SYSPSQLRC,8,3                  ; @SYSPSQLRC
	.comm	_PSQLRC,8,3                     ; @PSQLRC
	.no_dead_strip	_process_psqlrc
.subsections_via_symbols
