	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_to_solist
_add_to_solist:                         ## @add_to_solist
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_symfile_objfile@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%r9, %r14
	movq	%rcx, %r12
	movq	%rsi, %r13
	movq	_so_list_head@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rbx
	movl	4(%r15), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r15
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_6:
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$24, %edi
	callq	_xmalloc
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_so_list_head@GOTPCREL(%rip), %rax
	addq	$16, %r15
	cmpq	$0, (%rax)
	cmoveq	%rax, %r15
	movq	%r14, (%r15)
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movl	(%r12), %eax
	movl	%eax, 12(%r14)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	_symfile_objfile@GOTPCREL(%rip), %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_11
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rsi
	addq	$12, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	$4, %edx
	callq	_target_read_memory
	testq	%rax, %rax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	_symfile_objfile@GOTPCREL(%rip), %rbx
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_error
LBB0_11:
	movl	%r12d, 8(%r14)
	movl	$1, (%r14)
	movq	%r13, %rdi
	callq	_strlen
	movq	(%rbx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_obsavestring
	movl	%eax, 4(%r14)
	movq	%r13, %rdi
	callq	_pa64_solib_sizeof_symbol_table
	movq	_pa64_solib_total_st_size@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.12:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:
	movq	_auto_solib_limit@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	$20, %edx
	cmpl	%edx, %eax
	jle	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pa64_solib_add_solib_objfile   ## TAILCALL
LBB0_14:
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pa64_solib_load_symbols        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_symfile_objfile,8,3            ## @symfile_objfile
	.comm	_so_list_head,8,3               ## @so_list_head
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error while reading in dynamic library %s"

	.comm	_pa64_solib_total_st_size,4,2   ## @pa64_solib_total_st_size
	.comm	_auto_solib_limit,4,2           ## @auto_solib_limit
	.no_dead_strip	_add_to_solist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_to_solist
_add_to_solist:                         ; @add_to_solist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x26, _symfile_objfile@GOTPAGE
Lloh1:
	ldr	x26, [x26, _symfile_objfile@GOTPAGEOFF]
	ldr	x8, [x26]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x23, x4
	mov	x25, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh2:
	adrp	x27, _so_list_head@GOTPAGE
Lloh3:
	ldr	x27, [x27, _so_list_head@GOTPAGEOFF]
	mov	x24, x27
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x24]
	cbz	x28, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x28
	ldr	x19, [x24, #16]!
	ldur	w0, [x24, #-12]
	mov	x1, x20
	bl	_strcmp
	cbz	x19, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x0, LBB0_2
	b	LBB0_8
LBB0_5:
	cbz	x0, LBB0_8
LBB0_6:
	mov	w0, #24
	bl	_xmalloc
	mov	x24, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x27]
	add	x9, x28, #16
	cmp	x8, #0
	csel	x8, x27, x9, eq
	str	x24, [x8]
	cbz	x25, LBB0_9
; %bb.7:
	ldr	w8, [x25]
	str	w8, [x24, #12]
	b	LBB0_11
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	add	x1, x24, #12
	mov	x0, x23
	mov	w2, #4
	bl	_target_read_memory
	cbz	x0, LBB0_11
; %bb.10:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_error
LBB0_11:
	str	w23, [x24, #8]
	mov	w8, #1
	str	w8, [x24]
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	ldr	x2, [x26]
	mov	x0, x20
	bl	_obsavestring
	str	w0, [x24, #4]
	mov	x0, x20
	bl	_pa64_solib_sizeof_symbol_table
Lloh6:
	adrp	x8, _pa64_solib_total_st_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pa64_solib_total_st_size@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w0
	cbnz	w21, LBB0_15
; %bb.12:
	cbz	w22, LBB0_15
; %bb.13:
Lloh8:
	adrp	x10, _auto_solib_limit@GOTPAGE
Lloh9:
	ldr	x10, [x10, _auto_solib_limit@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10, lsl #20
	b.le	LBB0_15
; %bb.14:
	mov	x0, x24
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_pa64_solib_add_solib_objfile
LBB0_15:
	str	w9, [x8]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_pa64_solib_load_symbols
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_symfile_objfile,8,3            ; @symfile_objfile
	.comm	_so_list_head,8,3               ; @so_list_head
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error while reading in dynamic library %s"

	.comm	_pa64_solib_total_st_size,4,2   ; @pa64_solib_total_st_size
	.comm	_auto_solib_limit,4,2           ; @auto_solib_limit
	.no_dead_strip	_add_to_solist
.subsections_via_symbols
