	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_sourcefiles_in
_convert_sourcefiles_in:                ## @convert_sourcefiles_in
	.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	$1128, %rsp                     ## imm = 0x468
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -1136(%rbp)               ## 8-byte Spill
	movq	%rdx, -1128(%rbp)               ## 8-byte Spill
	movq	%rsi, -1120(%rbp)               ## 8-byte Spill
	movq	%rdi, %r14
	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, %r12
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_inputdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_snprintf
	leaq	-1096(%rbp), %rsi
	movq	%rbx, -1088(%rbp)               ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movl	-1096(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_15
## %bb.2:
	movq	-1088(%rbp), %rdi               ## 8-byte Reload
	callq	_pgfnames
	testq	%rax, %rax
	je	LBB0_22
## %bb.3:
	movq	%rax, %rbx
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_outputdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, -1112(%rbp)               ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_snprintf
	cmpq	$0, (%rbx)
	je	LBB0_21
## %bb.4:
	leaq	-1072(%rbp), %r15
	movq	%rbx, -1104(%rbp)               ## 8-byte Spill
	movq	%rbx, %r12
	movl	$0, -1076(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	-1076(%rbp)                     ## 4-byte Folded Spill
	movq	%r12, %rdi
	callq	_fclose
	movq	%rbx, %rdi
	callq	_fclose
	movq	-1144(%rbp), %r12               ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-1160(%rbp), %rsp               ## 8-byte Reload
	cmpq	$0, 8(%r12)
	leaq	8(%r12), %r12
	je	LBB0_13
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rsp, -1160(%rbp)               ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -1152(%rbp)               ## 8-byte Spill
	movl	(%rbx), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%r12), %rdi
	callq	_strlen
	cmpl	$8, %eax
	jl	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	(%rbx,%rax), %rdi
	addq	$-7, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	-6(%rax), %esi
	movq	(%r12), %rcx
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	_MAXPGPATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, -1144(%rbp)               ## 8-byte Spill
	movq	(%r12), %r8
	movq	-1152(%rbp), %r12               ## 8-byte Reload
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rdx
	movq	-1088(%rbp), %rcx               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
	movl	(%rbx), %esi
	subq	$8, %rsp
	movq	%r13, %rbx
	movq	%r12, %r13
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rdx
	movq	-1120(%rbp), %rcx               ## 8-byte Reload
	movq	-1128(%rbp), %r8                ## 8-byte Reload
	movq	%r14, %r9
	xorl	%eax, %eax
	pushq	-1136(%rbp)                     ## 8-byte Folded Reload
	callq	_snprintf
	addq	$16, %rsp
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r12
	movq	_outputdir@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	movq	-1112(%rbp), %r13               ## 8-byte Reload
	je	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_inputdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_replace_string
	movq	(%r14), %rdx
	movq	%r15, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_replace_string
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdx
	callq	_replace_string
	movq	_dlpath@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_replace_string
	movq	_DLSUFFIX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_replace_string
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fputs
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_5
LBB0_13:
	cmpl	$0, -1076(%rbp)                 ## 4-byte Folded Reload
	movq	-1104(%rbp), %rdi               ## 8-byte Reload
	jle	LBB0_21
## %bb.14:
	callq	_pgfnames_cleanup
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_19
LBB0_18:
	movq	%rbx, %r13
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.8(%rip), %rdi
LBB0_19:
	callq	__
	movq	%rax, %r15
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fprintf
	movl	$2, %edi
	callq	_exit
LBB0_20:
	callq	___stack_chk_fail
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.14(%rip), %rdi
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	-1088(%rbp), %rcx               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
LBB0_22:
	movl	$2, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_inputdir,8,3                   ## @inputdir
L_.str.1:                               ## @.str.1
	.asciz	"%s/testtablespace"

	.comm	_outputdir,8,3                  ## @outputdir
L_.str.2:                               ## @.str.2
	.asciz	".source"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"%s/%s/%s.%s"

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

	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.asciz	"%s: could not open file \"%s\" for reading: %s\n"

	.comm	_progname,8,3                   ## @progname
	.comm	_errno,4,2                      ## @errno
L_.str.7:                               ## @.str.7
	.asciz	"w"

L_.str.8:                               ## @.str.8
	.asciz	"%s: could not open file \"%s\" for writing: %s\n"

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

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

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

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

	.comm	_dlpath,8,3                     ## @dlpath
L_.str.13:                              ## @.str.13
	.asciz	"@DLSUFFIX@"

	.comm	_DLSUFFIX,8,3                   ## @DLSUFFIX
L_.str.14:                              ## @.str.14
	.asciz	"%s: no *.source files found in \"%s\"\n"

	.no_dead_strip	_convert_sourcefiles_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_sourcefiles_in
_convert_sourcefiles_in:                ; @convert_sourcefiles_in
	.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, #1120
	mov	x19, sp
	stp	x2, x3, [x19, #24]              ; 16-byte Folded Spill
	str	x1, [x19, #16]                  ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x12, x9, #0x1fffffff0
	sub	x22, x8, x12
	mov	sp, x22
	mov	x9, x1
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
Lloh10:
	adrp	x8, _inputdir@GOTPAGE
Lloh11:
	ldr	x8, [x8, _inputdir@GOTPAGEOFF]
Lloh12:
	ldr	x3, [x8]
	str	x0, [sp, #-16]!
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	add	sp, sp, #16
	add	x1, x19, #72
	str	x20, [x19, #40]                 ; 8-byte Folded Spill
	mov	x0, x20
	bl	_stat
	cbnz	w0, LBB0_17
; %bb.1:
	ldr	w0, [x19, #72]
	bl	_S_ISDIR
	cbz	w0, LBB0_17
; %bb.2:
	ldr	x0, [x19, #40]                  ; 8-byte Folded Reload
	bl	_pgfnames
	cbz	x0, LBB0_24
; %bb.3:
	mov	x24, x0
Lloh15:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x21, _outputdir@GOTPAGE
Lloh19:
	ldr	x21, [x21, _outputdir@GOTPAGEOFF]
	ldr	x3, [x21]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_snprintf
	ldr	x8, [x24]
	cbz	x8, LBB0_23
; %bb.4:
	str	wzr, [x19, #60]                 ; 4-byte Folded Spill
Lloh22:
	adrp	x26, l_.str.9@PAGE
Lloh23:
	add	x26, x26, l_.str.9@PAGEOFF
Lloh24:
	adrp	x27, l_.str.10@PAGE
Lloh25:
	add	x27, x27, l_.str.10@PAGEOFF
	stp	x24, x22, [x19]                 ; 16-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x27
	mov	x27, x25
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	sp, x20
	ldr	x8, [x24, #8]!
	cbz	x8, LBB0_15
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x25, x27
	mov	x27, x26
	mov	x20, sp
Lloh26:
	adrp	x12, _MAXPGPATH@GOTPAGE
Lloh27:
	ldr	x12, [x12, _MAXPGPATH@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh28:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh29:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w8, [x12]
	mov	x9, x8
Lloh30:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh31:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x26, x9, x12
	mov	sp, x26
	mov	x9, x8
Lloh32:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh33:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	ldr	x0, [x24]
	bl	_strlen
	cmp	w0, #8
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x20, [x19, #64]                 ; 8-byte Folded Spill
Lloh34:
	adrp	x20, _MAXPGPATH@GOTPAGE
Lloh35:
	ldr	x20, [x20, _MAXPGPATH@GOTPAGEOFF]
	ldr	x28, [x24]
	mov	x0, x28
	bl	_strlen
	add	x8, x28, w0, sxtw
	sub	x0, x8, #7
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x27
	mov	x27, x25
	ldr	x20, [x19, #64]                 ; 8-byte Folded Reload
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x24]
	bl	_strlen
	sub	w1, w0, #6
	ldr	x3, [x24]
	mov	x0, x23
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	ldr	w1, [x20]
	ldr	x8, [x24]
	str	x8, [sp, #-16]!
	mov	x0, x22
Lloh40:
	adrp	x2, l_.str@PAGE
Lloh41:
	add	x2, x2, l_.str@PAGEOFF
	ldr	x3, [x19, #40]                  ; 8-byte Folded Reload
	bl	_snprintf
	add	sp, sp, #16
	ldr	w1, [x20]
	sub	sp, sp, #32
	ldr	x8, [x19, #32]                  ; 8-byte Folded Reload
	stp	x23, x8, [sp, #8]
	ldr	x8, [x19, #24]                  ; 8-byte Folded Reload
	str	x8, [sp]
	mov	x0, x26
Lloh42:
	adrp	x2, l_.str.4@PAGE
Lloh43:
	add	x2, x2, l_.str.4@PAGEOFF
	ldr	x3, [x19, #16]                  ; 8-byte Folded Reload
	bl	_snprintf
	add	sp, sp, #32
	mov	x0, x22
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	str	x24, [x19, #48]                 ; 8-byte Folded Spill
	mov	x0, x26
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	add	x0, x19, #80
	mov	w1, #1024
	mov	x2, x23
	bl	_fgets
	mov	x26, x27
	mov	x27, x25
	ldr	x21, [x19, #8]                  ; 8-byte Folded Reload
Lloh48:
	adrp	x20, _dlpath@GOTPAGE
Lloh49:
	ldr	x20, [x20, _dlpath@GOTPAGEOFF]
Lloh50:
	adrp	x28, l_.str.12@PAGE
Lloh51:
	add	x28, x28, l_.str.12@PAGEOFF
Lloh52:
	adrp	x24, _DLSUFFIX@GOTPAGE
Lloh53:
	ldr	x24, [x24, _DLSUFFIX@GOTPAGEOFF]
Lloh54:
	adrp	x25, l_.str.13@PAGE
Lloh55:
	add	x25, x25, l_.str.13@PAGEOFF
	cbz	x0, LBB0_14
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh56:
	adrp	x8, _inputdir@GOTPAGE
Lloh57:
	ldr	x8, [x8, _inputdir@GOTPAGEOFF]
Lloh58:
	ldr	x2, [x8]
	add	x0, x19, #80
	mov	x1, x26
	bl	_replace_string
Lloh59:
	adrp	x8, _outputdir@GOTPAGE
Lloh60:
	ldr	x8, [x8, _outputdir@GOTPAGEOFF]
Lloh61:
	ldr	x2, [x8]
	add	x0, x19, #80
	mov	x1, x27
	bl	_replace_string
	add	x0, x19, #80
Lloh62:
	adrp	x1, l_.str.11@PAGE
Lloh63:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x2, x21
	bl	_replace_string
	ldr	x2, [x20]
	add	x0, x19, #80
	mov	x1, x28
	bl	_replace_string
	ldr	x2, [x24]
	add	x0, x19, #80
	mov	x1, x25
	bl	_replace_string
	add	x0, x19, #80
	mov	x1, x22
	bl	_fputs
	add	x0, x19, #80
	mov	w1, #1024
	mov	x2, x23
	bl	_fgets
	cbnz	x0, LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #60]                  ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [x19, #60]                  ; 4-byte Folded Spill
	mov	x0, x23
	bl	_fclose
	mov	x0, x22
	bl	_fclose
	ldr	x24, [x19, #48]                 ; 8-byte Folded Reload
	ldr	x20, [x19, #64]                 ; 8-byte Folded Reload
Lloh64:
	adrp	x21, _outputdir@GOTPAGE
Lloh65:
	ldr	x21, [x21, _outputdir@GOTPAGEOFF]
	b	LBB0_6
LBB0_15:
	ldr	w8, [x19, #60]                  ; 4-byte Folded Reload
	cmp	w8, #0
	ldr	x0, [x19]                       ; 8-byte Folded Reload
	b.le	LBB0_23
; %bb.16:
	bl	_pgfnames_cleanup
LBB0_17:
	ldur	x8, [x29, #-96]
Lloh66:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh67:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.18:
	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_19:
Lloh69:
	adrp	x8, _stderr@GOTPAGE
Lloh70:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh71:
	ldr	w20, [x8]
Lloh72:
	adrp	x0, l_.str.6@PAGE
Lloh73:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x21, x0
Lloh74:
	adrp	x8, _progname@GOTPAGE
Lloh75:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh76:
	ldr	x23, [x8]
Lloh77:
	adrp	x8, _errno@GOTPAGE
Lloh78:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp, #-16]!
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	b	LBB0_21
LBB0_20:
Lloh80:
	adrp	x8, _stderr@GOTPAGE
Lloh81:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh82:
	ldr	w20, [x8]
Lloh83:
	adrp	x0, l_.str.8@PAGE
Lloh84:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	__
	mov	x21, x0
Lloh85:
	adrp	x8, _progname@GOTPAGE
Lloh86:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh87:
	ldr	x22, [x8]
Lloh88:
	adrp	x8, _errno@GOTPAGE
Lloh89:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh90:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp, #-16]!
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x26
LBB0_21:
	bl	_fprintf
	add	sp, sp, #16
	mov	w0, #2
	bl	_exit
LBB0_22:
	bl	___stack_chk_fail
LBB0_23:
Lloh91:
	adrp	x8, _stderr@GOTPAGE
Lloh92:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh93:
	ldr	w20, [x8]
Lloh94:
	adrp	x0, l_.str.14@PAGE
Lloh95:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	__
	mov	x1, x0
Lloh96:
	adrp	x8, _progname@GOTPAGE
Lloh97:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh98:
	ldr	x2, [x8]
	mov	x0, x20
	ldr	x3, [x19, #40]                  ; 8-byte Folded Reload
	bl	_fprintf
LBB0_24:
	mov	w0, #2
	bl	_exit
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_inputdir,8,3                   ; @inputdir
l_.str.1:                               ; @.str.1
	.asciz	"%s/testtablespace"

	.comm	_outputdir,8,3                  ; @outputdir
l_.str.2:                               ; @.str.2
	.asciz	".source"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"%s/%s/%s.%s"

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

	.comm	_stderr,4,2                     ; @stderr
l_.str.6:                               ; @.str.6
	.asciz	"%s: could not open file \"%s\" for reading: %s\n"

	.comm	_progname,8,3                   ; @progname
	.comm	_errno,4,2                      ; @errno
l_.str.7:                               ; @.str.7
	.asciz	"w"

l_.str.8:                               ; @.str.8
	.asciz	"%s: could not open file \"%s\" for writing: %s\n"

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

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

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

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

	.comm	_dlpath,8,3                     ; @dlpath
l_.str.13:                              ; @.str.13
	.asciz	"@DLSUFFIX@"

	.comm	_DLSUFFIX,8,3                   ; @DLSUFFIX
l_.str.14:                              ; @.str.14
	.asciz	"%s: no *.source files found in \"%s\"\n"

	.no_dead_strip	_convert_sourcefiles_in
.subsections_via_symbols
