	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adjust_data_dir
_adjust_data_dir:                       ## @adjust_data_dir
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	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, %r15
	movq	_pg_config@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %rdi
	callq	_fclose
	movq	(%r12), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_fclose
	jmp	LBB0_10
LBB0_4:
	movq	_exec_path@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	callq	_pg_strdup
	jmp	LBB0_7
LBB0_5:
	movq	_argv0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PG_BACKEND_VERSIONSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_find_other_exec_or_die
LBB0_7:
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	_pgdata_opt@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %r8
	movq	_post_opts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	testq	%r9, %r9
	cmoveq	%rax, %r9
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_popen
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %r13
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r13, %rdi
	callq	_pclose
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_pg_strip_crlf
	movq	_pg_data@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_pg_strdup
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_canonicalize_path
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
LBB0_12:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_write_stderr
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_pg_config,8,3                  ## @pg_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/postgresql.conf"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s/PG_VERSION"

	.comm	_exec_path,8,3                  ## @exec_path
	.comm	_argv0,4,2                      ## @argv0
L_.str.3:                               ## @.str.3
	.asciz	"postgres"

	.comm	_PG_BACKEND_VERSIONSTR,4,2      ## @PG_BACKEND_VERSIONSTR
L_.str.4:                               ## @.str.4
	.asciz	"\"%s\" -C data_directory %s%s"

	.comm	_pgdata_opt,8,3                 ## @pgdata_opt
L_.str.5:                               ## @.str.5
	.space	1

	.comm	_post_opts,8,3                  ## @post_opts
L_.str.6:                               ## @.str.6
	.asciz	"%s: could not determine the data directory using command \"%s\"\n"

	.comm	_progname,4,2                   ## @progname
	.comm	_pg_data,8,3                    ## @pg_data
	.no_dead_strip	_adjust_data_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adjust_data_dir
_adjust_data_dir:                       ; @adjust_data_dir
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAXPGPATH@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x9, x21
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x12, x9, #0x1fffffff0
	sub	x20, x8, x12
	mov	sp, x20
	mov	x9, x21
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x19, x8, x12
	mov	sp, x19
Lloh9:
	adrp	x22, _pg_config@GOTPAGE
Lloh10:
	ldr	x22, [x22, _pg_config@GOTPAGEOFF]
	ldr	x3, [x22]
	cbz	x3, LBB0_10
; %bb.1:
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_snprintf
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_10
; %bb.2:
	bl	_fclose
	ldr	x3, [x22]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_snprintf
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.3:
	bl	_fclose
	b	LBB0_10
LBB0_4:
Lloh19:
	adrp	x8, _exec_path@GOTPAGE
Lloh20:
	ldr	x8, [x8, _exec_path@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_pg_strdup
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x8, _argv0@GOTPAGE
Lloh23:
	ldr	x8, [x8, _argv0@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _PG_BACKEND_VERSIONSTR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PG_BACKEND_VERSIONSTR@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_find_other_exec_or_die
LBB0_7:
	mov	x22, x0
	ldr	w1, [x23]
Lloh30:
	adrp	x8, _pgdata_opt@GOTPAGE
Lloh31:
	ldr	x8, [x8, _pgdata_opt@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	adrp	x9, l_.str.5@PAGE
Lloh34:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	x8, #0
	csel	x8, x9, x8, eq
Lloh35:
	adrp	x10, _post_opts@GOTPAGE
Lloh36:
	ldr	x10, [x10, _post_opts@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	cmp	x10, #0
	csel	x9, x9, x10, eq
	stp	x8, x9, [sp, #-16]!
Lloh38:
	adrp	x2, l_.str.4@PAGE
Lloh39:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_snprintf
	add	sp, sp, #16
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_popen
	cbz	x0, LBB0_13
; %bb.8:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_fgets
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x23
	bl	_pclose
	mov	x0, x22
	bl	_free
	mov	x0, x19
	bl	_pg_strip_crlf
Lloh42:
	adrp	x20, _pg_data@GOTPAGE
Lloh43:
	ldr	x20, [x20, _pg_data@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_free
	mov	x0, x19
	bl	_pg_strdup
	str	x0, [x20]
	bl	_canonicalize_path
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
LBB0_13:
Lloh47:
	adrp	x0, l_.str.6@PAGE
Lloh48:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
Lloh49:
	adrp	x8, _progname@GOTPAGE
Lloh50:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_write_stderr
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_pg_config,8,3                  ; @pg_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/postgresql.conf"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s/PG_VERSION"

	.comm	_exec_path,8,3                  ; @exec_path
	.comm	_argv0,4,2                      ; @argv0
l_.str.3:                               ; @.str.3
	.asciz	"postgres"

	.comm	_PG_BACKEND_VERSIONSTR,4,2      ; @PG_BACKEND_VERSIONSTR
l_.str.4:                               ; @.str.4
	.asciz	"\"%s\" -C data_directory %s%s"

	.comm	_pgdata_opt,8,3                 ; @pgdata_opt
l_.str.5:                               ; @.str.5
	.space	1

	.comm	_post_opts,8,3                  ; @post_opts
l_.str.6:                               ; @.str.6
	.asciz	"%s: could not determine the data directory using command \"%s\"\n"

	.comm	_progname,4,2                   ; @progname
	.comm	_pg_data,8,3                    ; @pg_data
	.no_dead_strip	_adjust_data_dir
.subsections_via_symbols
