	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solib_open                     ## -- Begin function solib_open
	.p2align	4, 0x90
_solib_open:                            ## @solib_open
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movb	(%rdi), %al
	movl	$-1, %r14d
	testb	%al, %al
	je	LBB0_15
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%r15), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_2
## %bb.4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_5:
	cmpb	$0, -1(%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.6:
	movq	%r15, %rdi
	callq	_IS_ABSOLUTE_PATH
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_solib_absolute_prefix@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:
	callq	_strlen
	movl	%eax, %r12d
	movl	%eax, %ebx
	sarl	$31, %ebx
	andl	%eax, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rax
	movsbl	-1(%rax,%r12), %edi
	decq	%r12
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:
	incl	%r12d
	movl	%r12d, %ebx
LBB0_13:
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %edi
	incl	%edi
	callq	_alloca
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	movq	(%r13), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_strncpy
	movslq	%ebx, %rax
	movb	$0, (%r12,%rax)
	movq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcat
	jmp	LBB0_14
LBB0_8:
	movq	%r15, -48(%rbp)
	movq	%r15, %rbx
LBB0_14:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jns	LBB0_30
LBB0_15:
	movq	%r15, %rdi
	callq	_IS_ABSOLUTE_PATH
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	addq	$-2, %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movsbl	2(%r15), %edi
	callq	_IS_DIR_SEPARATOR
	incq	%r15
	testq	%rax, %rax
	je	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movsbl	1(%r15), %edi
	incq	%r15
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	jne	LBB0_18
LBB0_19:
	movq	_solib_search_path@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.20:
	movq	_O_RDONLY@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-48(%rbp), %r9
	movl	$1, %esi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_openp
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_23
## %bb.21:
	movq	(%r12), %r12
	testq	%r12, %r12
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	callq	_lbasename
	movl	(%r13), %ecx
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	xorl	%r8d, %r8d
	callq	_openp
	movl	%eax, %r14d
LBB0_23:
	testl	%r14d, %r14d
	jns	LBB0_30
## %bb.24:
	movq	_O_RDONLY@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_TARGET_SO_FIND_AND_OPEN_SOLIB
	movl	%eax, %r14d
	movq	_solib_absolute_prefix@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testl	%r14d, %r14d
	jns	LBB0_27
## %bb.25:
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:
	movq	_inferior_environ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_get_in_environ
	movl	(%r12), %ecx
	leaq	-48(%rbp), %r9
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_openp
	movl	%eax, %r14d
	movq	(%r13), %rax
LBB0_27:
	testl	%r14d, %r14d
	jns	LBB0_30
## %bb.28:
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	movq	_inferior_environ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_get_in_environ
	movl	(%r12), %ecx
	leaq	-48(%rbp), %r9
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_openp
	movl	%eax, %r14d
LBB0_30:
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.31:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.32:
	callq	_xstrdup
	movq	%rax, (%rbx)
LBB0_33:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_solib_absolute_prefix,8,3      ## @solib_absolute_prefix
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_solib_search_path,8,3          ## @solib_search_path
	.comm	_inferior_environ,4,2           ## @inferior_environ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solib_open                     ; -- Begin function solib_open
	.p2align	2
_solib_open:                            ; @solib_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	ldrb	w8, [x0]
	cbz	w8, LBB0_12
; %bb.1:
	add	x21, x20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_IS_DIR_SEPARATOR
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_2
	b	LBB0_12
LBB0_4:
	ldurb	w8, [x21, #-1]
	cbz	w8, LBB0_12
; %bb.5:
	mov	x0, x20
	bl	_IS_ABSOLUTE_PATH
	cbz	x0, LBB0_28
; %bb.6:
Lloh0:
	adrp	x23, _solib_absolute_prefix@GOTPAGE
Lloh1:
	ldr	x23, [x23, _solib_absolute_prefix@GOTPAGEOFF]
	ldr	x0, [x23]
	cbz	x0, LBB0_28
; %bb.7:
	bl	_strlen
	mov	w8, w0
	cmp	w0, #0
	csel	w21, w0, wzr, lt
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x23]
	sub	x22, x8, #1
	add	x8, x9, x8
	ldursb	w0, [x8, #-1]
	bl	_IS_DIR_SEPARATOR
	mov	x8, x22
	cbnz	x0, LBB0_8
; %bb.10:
	add	w21, w22, #1
LBB0_11:
	mov	x0, x20
	bl	_strlen
	add	w8, w21, w0
	add	w0, w8, #1
	bl	_alloca
	mov	x22, x0
	str	x0, [sp, #8]
	ldr	x1, [x23]
	mov	x2, x21
	bl	_strncpy
	strb	wzr, [x22, w21, sxtw]
	ldr	x21, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_strcat
	b	LBB0_29
LBB0_12:
	mov	w21, #-1
LBB0_13:
	mov	x0, x20
	bl	_IS_ABSOLUTE_PATH
	cbz	x0, LBB0_17
; %bb.14:
	sub	x20, x20, #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, #2]
	bl	_IS_DIR_SEPARATOR
	add	x20, x20, #1
	cbz	x0, LBB0_15
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, #1]!
	bl	_IS_DIR_SEPARATOR
	cbnz	x0, LBB0_16
LBB0_17:
Lloh2:
	adrp	x22, _solib_search_path@GOTPAGE
Lloh3:
	ldr	x22, [x22, _solib_search_path@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_21
; %bb.18:
Lloh4:
	adrp	x23, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x23, [x23, _O_RDONLY@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x5, sp, #8
	mov	w1, #1
	mov	x2, x20
	mov	w4, #0
	bl	_openp
	mov	x21, x0
	tbz	w0, #31, LBB0_21
; %bb.19:
	ldr	x22, [x22]
	cbz	x22, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_lbasename
	mov	x2, x0
	ldr	w3, [x23]
	add	x5, sp, #8
	mov	x0, x22
	mov	w1, #1
	mov	w4, #0
	bl	_openp
	mov	x21, x0
LBB0_21:
	tbz	w21, #31, LBB0_30
; %bb.22:
Lloh6:
	adrp	x22, _O_RDONLY@GOTPAGE
Lloh7:
	ldr	x22, [x22, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	bl	_TARGET_SO_FIND_AND_OPEN_SOLIB
	mov	x21, x0
Lloh8:
	adrp	x23, _solib_absolute_prefix@GOTPAGE
Lloh9:
	ldr	x23, [x23, _solib_absolute_prefix@GOTPAGEOFF]
	ldr	x8, [x23]
	tbz	w0, #31, LBB0_25
; %bb.23:
	cbnz	x8, LBB0_25
; %bb.24:
Lloh10:
	adrp	x8, _inferior_environ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _inferior_environ@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_get_in_environ
	ldr	w3, [x22]
	add	x5, sp, #8
	mov	w1, #1
	mov	x2, x20
	mov	w4, #0
	bl	_openp
	mov	x21, x0
	ldr	x8, [x23]
LBB0_25:
	tbz	w21, #31, LBB0_30
; %bb.26:
	cbnz	x8, LBB0_30
; %bb.27:
Lloh15:
	adrp	x8, _inferior_environ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _inferior_environ@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_get_in_environ
	ldr	w3, [x22]
	add	x5, sp, #8
	mov	w1, #1
	mov	x2, x20
	mov	w4, #0
	bl	_openp
	mov	x21, x0
	b	LBB0_30
LBB0_28:
	str	x20, [sp, #8]
	mov	x21, x20
LBB0_29:
Lloh20:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_open
	mov	x21, x0
	tbnz	w0, #31, LBB0_13
LBB0_30:
	cbz	x19, LBB0_33
; %bb.31:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_33
; %bb.32:
	bl	_xstrdup
	str	x0, [x19]
LBB0_33:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_solib_absolute_prefix,8,3      ; @solib_absolute_prefix
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_solib_search_path,8,3          ; @solib_search_path
	.comm	_inferior_environ,4,2           ; @inferior_environ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH"

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

.subsections_via_symbols
