	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_dynamic_library_name
_expand_dynamic_library_name:           ## @expand_dynamic_library_name
	.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, %r14
	callq	_AssertArg
	movq	%r14, %rdi
	callq	_first_dir_separator
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	callq	_substitute_libpath_macro
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_file_exists
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	callq	_pfree
	movq	_DLSUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_psprintf
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_substitute_libpath_macro
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_pfree
	movq	%rbx, %rdi
	callq	_file_exists
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	movq	%rbx, %rdi
	callq	_pfree
	jmp	LBB0_7
LBB0_1:
	callq	_find_in_dynamic_libpath
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_DLSUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_psprintf
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_find_in_dynamic_libpath
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_pfree
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %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	"%s%s"

	.comm	_DLSUFFIX,4,2                   ## @DLSUFFIX
	.no_dead_strip	_expand_dynamic_library_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_dynamic_library_name
_expand_dynamic_library_name:           ; @expand_dynamic_library_name
	.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
	bl	_AssertArg
	mov	x0, x19
	bl	_first_dir_separator
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_substitute_libpath_macro
	mov	x20, x0
	bl	_file_exists
	cbnz	x0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_pfree
Lloh0:
	adrp	x8, _DLSUFFIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DLSUFFIX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_psprintf
	mov	x21, x0
	bl	_substitute_libpath_macro
	mov	x20, x0
	mov	x0, x21
	bl	_pfree
	mov	x0, x20
	bl	_file_exists
	cbnz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_pfree
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_find_in_dynamic_libpath
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _DLSUFFIX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DLSUFFIX@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_psprintf
	mov	x21, x0
	bl	_find_in_dynamic_libpath
	mov	x20, x0
	mov	x0, x21
	bl	_pfree
	cbz	x20, LBB0_7
LBB0_6:
	mov	x0, 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
	ret
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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	_DLSUFFIX,4,2                   ; @DLSUFFIX
	.no_dead_strip	_expand_dynamic_library_name
.subsections_via_symbols
