	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function substitute_libpath_macro
_substitute_libpath_macro:              ## @substitute_libpath_macro
	.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
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_AssertArg
	cmpb	$36, (%rbx)
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_first_dir_separator
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r14
	addq	%rbx, %r14
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	cltq
	movq	%r14, %rcx
	subq	%rbx, %rcx
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	_pkglib_path@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psprintf                       ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pstrdup                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$libdir"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_NAME,4,2       ## @ERRCODE_INVALID_NAME
L_.str.1:                               ## @.str.1
	.asciz	"invalid macro name in dynamic library path: %s"

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

	.comm	_pkglib_path,4,2                ## @pkglib_path
	.no_dead_strip	_substitute_libpath_macro
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function substitute_libpath_macro
_substitute_libpath_macro:              ; @substitute_libpath_macro
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_AssertArg
	ldrb	w8, [x19]
	cmp	w8, #36
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_first_dir_separator
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_strlen
	add	x20, x19, w0, sxtw
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	sub	x8, x20, x19
	cmp	x8, w0, sxtw
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
Lloh7:
	adrp	x8, _ERRCODE_INVALID_NAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERRCODE_INVALID_NAME@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_errcode
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_6:
Lloh12:
	adrp	x8, _pkglib_path@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pkglib_path@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_psprintf
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pstrdup
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$libdir"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_NAME,4,2       ; @ERRCODE_INVALID_NAME
l_.str.1:                               ; @.str.1
	.asciz	"invalid macro name in dynamic library path: %s"

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

	.comm	_pkglib_path,4,2                ; @pkglib_path
	.no_dead_strip	_substitute_libpath_macro
.subsections_via_symbols
