	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tablespace_list_append
_tablespace_list_append:                ## @tablespace_list_append
	.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, %r15
	movl	$24, %edi
	callq	_pg_malloc0
	movq	%rax, %r14
	movb	(%r15), %al
	testb	%al, %al
	je	LBB0_18
## %bb.1:
	movq	_MAXPGPATH@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_11
## %bb.2:
	movq	(%r14), %rdi
	cmpb	$92, %al
	je	LBB0_5
## %bb.3:
	cmpb	$61, %al
	jne	LBB0_7
## %bb.4:
	movq	8(%r14), %rdi
	cmpb	$0, (%rdi)
	movq	%rdi, %rcx
	je	LBB0_8
	jmp	LBB0_25
LBB0_5:
	cmpb	$61, 1(%r15)
	jne	LBB0_7
## %bb.6:
	movq	%rdi, %rcx
	jmp	LBB0_8
LBB0_7:
	leaq	1(%rdi), %rcx
	movb	%al, (%rdi)
LBB0_8:
	movb	1(%r15), %al
	testb	%al, %al
	je	LBB0_18
## %bb.9:
	movl	$2, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movb	%al, (%rcx)
	incq	%rcx
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%r15,%rsi), %eax
	incq	%rsi
	testb	%al, %al
	je	LBB0_18
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	subq	%rdi, %rdx
	movslq	(%r8), %rbx
	cmpq	%rbx, %rdx
	jge	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$61, %al
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$92, %al
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$61, (%r15,%rsi)
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$1, %rsi
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$92, -2(%r15,%rsi)
	je	LBB0_16
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r14), %rdi
	cmpb	$0, (%rdi)
	movq	%rdi, %rcx
	je	LBB0_17
LBB0_25:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_18:
	movq	(%r14), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_20
## %bb.19:
	movq	8(%r14), %rax
	cmpb	$0, (%rax)
	je	LBB0_20
## %bb.26:
	callq	_is_absolute_path
	testl	%eax, %eax
	je	LBB0_27
## %bb.28:
	movq	8(%r14), %rdi
	callq	_is_absolute_path
	testl	%eax, %eax
	je	LBB0_29
## %bb.30:
	movq	(%r14), %rdi
	callq	_canonicalize_path
	movq	8(%r14), %rdi
	callq	_canonicalize_path
	movq	_tablespace_dirs@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	16(%rcx), %rdx
	leaq	8(%rax), %rsi
	testq	%rcx, %rcx
	cmoveq	%rsi, %rdx
	movq	%r14, (%rdx)
	movq	%r14, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rdi
LBB0_12:
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	jmp	LBB0_21
LBB0_27:
	movq	(%r14), %rsi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_21
LBB0_29:
	movq	8(%r14), %rsi
	leaq	L_.str.4(%rip), %rdi
LBB0_21:
	xorl	%eax, %eax
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"directory name too long"

L_.str.1:                               ## @.str.1
	.asciz	"multiple \"=\" signs in tablespace mapping"

L_.str.2:                               ## @.str.2
	.asciz	"invalid tablespace mapping format \"%s\", must be \"OLDDIR=NEWDIR\""

L_.str.3:                               ## @.str.3
	.asciz	"old directory is not an absolute path in tablespace mapping: %s"

L_.str.4:                               ## @.str.4
	.asciz	"new directory is not an absolute path in tablespace mapping: %s"

	.comm	_tablespace_dirs,16,3           ## @tablespace_dirs
	.no_dead_strip	_tablespace_list_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tablespace_list_append
_tablespace_list_append:                ; @tablespace_list_append
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	mov	w0, #24
	bl	_pg_malloc0
	mov	x19, x0
	ldrb	w11, [x20]
	cbz	w11, LBB0_20
; %bb.1:
Lloh0:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_25
; %bb.2:
	ldr	x9, [x19]
	cmp	w11, #92
	b.eq	LBB0_5
; %bb.3:
	cmp	w11, #61
	b.ne	LBB0_8
; %bb.4:
	ldr	x9, [x19, #8]
	ldrb	w11, [x9]
	mov	x10, x9
	cbz	w11, LBB0_7
	b	LBB0_19
LBB0_5:
	ldrb	w10, [x20, #1]
	cmp	w10, #61
	b.ne	LBB0_8
; %bb.6:
	mov	x10, x9
LBB0_7:
	ldrb	w12, [x20, #1]
	cbnz	w12, LBB0_9
	b	LBB0_20
LBB0_8:
	mov	x10, x9
	strb	w11, [x10], #1
	ldrb	w12, [x20, #1]
	cbz	w12, LBB0_20
LBB0_9:
	mov	x11, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	strb	w12, [x10], #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x12, x20, x11
	ldrb	w12, [x12, #2]
	add	x11, x11, #1
	cbz	w12, LBB0_20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x13, [x8]
	sub	x14, x10, x9
	cmp	x14, x13
	b.ge	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w12, #61
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w12, #92
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x13, x20, x11
	ldrb	w13, [x13, #2]
	cmp	w13, #61
	b.ne	LBB0_10
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	cmn	x11, #1
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w13, [x20, x11]
	cmp	w13, #92
	b.eq	LBB0_10
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x19, #8]
	ldrb	w12, [x9]
	mov	x10, x9
	cbz	w12, LBB0_11
LBB0_19:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_26
LBB0_20:
	ldr	x0, [x19]
	ldrb	w8, [x0]
	cbz	w8, LBB0_27
; %bb.21:
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_27
; %bb.22:
	bl	_is_absolute_path
	cbz	w0, LBB0_28
; %bb.23:
	ldr	x0, [x19, #8]
	bl	_is_absolute_path
	cbz	w0, LBB0_29
; %bb.24:
	ldr	x0, [x19]
	bl	_canonicalize_path
	ldr	x0, [x19, #8]
	bl	_canonicalize_path
Lloh4:
	adrp	x8, _tablespace_dirs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tablespace_dirs@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x10, x9, #16
	str	x19, [x8], #8
	cmp	x9, #0
	csel	x8, x8, x10, eq
	str	x19, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_25:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_26:
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit
LBB0_27:
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_28:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_26
LBB0_29:
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_26
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"directory name too long"

l_.str.1:                               ; @.str.1
	.asciz	"multiple \"=\" signs in tablespace mapping"

l_.str.2:                               ; @.str.2
	.asciz	"invalid tablespace mapping format \"%s\", must be \"OLDDIR=NEWDIR\""

l_.str.3:                               ; @.str.3
	.asciz	"old directory is not an absolute path in tablespace mapping: %s"

l_.str.4:                               ; @.str.4
	.asciz	"new directory is not an absolute path in tablespace mapping: %s"

	.comm	_tablespace_dirs,16,3           ; @tablespace_dirs
	.no_dead_strip	_tablespace_list_append
.subsections_via_symbols
