	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_file                      ## -- Begin function read_file
	.p2align	4, 0x90
_read_file:                             ## @read_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_VEC_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	$0, (%rsi)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r13
	leaq	-1072(%rbp), %rdi
	movl	$1, %esi
	movl	$1024, %edx                     ## imm = 0x400
	movq	%rax, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-1072(%rbp), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_VEC_ADDMANY
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1024, %edx                     ## imm = 0x400
	movq	%r13, %rcx
	callq	_fread
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_6:
	movl	%r12d, %edi
	callq	_VEC_TOARRAY
	movq	%rax, %r14
	movl	%r12d, %edi
	callq	_VEC_LEN
	movq	%rax, (%r15)
	movl	%r12d, %edi
	callq	_VEC_CLEAR
LBB0_7:
	movq	%r13, %rdi
	callq	_fclose
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rax
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VEC_INIT,4,2                   ## @VEC_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"ERROR: could not open file '%s' for reading\n"

L_.str.2:                               ## @.str.2
	.asciz	"ERROR: read error on file '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_file                      ; -- Begin function read_file
	.p2align	2
_read_file:                             ; @read_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1040
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _VEC_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VEC_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	str	xzr, [x1]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1024
	mov	x3, x19
	bl	_fread
	cbz	x0, LBB0_4
; %bb.2:
	mov	x2, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_VEC_ADDMANY
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1024
	mov	x3, x19
	bl	_fread
	mov	x2, x0
	cbnz	x0, LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_ferror
	cbz	x0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	mov	x20, #0
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	mov	x20, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	bl	_VEC_TOARRAY
	mov	x20, x0
	mov	x0, x22
	bl	_VEC_LEN
	str	x0, [x21]
	mov	x0, x22
	bl	_VEC_CLEAR
LBB0_8:
	mov	x0, x19
	bl	_fclose
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VEC_INIT,4,2                   ; @VEC_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"ERROR: could not open file '%s' for reading\n"

l_.str.2:                               ; @.str.2
	.asciz	"ERROR: read error on file '%s'\n"

.subsections_via_symbols
