	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_get_elt_at_filepos        ## -- Begin function _bfd_get_elt_at_filepos
	.p2align	4, 0x90
__bfd_get_elt_at_filepos:               ## @_bfd_get_elt_at_filepos
	.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
	movl	%esi, %r14d
	movq	24(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	addl	16(%rdi), %r14d
	jmp	LBB0_3
LBB0_1:
	movq	%rdi, %r15
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	__bfd_look_for_bfd_in_cache
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bfd_seek
	testq	%rax, %rax
	js	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	callq	__bfd_read_ar_hdr
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	__bfd_create_empty_archive_element_shell
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_bfd_tell
	movq	%rax, 16(%rbx)
	movq	%r12, 8(%rbx)
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	__bfd_add_bfd_to_archive_cache
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bfd_release
LBB0_9:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bfd_release
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bfd_get_elt_at_filepos        ; -- Begin function _bfd_get_elt_at_filepos
	.p2align	2
__bfd_get_elt_at_filepos:               ; @_bfd_get_elt_at_filepos
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w9, [x19, #16]
	add	w20, w9, w20
	mov	x19, x8
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	__bfd_look_for_bfd_in_cache
	mov	x21, x0
	cbnz	x0, LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bfd_seek
	tbnz	x0, #63, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	__bfd_read_ar_hdr
	cbz	x0, LBB0_9
; %bb.5:
	mov	x22, x0
	mov	x0, x19
	bl	__bfd_create_empty_archive_element_shell
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	mov	x0, x19
	bl	_bfd_tell
	stp	x22, x0, [x21, #8]
	ldr	w8, [x22]
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	__bfd_add_bfd_to_archive_cache
	cbnz	x0, LBB0_10
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_bfd_release
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	bl	_bfd_release
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
