	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psql_start_test
_psql_start_test:                       ## @psql_start_test
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leal	(%r15,%r15,2), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_outputdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_file_exists
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_inputdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
LBB0_2:
	movq	_outputdir@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	(%r13), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r12, %rdi
	callq	_file_exists
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_inputdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
LBB0_4:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_add_stringlist_item
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	callq	_add_stringlist_item
	movq	_launcher@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rax, %rbx
	cmpq	%r14, %rax
	jb	LBB0_7
	jmp	LBB0_11
LBB0_5:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	movq	%r15, %rdi
	addq	%rbx, %rdi
	movl	%r14d, %esi
	subl	%ebx, %esi
	movq	_bindir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %rcx
	leaq	L_.str.7(%rip), %r8
	cmoveq	%rax, %r8
	movq	_dblist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r9
	subq	$8, %rsp
	leaq	L_.str.8(%rip), %r10
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	addq	%rbx, %rax
	cmpq	%r14, %rax
	jae	LBB0_11
## %bb.8:
	leaq	L_.str.9(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_psprintf
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_putenv
	movq	%r15, %rdi
	callq	_spawn_process
	movq	%rax, %r14
	movq	_INVALID_PID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_12
## %bb.9:
	leaq	L_.str.11(%rip), %rdi
	callq	_unsetenv
	movq	%rbx, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$2, %edi
	callq	_exit
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.10(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movl	$2, %edi
	callq	_exit
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/sql/%s.sql"

	.comm	_outputdir,8,3                  ## @outputdir
	.comm	_inputdir,8,3                   ## @inputdir
L_.str.1:                               ## @.str.1
	.asciz	"%s/results/%s.out"

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

	.comm	_launcher,8,3                   ## @launcher
L_.str.3:                               ## @.str.3
	.asciz	"%s "

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"command too long\n"

L_.str.5:                               ## @.str.5
	.asciz	"\"%s%spsql\" -X -a -q -d \"%s\" -v %s < \"%s\" > \"%s\" 2>&1"

	.comm	_bindir,8,3                     ## @bindir
L_.str.6:                               ## @.str.6
	.space	1

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

	.comm	_dblist,8,3                     ## @dblist
L_.str.8:                               ## @.str.8
	.asciz	"HIDE_TABLEAM=\"on\""

L_.str.9:                               ## @.str.9
	.asciz	"PGAPPNAME=pg_regress/%s"

	.comm	_INVALID_PID,8,3                ## @INVALID_PID
L_.str.10:                              ## @.str.10
	.asciz	"could not start process for test %s\n"

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

	.no_dead_strip	_psql_start_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psql_start_test
_psql_start_test:                       ; @psql_start_test
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x24, x2
	mov	x25, x1
	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, #-88]
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x9, x26
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x12, x9, #0x1fffffff0
	sub	x21, x8, x12
	mov	sp, x21
	mov	x9, x26
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	mov	x9, x26
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x27, x8, x12
	mov	sp, x27
	add	w22, w26, w26, lsl #1
	mov	x9, x22
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh14:
	adrp	x28, _outputdir@GOTPAGE
Lloh15:
	ldr	x28, [x28, _outputdir@GOTPAGEOFF]
	ldr	x3, [x28]
	str	x0, [sp, #-16]!
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x26
	bl	_snprintf
	add	sp, sp, #16
	mov	x0, x21
	bl	_file_exists
	cbnz	w0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _inputdir@GOTPAGE
Lloh19:
	ldr	x8, [x8, _inputdir@GOTPAGEOFF]
Lloh20:
	ldr	x3, [x8]
	str	x19, [sp, #-16]!
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x26
	bl	_snprintf
	add	sp, sp, #16
LBB0_2:
	ldr	x3, [x28]
	str	x19, [sp, #-16]!
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x1, x26
	bl	_snprintf
	add	sp, sp, #16
	ldr	x3, [x28]
	str	x19, [sp, #-16]!
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x27
	mov	x1, x26
	bl	_snprintf
	add	sp, sp, #16
	mov	x0, x27
	bl	_file_exists
	cbnz	w0, LBB0_4
; %bb.3:
Lloh27:
	adrp	x8, _inputdir@GOTPAGE
Lloh28:
	ldr	x8, [x8, _inputdir@GOTPAGEOFF]
Lloh29:
	ldr	x3, [x8]
	str	x19, [sp, #-16]!
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x27
	mov	x1, x26
	bl	_snprintf
	add	sp, sp, #16
LBB0_4:
	mov	x0, x25
	mov	x1, x23
	bl	_add_stringlist_item
	mov	x0, x24
	mov	x1, x27
	bl	_add_stringlist_item
Lloh32:
	adrp	x8, _launcher@GOTPAGE
Lloh33:
	ldr	x8, [x8, _launcher@GOTPAGEOFF]
Lloh34:
	ldr	x3, [x8]
	cbz	x3, LBB0_6
; %bb.5:
Lloh35:
	adrp	x2, l_.str.3@PAGE
Lloh36:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_snprintf
	mov	x24, x0
	cmp	x0, x22
	b.lo	LBB0_7
	b	LBB0_11
LBB0_6:
	mov	x24, #0
LBB0_7:
	add	x0, x20, x24
	sub	w1, w22, w24
Lloh37:
	adrp	x8, _bindir@GOTPAGE
Lloh38:
	ldr	x8, [x8, _bindir@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
Lloh40:
	adrp	x9, l_.str.6@PAGE
Lloh41:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh42:
	adrp	x10, l_.str.7@PAGE
Lloh43:
	add	x10, x10, l_.str.7@PAGEOFF
	cmp	x8, #0
	csel	x3, x9, x8, eq
	csel	x8, x9, x10, eq
Lloh44:
	adrp	x9, _dblist@GOTPAGE
Lloh45:
	ldr	x9, [x9, _dblist@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	ldr	x9, [x9]
	sub	sp, sp, #48
	stp	x21, x23, [sp, #24]
Lloh47:
	adrp	x10, l_.str.8@PAGE
Lloh48:
	add	x10, x10, l_.str.8@PAGEOFF
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh49:
	adrp	x2, l_.str.5@PAGE
Lloh50:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_snprintf
	add	sp, sp, #48
	add	x8, x0, x24
	cmp	x8, x22
	b.hs	LBB0_11
; %bb.8:
Lloh51:
	adrp	x0, l_.str.9@PAGE
Lloh52:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x19
	bl	_psprintf
	mov	x21, x0
	bl	_putenv
	mov	x0, x20
	bl	_spawn_process
Lloh53:
	adrp	x8, _INVALID_PID@GOTPAGE
Lloh54:
	ldr	x8, [x8, _INVALID_PID@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.9:
	mov	x20, x0
Lloh56:
	adrp	x0, l_.str.11@PAGE
Lloh57:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_unsetenv
	mov	x0, x21
	bl	_free
	ldur	x8, [x29, #-88]
Lloh58:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh59:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh61:
	adrp	x8, _stderr@GOTPAGE
Lloh62:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh63:
	ldr	w19, [x8]
Lloh64:
	adrp	x0, l_.str.4@PAGE
Lloh65:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
	mov	w0, #2
	bl	_exit
LBB0_12:
Lloh66:
	adrp	x8, _stderr@GOTPAGE
Lloh67:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh68:
	ldr	w20, [x8]
Lloh69:
	adrp	x0, l_.str.10@PAGE
Lloh70:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	__
	mov	x1, x0
	str	x19, [sp, #-16]!
	mov	x0, x20
	bl	_fprintf
	add	sp, sp, #16
	mov	w0, #2
	bl	_exit
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/sql/%s.sql"

	.comm	_outputdir,8,3                  ; @outputdir
	.comm	_inputdir,8,3                   ; @inputdir
l_.str.1:                               ; @.str.1
	.asciz	"%s/results/%s.out"

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

	.comm	_launcher,8,3                   ; @launcher
l_.str.3:                               ; @.str.3
	.asciz	"%s "

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"command too long\n"

l_.str.5:                               ; @.str.5
	.asciz	"\"%s%spsql\" -X -a -q -d \"%s\" -v %s < \"%s\" > \"%s\" 2>&1"

	.comm	_bindir,8,3                     ; @bindir
l_.str.6:                               ; @.str.6
	.space	1

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

	.comm	_dblist,8,3                     ; @dblist
l_.str.8:                               ; @.str.8
	.asciz	"HIDE_TABLEAM=\"on\""

l_.str.9:                               ; @.str.9
	.asciz	"PGAPPNAME=pg_regress/%s"

	.comm	_INVALID_PID,8,3                ; @INVALID_PID
l_.str.10:                              ; @.str.10
	.asciz	"could not start process for test %s\n"

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

	.no_dead_strip	_psql_start_test
.subsections_via_symbols
