	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_read
_file_read:                             ## @file_read
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	%rax, (%rdx)
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%rbx), %edi
	movq	(%rbx), %rsi
	movl	24(%rbx), %edx
	callq	_read
	movq	%rax, %r15
	testq	%rax, %rax
	jns	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rsi
	cmpq	(%r13), %rsi
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movq	_FNT_STDIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_9
LBB0_5:
	movq	_FNT_MBS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	20(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_8
LBB0_7:
	movl	16(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdx
LBB0_8:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_FNT_STDIN,8,3                  ## @FNT_STDIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading stdin"

	.comm	_FNT_MBS,8,3                    ## @FNT_MBS
L_.str.1:                               ## @.str.1
	.asciz	"Error reading '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"Error reading '%S'"

	.no_dead_strip	_file_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_read
_file_read:                             ; @file_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1]
	str	x8, [x2]
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x23, _EINTR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21]
	ldp	w2, w0, [x21, #24]
	bl	_read
	mov	x19, x0
	tbz	x0, #63, LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x22]
	ldr	x8, [x23]
	cmp	x1, x8
	b.eq	LBB0_1
; %bb.3:
	ldr	x8, [x21, #8]
Lloh4:
	adrp	x9, _FNT_STDIN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FNT_STDIN@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x9, _FNT_MBS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FNT_MBS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x21, #20]
	str	x8, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w8, [x21, #16]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_archive_set_error
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_FNT_STDIN,8,3                  ; @FNT_STDIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading stdin"

	.comm	_FNT_MBS,8,3                    ; @FNT_MBS
l_.str.1:                               ; @.str.1
	.asciz	"Error reading '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"Error reading '%S'"

	.no_dead_strip	_file_read
.subsections_via_symbols
