	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_cache_init                 ## -- Begin function bfd_cache_init
	.p2align	4, 0x90
_bfd_cache_init:                        ## @bfd_cache_init
	.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	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_BFD_ASSERT
	movq	_open_files@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_BFD_CACHE_MAX_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_close_one
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_cache_iovec@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_insert
	incq	(%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_open_files,8,3                 ## @open_files
	.comm	_BFD_CACHE_MAX_OPEN,8,3         ## @BFD_CACHE_MAX_OPEN
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_cache_iovec,4,2                ## @cache_iovec
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_cache_init                 ; -- Begin function bfd_cache_init
	.p2align	2
_bfd_cache_init:                        ; @bfd_cache_init
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_BFD_ASSERT
Lloh0:
	adrp	x20, _open_files@GOTPAGE
Lloh1:
	ldr	x20, [x20, _open_files@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _BFD_CACHE_MAX_OPEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BFD_CACHE_MAX_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	bl	_close_one
	cbz	w0, LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _cache_iovec@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cache_iovec@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x19
	bl	_insert
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_open_files,8,3                 ; @open_files
	.comm	_BFD_CACHE_MAX_OPEN,8,3         ; @BFD_CACHE_MAX_OPEN
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_cache_iovec,4,2                ; @cache_iovec
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
