	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_in_dynamic_libpath
_find_in_dynamic_libpath:               ## @find_in_dynamic_libpath
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_AssertArg
	movq	%rbx, %rdi
	callq	_first_dir_separator
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_AssertArg
	movq	_Dynamic_library_path@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_AssertState
	movq	(%r14), %r15
	movq	%r15, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	$2, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_first_path_var_separator
	movq	%rax, %r12
	movq	%rax, %rbx
	subq	%r15, %rbx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	1(%rbx), %r12
	movl	%r12d, %edi
	callq	_palloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_strlcpy
	movq	%rbx, %rdi
	callq	_substitute_libpath_macro
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_pfree
	movq	%r13, %rdi
	callq	_canonicalize_path
	movq	%r13, %rdi
	callq	_is_absolute_path
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx), %edi
	callq	_palloc
	movq	%rax, %r14
	movq	%rax, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_sprintf
	movq	%r13, %rdi
	callq	_pfree
	movq	_DEBUG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_elog
	movq	%r14, %rdi
	callq	_file_exists
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_pfree
	addq	%r15, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpb	$0, (%r15,%rax)
	movq	%r12, %r15
	jne	LBB0_2
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	testq	%r12, %r12
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %rbx
	jmp	LBB0_6
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Dynamic_library_path,8,3       ## @Dynamic_library_path
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_NAME,4,2       ## @ERRCODE_INVALID_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zero-length component in parameter \"dynamic_library_path\""

L_.str.1:                               ## @.str.1
	.asciz	"component in parameter \"dynamic_library_path\" is not an absolute path"

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

	.comm	_DEBUG3,4,2                     ## @DEBUG3
L_.str.3:                               ## @.str.3
	.asciz	"find_in_dynamic_libpath: trying \"%s\""

	.no_dead_strip	_find_in_dynamic_libpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_in_dynamic_libpath
_find_in_dynamic_libpath:               ; @find_in_dynamic_libpath
	.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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_AssertArg
	mov	x0, x19
	bl	_first_dir_separator
	cmp	x0, #0
	cset	w0, eq
	bl	_AssertArg
Lloh0:
	adrp	x20, _Dynamic_library_path@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Dynamic_library_path@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_AssertState
	ldr	x20, [x20]
	mov	x0, x20
	bl	_strlen
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_strlen
	add	w28, w0, #2
Lloh2:
	adrp	x23, l_.str.2@PAGE
Lloh3:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh4:
	adrp	x21, _DEBUG3@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DEBUG3@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.3@PAGE
Lloh7:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_first_path_var_separator
	mov	x25, x0
	subs	x22, x0, x20
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x25, LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x22, #1
	mov	x0, x25
	bl	_palloc
	mov	x27, x0
	mov	x1, x20
	mov	x2, x25
	bl	_strlcpy
	mov	x0, x27
	bl	_substitute_libpath_macro
	mov	x26, x0
	mov	x0, x27
	bl	_pfree
	mov	x0, x26
	bl	_canonicalize_path
	mov	x0, x26
	bl	_is_absolute_path
	cbnz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w27, [x8]
Lloh11:
	adrp	x8, _ERRCODE_INVALID_NAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_INVALID_NAME@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	bl	_strlen
	add	w0, w28, w0
	bl	_palloc
	mov	x27, x0
	mov	x1, x23
	mov	x2, x26
	mov	x3, x19
	bl	_sprintf
	mov	x0, x26
	bl	_pfree
	ldr	w0, [x21]
	mov	x1, x24
	mov	x2, x27
	bl	_elog
	mov	x0, x27
	bl	_file_exists
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x27
	bl	_pfree
	ldrb	w8, [x20, x22]
	add	x20, x20, x25
	cbnz	w8, LBB0_2
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w26, [x8]
Lloh19:
	adrp	x8, _ERRCODE_INVALID_NAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERRCODE_INVALID_NAME@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_errcode
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	cbnz	x25, LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	b	LBB0_4
LBB0_10:
	mov	x27, #0
LBB0_11:
	mov	x0, x27
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_Dynamic_library_path,8,3       ; @Dynamic_library_path
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_NAME,4,2       ; @ERRCODE_INVALID_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zero-length component in parameter \"dynamic_library_path\""

l_.str.1:                               ; @.str.1
	.asciz	"component in parameter \"dynamic_library_path\" is not an absolute path"

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

	.comm	_DEBUG3,4,2                     ; @DEBUG3
l_.str.3:                               ; @.str.3
	.asciz	"find_in_dynamic_libpath: trying \"%s\""

	.no_dead_strip	_find_in_dynamic_libpath
.subsections_via_symbols
