	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_bread                      ## -- Begin function bfd_bread
	.p2align	4, 0x90
_bfd_bread:                             ## @bfd_bread
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	32(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	cmpq	%r14, %rax
	cmovbq	%rax, %r14
LBB0_2:
	movq	_BFD_IN_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.3:
	movq	8(%rbx), %rsi
	movq	24(%rbx), %r12
	addq	$8, %rbx
	leaq	(%rsi,%r14), %rcx
	movq	(%r12), %rax
	cmpq	%rax, %rcx
	jbe	LBB0_5
## %bb.4:
	xorl	%r14d, %r14d
	subq	%rsi, %rax
	cmovaeq	%rax, %r14
	movq	_bfd_error_file_truncated@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
	movq	(%rbx), %rsi
LBB0_5:
	addq	8(%r12), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_memcpy
	jmp	LBB0_11
LBB0_6:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*(%rcx)
	movq	%rax, %r14
	cmpq	$-1, %rax
	jne	LBB0_10
## %bb.8:
	movq	$-1, %r14
	jmp	LBB0_12
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	addq	$8, %rbx
LBB0_11:
	addq	%r14, (%rbx)
LBB0_12:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BFD_IN_MEMORY,4,2              ## @BFD_IN_MEMORY
	.comm	_bfd_error_file_truncated,4,2   ## @bfd_error_file_truncated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_bread                      ; -- Begin function bfd_bread
	.p2align	2
_bfd_bread:                             ; @bfd_bread
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	cmp	x8, x20
	csel	x20, x8, x20, lo
LBB0_2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _BFD_IN_MEMORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BFD_IN_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]!
	ldr	x22, [x19, #16]
	ldr	x9, [x22]
	add	x10, x8, x20
	cmp	x10, x9
	b.ls	LBB0_5
; %bb.4:
	subs	x8, x9, x8
	csel	x20, xzr, x8, lo
Lloh3:
	adrp	x8, _bfd_error_file_truncated@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bfd_error_file_truncated@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_bfd_set_error
	ldr	x8, [x19]
LBB0_5:
	ldr	x9, [x22, #8]
	add	x1, x8, x9
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	mov	x20, x0
	cmn	x0, #1
	b.ne	LBB0_9
	b	LBB0_11
LBB0_8:
	mov	x20, #0
LBB0_9:
	add	x19, x19, #8
LBB0_10:
	ldr	x8, [x19]
	add	x8, x8, x20
	str	x8, [x19]
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BFD_IN_MEMORY,4,2              ; @BFD_IN_MEMORY
	.comm	_bfd_error_file_truncated,4,2   ; @bfd_error_file_truncated
.subsections_via_symbols
