	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_solib                    ## -- Begin function clear_solib
	.p2align	4, 0x90
_clear_solib:                           ## @clear_solib
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_exec_bfd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_bfd_get_flavour
	movq	_bfd_target_aout_flavour@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movl	$1, %edi
	callq	_disable_breakpoints_in_shlibs
LBB0_3:
	movq	_so_list_head@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_free_so
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	movq	%rax, (%r14)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_remove_target_sections
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_TARGET_SO_CLEAR_SOLIB          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_bfd,8,3                   ## @exec_bfd
	.comm	_bfd_target_aout_flavour,8,3    ## @bfd_target_aout_flavour
	.comm	_so_list_head,8,3               ## @so_list_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_solib                    ; -- Begin function clear_solib
	.p2align	2
_clear_solib:                           ; @clear_solib
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _exec_bfd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exec_bfd@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_bfd_get_flavour
Lloh3:
	adrp	x8, _bfd_target_aout_flavour@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bfd_target_aout_flavour@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #1
	bl	_disable_breakpoints_in_shlibs
LBB0_3:
Lloh6:
	adrp	x20, _so_list_head@GOTPAGE
Lloh7:
	ldr	x20, [x20, _so_list_head@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_free_so
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x20]
	cbz	x19, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x0, x8, [x19]
	str	x8, [x20]
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_remove_target_sections
	b	LBB0_4
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_TARGET_SO_CLEAR_SOLIB
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_bfd,8,3                   ; @exec_bfd
	.comm	_bfd_target_aout_flavour,8,3    ; @bfd_target_aout_flavour
	.comm	_so_list_head,8,3               ; @so_list_head
.subsections_via_symbols
