	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_bin_dir
_check_bin_dir:                         ## @check_bin_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	-32(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_report_status
	jmp	LBB0_4
LBB0_2:
	movl	-32(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_PG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_report_status
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_validate_exec
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_validate_exec
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_validate_exec
	movq	%rbx, %rdi
	callq	_get_bin_version
	movl	4(%rbx), %edi
	callq	_GET_MAJOR_VERSION
	cmpl	$1000, %eax                     ## imm = 0x3E8
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmovlq	%rax, %rsi
	callq	_validate_exec
	cmpq	_new_cluster@GOTPCREL(%rip), %rbx
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_validate_exec
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_validate_exec
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_validate_exec
	movl	(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_validate_exec
	movl	(%rbx), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_validate_exec
	movl	(%rbx), %edi
	leaq	L_.str.12(%rip), %rsi
	callq	_validate_exec
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_FATAL,4,2                   ## @PG_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check for \"%s\" failed: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"\"%s\" is not a directory\n"

L_.str.2:                               ## @.str.2
	.asciz	"postgres"

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"pg_resetwal"

	.comm	_new_cluster,8,2                ## @new_cluster
L_.str.7:                               ## @.str.7
	.asciz	"initdb"

L_.str.8:                               ## @.str.8
	.asciz	"pg_dump"

L_.str.9:                               ## @.str.9
	.asciz	"pg_dumpall"

L_.str.10:                              ## @.str.10
	.asciz	"pg_restore"

L_.str.11:                              ## @.str.11
	.asciz	"psql"

L_.str.12:                              ## @.str.12
	.asciz	"vacuumdb"

	.no_dead_strip	_check_bin_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_bin_dir
_check_bin_dir:                         ; @check_bin_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
	add	x1, sp, #8
	bl	_stat
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _PG_FATAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_FATAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w21, [x19]
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
LBB0_2:
	bl	_report_status
	b	LBB0_4
LBB0_3:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_7
LBB0_4:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_validate_exec
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_validate_exec
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_validate_exec
	mov	x0, x19
	bl	_get_bin_version
	ldr	w0, [x19, #4]
	bl	_GET_MAJOR_VERSION
	ldr	w8, [x19]
Lloh14:
	adrp	x9, l_.str.6@PAGE
Lloh15:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh16:
	adrp	x10, l_.str.5@PAGE
Lloh17:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w0, #1000
	csel	x1, x10, x9, lt
	mov	x0, x8
	bl	_validate_exec
Lloh18:
	adrp	x8, _new_cluster@GOTPAGE
Lloh19:
	ldr	x8, [x8, _new_cluster@GOTPAGEOFF]
	cmp	x19, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_validate_exec
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_validate_exec
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_validate_exec
	ldr	w0, [x19]
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_validate_exec
	ldr	w0, [x19]
Lloh28:
	adrp	x1, l_.str.11@PAGE
Lloh29:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_validate_exec
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str.12@PAGE
Lloh31:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_validate_exec
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh32:
	adrp	x8, _PG_FATAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PG_FATAL@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_FATAL,4,2                   ; @PG_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check for \"%s\" failed: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"\"%s\" is not a directory\n"

l_.str.2:                               ; @.str.2
	.asciz	"postgres"

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"pg_resetwal"

	.comm	_new_cluster,8,2                ; @new_cluster
l_.str.7:                               ; @.str.7
	.asciz	"initdb"

l_.str.8:                               ; @.str.8
	.asciz	"pg_dump"

l_.str.9:                               ; @.str.9
	.asciz	"pg_dumpall"

l_.str.10:                              ; @.str.10
	.asciz	"pg_restore"

l_.str.11:                              ; @.str.11
	.asciz	"psql"

l_.str.12:                              ; @.str.12
	.asciz	"vacuumdb"

	.no_dead_strip	_check_bin_dir
.subsections_via_symbols
