	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_open_file                  ## -- Begin function bfd_open_file
	.p2align	4, 0x90
_bfd_open_file:                         ## @bfd_open_file
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_TRUE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 32(%rdi)
	movq	_open_files@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_BFD_CACHE_MAX_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_close_one
	testl	%eax, %eax
	je	LBB0_20
LBB0_2:
	movl	(%r14), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$131, %eax
	jne	LBB0_5
LBB0_8:
	cmpq	$0, 16(%r14)
	je	LBB0_11
## %bb.9:
	movl	24(%r14), %edi
	movq	_FOPEN_RUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_real_fopen
	cltq
	movq	%rax, 8(%r14)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movl	24(%r14), %edi
	movq	_FOPEN_WUB@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movl	24(%r14), %edi
	movq	_FOPEN_RB@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_real_fopen
	cltq
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_16
LBB0_5:
	movq	8(%r14), %rax
LBB0_15:
	testq	%rax, %rax
	je	LBB0_16
LBB0_18:
	movq	%r14, %rdi
	callq	_bfd_cache_init
	testl	%eax, %eax
	jne	LBB0_17
## %bb.19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_11:
	movl	24(%r14), %edi
	leaq	-32(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	cmpl	$0, -32(%rbp)
	je	LBB0_14
## %bb.13:
	movl	24(%r14), %edi
	callq	_unlink_if_ordinary
LBB0_14:
	movl	24(%r14), %edi
	movq	_FOPEN_WUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_real_fopen
	cltq
	movq	%rax, 8(%r14)
	movq	(%r15), %rcx
	movq	%rcx, 16(%r14)
	testq	%rax, %rax
	jne	LBB0_18
LBB0_16:
	movq	_bfd_error_system_call@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
LBB0_17:
	movq	8(%r14), %rbx
LBB0_20:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_open_files,8,3                 ## @open_files
	.comm	_BFD_CACHE_MAX_OPEN,8,3         ## @BFD_CACHE_MAX_OPEN
	.comm	_FOPEN_RB,4,2                   ## @FOPEN_RB
	.comm	_FOPEN_RUB,4,2                  ## @FOPEN_RUB
	.comm	_FOPEN_WUB,4,2                  ## @FOPEN_WUB
	.comm	_bfd_error_system_call,4,2      ## @bfd_error_system_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_open_file                  ; -- Begin function bfd_open_file
	.p2align	2
_bfd_open_file:                         ; @bfd_open_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _TRUE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _open_files@GOTPAGE
Lloh3:
	ldr	x9, [x9, _open_files@GOTPAGEOFF]
	str	x8, [x0, #32]
Lloh4:
	ldr	x8, [x9]
Lloh5:
	adrp	x9, _BFD_CACHE_MAX_OPEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BFD_CACHE_MAX_OPEN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	bl	_close_one
	cbz	w0, LBB0_13
LBB0_2:
	ldr	w8, [x19]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_8
; %bb.3:
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #131
	b.ne	LBB0_10
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.6:
	ldr	w0, [x19, #24]
Lloh8:
	adrp	x8, _FOPEN_RUB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FOPEN_RUB@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_real_fopen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x19, #8]
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	w0, [x19, #24]
Lloh11:
	adrp	x8, _FOPEN_WUB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FOPEN_WUB@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #24]
Lloh13:
	adrp	x8, _FOPEN_RB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FOPEN_RB@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	bl	_real_fopen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x19, #8]
	cbnz	x8, LBB0_12
	b	LBB0_18
LBB0_10:
	ldr	x8, [x19, #8]
LBB0_11:
	cbz	x8, LBB0_18
LBB0_12:
	mov	x0, x19
	bl	_bfd_cache_init
	cbnz	w0, LBB0_19
LBB0_13:
	mov	x0, #0
	b	LBB0_20
LBB0_14:
	ldr	w0, [x19, #24]
	add	x1, sp, #8
	bl	_stat
	cbnz	w0, LBB0_17
; %bb.15:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_17
; %bb.16:
	ldr	w0, [x19, #24]
	bl	_unlink_if_ordinary
LBB0_17:
	ldr	w0, [x19, #24]
Lloh15:
	adrp	x8, _FOPEN_WUB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FOPEN_WUB@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_real_fopen
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x9, [x20]
	sxtw	x8, w0
	stp	x8, x9, [x19, #8]
	cbnz	x8, LBB0_12
LBB0_18:
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_19:
	ldr	x0, [x19, #8]
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_open_files,8,3                 ; @open_files
	.comm	_BFD_CACHE_MAX_OPEN,8,3         ; @BFD_CACHE_MAX_OPEN
	.comm	_FOPEN_RB,4,2                   ; @FOPEN_RB
	.comm	_FOPEN_RUB,4,2                  ; @FOPEN_RUB
	.comm	_FOPEN_WUB,4,2                  ; @FOPEN_WUB
	.comm	_bfd_error_system_call,4,2      ; @bfd_error_system_call
.subsections_via_symbols
