	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_search_and_load_file
_elf_search_and_load_file:              ## @elf_search_and_load_file
	.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	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_5
## %bb.2:
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	%rbx, %rsi
	callq	_module_is_already_loaded
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, (%r12)
	movq	8(%rax), %rcx
	movq	_DFI_ELF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rcx)
	jmp	LBB0_6
LBB0_4:
	leaq	_elf_search_and_load_file.S_libstdcPPW(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstrW
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	callq	_elf_load_file
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchrW
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_elf_load_file_from_path
	testq	%rax, %rax
	jne	LBB0_7
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_elf_load_file_from_path
	testq	%rax, %rax
	jne	LBB0_7
## %bb.13:
	movq	_BINDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r12, %r9
	callq	_elf_load_file_from_path
	testq	%rax, %rax
	jne	LBB0_7
## %bb.14:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elf_load_file_from_dll_path    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__const
_elf_search_and_load_file.S_libstdcPPW: ## @elf_search_and_load_file.S_libstdcPPW
	.asciz	"libstdc++"

	.comm	_DFI_ELF,8,3                    ## @DFI_ELF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH"

L_.str.1:                               ## @.str.1
	.asciz	"LD_LIBRARY_PATH"

	.comm	_BINDIR,4,2                     ## @BINDIR
	.no_dead_strip	_elf_search_and_load_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_search_and_load_file
_elf_search_and_load_file:              ; @elf_search_and_load_file
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x22, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x0
	mov	x1, x22
	bl	_module_is_already_loaded
	cbz	x0, LBB0_4
; %bb.3:
	str	x0, [x19]
Lloh0:
	adrp	x8, _DFI_ELF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DFI_ELF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x0, x9, [x0]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x1, _elf_search_and_load_file.S_libstdcPPW@PAGE
Lloh4:
	add	x1, x1, _elf_search_and_load_file.S_libstdcPPW@PAGEOFF
	mov	x0, x22
	bl	_strstrW
	cbz	x0, LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_elf_load_file
	cbnz	x0, LBB0_6
; %bb.8:
	mov	x0, x22
	mov	w1, #47
	bl	_strchrW
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, #0
	b	LBB0_6
LBB0_10:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x4, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x5, x19
	bl	_elf_load_file_from_path
	cbnz	x0, LBB0_6
; %bb.11:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x4, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x5, x19
	bl	_elf_load_file_from_path
	cbnz	x0, LBB0_6
; %bb.12:
Lloh12:
	adrp	x8, _BINDIR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BINDIR@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x5, x19
	bl	_elf_load_file_from_path
	cbnz	x0, LBB0_6
; %bb.13:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_elf_load_file_from_dll_path
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__const
_elf_search_and_load_file.S_libstdcPPW: ; @elf_search_and_load_file.S_libstdcPPW
	.asciz	"libstdc++"

	.comm	_DFI_ELF,8,3                    ; @DFI_ELF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH"

l_.str.1:                               ; @.str.1
	.asciz	"LD_LIBRARY_PATH"

	.comm	_BINDIR,4,2                     ; @BINDIR
	.no_dead_strip	_elf_search_and_load_file
.subsections_via_symbols
