	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_file_crc                   ## -- Begin function get_file_crc
	.p2align	4, 0x90
_get_file_crc:                          ## @get_file_crc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FILE_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_BLOCK_FLAG_HAVEHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movl	20(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	movl	20(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errmsg
	movl	$-1, %r15d
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_4:
	movl	$0, 16(%r12)
	movq	8(%r12), %r14
	xorl	%r15d, %r15d
	testq	%r14, %r14
	je	LBB0_10
## %bb.5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r14
	cmovbq	%r14, %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	movq	%rax, %r15
	movq	%rax, %rcx
	callq	_fread
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_update_crc
	subq	%rbx, %r14
	movq	%r15, %rax
	jne	LBB0_6
## %bb.9:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errmsg
	movq	%r15, %rax
	movl	$-1, %r15d
LBB0_10:
	movq	%rax, %rdi
	callq	_fclose
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FILE_BUF_LEN,4,2               ## @FILE_BUF_LEN
	.comm	_BLOCK_FLAG_HAVEHDR,4,2         ## @BLOCK_FLAG_HAVEHDR
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"unable to open file %s"

L_.str.2:                               ## @.str.2
	.asciz	"unable to read from file %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_file_crc                   ; -- Begin function get_file_crc
	.p2align	2
_get_file_crc:                          ; @get_file_crc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _FILE_BUF_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILE_BUF_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x21, x8, #2
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x7fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _BLOCK_FLAG_HAVEHDR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BLOCK_FLAG_HAVEHDR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh11:
	adrp	x24, _errno@GOTPAGE
Lloh12:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	ldr	w0, [x19, #20]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	ldr	x8, [x24]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w2, [x19, #20]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errmsg
	mov	w19, #-1
	b	LBB0_10
LBB0_3:
	mov	w19, #0
	b	LBB0_10
LBB0_4:
	mov	x20, x0
	mov	x23, x19
	str	wzr, [x23, #16]!
	ldur	x25, [x23, #-8]
	cbz	x25, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x25, x21
	csel	x21, x25, x21, lo
	str	xzr, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #1
	mov	x3, x20
	bl	_fread
	ldr	x8, [x24]
	cbnz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_update_crc
	subs	x25, x25, x21
	b.ne	LBB0_5
LBB0_7:
	mov	w19, #0
	b	LBB0_9
LBB0_8:
	ldr	w2, [x19, #20]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errmsg
	mov	w19, #-1
LBB0_9:
	mov	x0, x20
	bl	_fclose
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FILE_BUF_LEN,4,2               ; @FILE_BUF_LEN
	.comm	_BLOCK_FLAG_HAVEHDR,4,2         ; @BLOCK_FLAG_HAVEHDR
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"unable to open file %s"

l_.str.2:                               ; @.str.2
	.asciz	"unable to read from file %s"

.subsections_via_symbols
