	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfd_cache_lookup_worker
_bfd_cache_lookup_worker:               ## @bfd_cache_lookup_worker
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_BFD_IN_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	movq	24(%rdi), %rbx
	testq	%rbx, %rbx
	cmoveq	%rdi, %rbx
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	movq	_bfd_last_cache@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_12
## %bb.3:
	movq	%rbx, %rdi
	callq	_snip
	movq	%rbx, %rdi
	callq	_insert
	movq	8(%rbx), %r12
	jmp	LBB0_12
LBB0_4:
	movl	%esi, %r15d
	movq	_CACHE_NO_OPEN@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	callq	_bfd_open_file
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	_CACHE_NO_SEEK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
LBB0_14:
	movq	8(%rbx), %r12
	jmp	LBB0_12
LBB0_8:
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_real_fseek
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	_CACHE_NO_SEEK_ERROR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_14
## %bb.10:
	movq	_bfd_error_system_call@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	__bfd_error_handler
LBB0_12:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_BFD_IN_MEMORY,4,2              ## @BFD_IN_MEMORY
	.comm	_bfd_last_cache,8,3             ## @bfd_last_cache
	.comm	_CACHE_NO_OPEN,4,2              ## @CACHE_NO_OPEN
	.comm	_CACHE_NO_SEEK,4,2              ## @CACHE_NO_SEEK
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_CACHE_NO_SEEK_ERROR,4,2        ## @CACHE_NO_SEEK_ERROR
	.comm	_bfd_error_system_call,4,2      ## @bfd_error_system_call
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reopening %B: %s\n"

	.no_dead_strip	_bfd_cache_lookup_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfd_cache_lookup_worker
_bfd_cache_lookup_worker:               ; @bfd_cache_lookup_worker
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BFD_IN_MEMORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BFD_IN_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cmp	x8, #0
	csel	x20, x0, x8, eq
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _bfd_last_cache@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bfd_last_cache@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_13
; %bb.3:
	mov	x0, x20
	bl	_snip
	mov	x0, x20
	bl	_insert
	ldr	x0, [x20, #8]
	b	LBB0_13
LBB0_4:
	mov	x21, x1
Lloh6:
	adrp	x8, _CACHE_NO_OPEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CACHE_NO_OPEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w1
	b.ne	LBB0_12
; %bb.5:
	mov	x0, x20
	bl	_bfd_open_file
	cbz	x0, LBB0_11
; %bb.6:
Lloh9:
	adrp	x8, _CACHE_NO_SEEK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CACHE_NO_SEEK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
LBB0_7:
	ldr	x0, [x20, #8]
	b	LBB0_13
LBB0_8:
	ldr	x0, [x20, #8]
	ldr	w1, [x20, #16]
Lloh12:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_real_fseek
	cbz	x0, LBB0_7
; %bb.9:
Lloh15:
	adrp	x8, _CACHE_NO_SEEK_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CACHE_NO_SEEK_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_7
; %bb.10:
Lloh18:
	adrp	x8, _bfd_error_system_call@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bfd_error_system_call@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_bfd_set_error
LBB0_11:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x20, x0
	bl	_bfd_get_error
	bl	_bfd_errmsg
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	__bfd_error_handler
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_BFD_IN_MEMORY,4,2              ; @BFD_IN_MEMORY
	.comm	_bfd_last_cache,8,3             ; @bfd_last_cache
	.comm	_CACHE_NO_OPEN,4,2              ; @CACHE_NO_OPEN
	.comm	_CACHE_NO_SEEK,4,2              ; @CACHE_NO_SEEK
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_CACHE_NO_SEEK_ERROR,4,2        ; @CACHE_NO_SEEK_ERROR
	.comm	_bfd_error_system_call,4,2      ; @bfd_error_system_call
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reopening %B: %s\n"

	.no_dead_strip	_bfd_cache_lookup_worker
.subsections_via_symbols
