	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_bin_paths                ## -- Begin function setup_bin_paths
	.p2align	4, 0x90
_setup_bin_paths:                       ## @setup_bin_paths
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_PG_BACKEND_VERSIONSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_backend_exec@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_find_other_exec
	testl	%eax, %eax
	js	LBB0_1
## %bb.7:
	movq	_bin_path@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	callq	_strcpy
	movq	(%rbx), %rdi
	callq	_last_dir_separator
	movb	$0, (%rax)
	movq	(%rbx), %rdi
	callq	_canonicalize_path
	movq	_share_path@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:
	callq	_is_absolute_path
	testl	%eax, %eax
	jne	LBB0_10
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
LBB0_8:
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pg_malloc
	movq	%rax, (%rbx)
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_get_share_path
LBB0_10:
	movq	(%rbx), %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_canonicalize_path              ## TAILCALL
LBB0_1:
	movl	%eax, %r15d
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_find_my_exec
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_progname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_strlcpy
LBB0_3:
	movq	_progname@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$-1, %r15d
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%edx, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
LBB0_13:
	callq	___stack_chk_fail
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"postgres"

	.comm	_PG_BACKEND_VERSIONSTR,4,2      ## @PG_BACKEND_VERSIONSTR
	.comm	_backend_exec,4,2               ## @backend_exec
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_progname,4,2                   ## @progname
L_.str.1:                               ## @.str.1
	.asciz	"The program \"postgres\" is needed by %s but was not found in the\nsame directory as \"%s\".\nCheck your installation."

L_.str.2:                               ## @.str.2
	.asciz	"The program \"postgres\" was found by \"%s\"\nbut was not the same version as %s.\nCheck your installation."

	.comm	_bin_path,8,3                   ## @bin_path
	.comm	_share_path,8,3                 ## @share_path
L_.str.3:                               ## @.str.3
	.asciz	"input file location must be an absolute path"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_bin_paths                ; -- Begin function setup_bin_paths
	.p2align	2
_setup_bin_paths:                       ; @setup_bin_paths
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PG_BACKEND_VERSIONSTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PG_BACKEND_VERSIONSTR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x20, _backend_exec@GOTPAGE
Lloh7:
	ldr	x20, [x20, _backend_exec@GOTPAGEOFF]
	ldr	w3, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_find_other_exec
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh10:
	adrp	x19, _bin_path@GOTPAGE
Lloh11:
	ldr	x19, [x19, _bin_path@GOTPAGEOFF]
	ldr	x0, [x19]
	ldr	w1, [x20]
	bl	_strcpy
	ldr	x0, [x19]
	bl	_last_dir_separator
	strb	wzr, [x0]
	ldr	x0, [x19]
	bl	_canonicalize_path
Lloh12:
	adrp	x19, _share_path@GOTPAGE
Lloh13:
	ldr	x19, [x19, _share_path@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_is_absolute_path
	cbnz	w0, LBB0_5
; %bb.3:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit
LBB0_4:
Lloh16:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_pg_malloc
	mov	x1, x0
	str	x0, [x19]
	ldr	w0, [x20]
	bl	_get_share_path
LBB0_5:
	ldr	x0, [x19]
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.6:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_canonicalize_path
LBB0_7:
	stur	w0, [x29, #-44]                 ; 4-byte Folded Spill
Lloh22:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	mov	x9, x20
Lloh25:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh26:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	mov	x0, x19
	sub	x19, x8, x9
	mov	sp, x19
	mov	x1, x19
	bl	_find_my_exec
Lloh27:
	adrp	x21, _progname@GOTPAGE
Lloh28:
	ldr	x21, [x21, _progname@GOTPAGEOFF]
	tbz	x0, #63, LBB0_9
; %bb.8:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_strlcpy
LBB0_9:
	ldr	w8, [x21]
	ldur	w9, [x29, #-44]                 ; 4-byte Folded Reload
	cmn	w9, #1
	b.ne	LBB0_12
; %bb.10:
	stp	x8, x19, [sp, #-16]!
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	bl	___stack_chk_fail
LBB0_12:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x19, x8, [sp, #-16]!
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_pg_log_error
	add	sp, sp, #16
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"postgres"

	.comm	_PG_BACKEND_VERSIONSTR,4,2      ; @PG_BACKEND_VERSIONSTR
	.comm	_backend_exec,4,2               ; @backend_exec
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_progname,4,2                   ; @progname
l_.str.1:                               ; @.str.1
	.asciz	"The program \"postgres\" is needed by %s but was not found in the\nsame directory as \"%s\".\nCheck your installation."

l_.str.2:                               ; @.str.2
	.asciz	"The program \"postgres\" was found by \"%s\"\nbut was not the same version as %s.\nCheck your installation."

	.comm	_bin_path,8,3                   ; @bin_path
	.comm	_share_path,8,3                 ; @share_path
l_.str.3:                               ; @.str.3
	.asciz	"input file location must be an absolute path"

.subsections_via_symbols
