	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_absolute_path             ## -- Begin function make_absolute_path
	.p2align	4, 0x90
_make_absolute_path:                    ## @make_absolute_path
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_is_absolute_path
	testl	%eax, %eax
	je	LBB0_3
## %bb.13:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_errno@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_getcwd
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %ebx
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_free
	cmpl	%r12d, %ebx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, (%r13)
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%r15, %r15
	jmp	LBB0_4
LBB0_10:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax), %edi
	addl	$2, %edi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_free
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_sprintf
	movq	%r14, %rdi
	callq	_free
LBB0_15:
	movq	%r15, %rdi
	callq	_canonicalize_path
LBB0_16:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,8,3                  ## @MAXPGPATH
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_errno,4,2                      ## @errno
	.comm	_ERANGE,4,2                     ## @ERANGE
L_.str.1:                               ## @.str.1
	.asciz	"could not get current working directory: %m"

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

	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_absolute_path             ; -- Begin function make_absolute_path
	.p2align	2
_make_absolute_path:                    ; @make_absolute_path
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_is_absolute_path
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_strdup
	mov	x21, x0
	cbnz	x0, LBB0_15
; %bb.3:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	b	LBB0_15
LBB0_4:
	mov	x21, #0
	b	LBB0_16
LBB0_5:
Lloh8:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh10:
	ldr	x21, [x8]
Lloh11:
	adrp	x25, _ERROR@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str@PAGE
Lloh14:
	add	x22, x22, l_.str@PAGEOFF
Lloh15:
	adrp	x27, _errno@GOTPAGE
Lloh16:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh17:
	adrp	x28, _ERANGE@GOTPAGE
Lloh18:
	ldr	x28, [x28, _ERANGE@GOTPAGEOFF]
Lloh19:
	adrp	x23, l_.str.1@PAGE
Lloh20:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w24, [x25]
Lloh21:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_getcwd
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w24, [x27]
	ldr	w26, [x28]
	mov	x0, x20
	bl	_free
	cmp	w24, w26
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w24, [x27]
	ldr	w0, [x25]
	mov	x1, x23
	bl	_elog
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	x21, x21, #1
	b	LBB0_6
LBB0_12:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	add	w8, w21, w0
	add	w0, w8, #2
	bl	_malloc
	mov	x21, x0
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_free
	ldr	w22, [x25]
Lloh24:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_errcode
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_14:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_sprintf
	mov	x0, x20
	bl	_free
LBB0_15:
	mov	x0, x21
	bl	_canonicalize_path
LBB0_16:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,8,3                  ; @MAXPGPATH
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_errno,4,2                      ; @errno
	.comm	_ERANGE,4,2                     ; @ERANGE
l_.str.1:                               ; @.str.1
	.asciz	"could not get current working directory: %m"

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

	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
