	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_crc                        ## -- Begin function set_crc
	.p2align	4, 0x90
_set_crc:                               ## @set_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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FILEBLK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testl	%r15d, %r15d
	js	LBB0_14
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rax
	cmpq	%r12, %rax
	cmovlq	%rax, %r12
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_15
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%rcx, %r13
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_16
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movl	%eax, %ecx
	cmpl	$4, %eax
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %eax
	andl	$-4, %eax
	movq	%r14, %xmm0
	leaq	-4(%rax), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, %rdi
	andq	$-2, %rdi
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	pmovzxbq	(%rbx,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm0, %xmm2
	pmovzxbq	2(%rbx,%rsi), %xmm3             ## xmm3 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm1, %xmm3
	pmovzxbq	4(%rbx,%rsi), %xmm0             ## xmm0 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	pmovzxbq	6(%rbx,%rsi), %xmm1             ## xmm1 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %dl
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	pmovzxbq	(%rbx,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm2, %xmm0
	pmovzxbq	2(%rbx,%rsi), %xmm2             ## xmm2 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm2, %xmm1
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r14
	cmpq	%rcx, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%rax), %edx
	addq	%rdx, %r14
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_12
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	testb	$1, %dl
	jne	LBB0_10
	jmp	LBB0_11
LBB0_14:
	movq	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_15:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
LBB0_16:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	cmpq	16(%r12), %r13
	jne	LBB0_21
## %bb.17:
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_22
## %bb.18:
	movq	24(%r12), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_23
## %bb.19:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_25
## %bb.20:
	movq	%r14, (%r12)
	jmp	LBB0_28
LBB0_21:
	movl	8(%r12), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_24
LBB0_22:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_26
LBB0_23:
	movl	8(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_24:
	movl	$1, %edi
	callq	_paxwarn
	jmp	LBB0_27
LBB0_25:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.3(%rip), %rdx
LBB0_26:
	movl	$1, %edi
	callq	_syswarn
LBB0_27:
	movl	$-1, %ebx
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FILEBLK,4,2                    ## @FILEBLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File changed size %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Failed stat on %s"

L_.str.2:                               ## @.str.2
	.asciz	"File %s was modified during read"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"File rewind failed on: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_crc                        ; -- Begin function set_crc
	.p2align	2
_set_crc:                               ; @set_crc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x1
	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, #-56]
Lloh3:
	adrp	x8, _FILEBLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILEBLK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	tbnz	w1, #31, LBB0_17
; %bb.1:
	ldr	x9, [x19, #32]
	cmp	x9, x8
	csel	x22, x9, x8, lt
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.2:
	mov	x24, #0
	mov	x23, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, x8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	mov	w8, w0
	cmp	w0, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	b	LBB0_15
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #16
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	x9, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.d	v1[0], x24
	mov	x10, x9
	mov	x11, x21
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v5, #0000000000000000
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q16, [x11], #16
	ushll.8h	v17, v16, #0
	ushll.4s	v18, v17, #0
	ushll2.8h	v16, v16, #0
	ushll2.4s	v19, v16, #0
	ushll2.4s	v17, v17, #0
	ushll.4s	v16, v16, #0
	uaddw2.2d	v2, v2, v17
	uaddw2.2d	v4, v4, v16
	uaddw.2d	v6, v6, v16
	uaddw.2d	v3, v3, v17
	uaddw2.2d	v0, v0, v18
	uaddw.2d	v7, v7, v19
	uaddw.2d	v1, v1, v18
	uaddw2.2d	v5, v5, v19
	subs	x10, x10, #16
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add.2d	v1, v1, v6
	add.2d	v3, v3, v7
	add.2d	v1, v1, v3
	add.2d	v0, v0, v4
	add.2d	v2, v2, v5
	add.2d	v0, v0, v2
	add.2d	v0, v1, v0
	addp.2d	d0, v0
	fmov	x24, d0
	cmp	x9, x8
	b.eq	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	tbz	w8, #3, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x9
	and	x9, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.d	v1[0], x24
	add	x10, x21, x11
	sub	x11, x11, x9
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d4, [x10], #8
	ushll.8h	v4, v4, #0
	ushll.4s	v5, v4, #0
	ushll2.4s	v4, v4, #0
	uaddw2.2d	v3, v3, v4
	uaddw.2d	v2, v2, v4
	uaddw2.2d	v0, v0, v5
	uaddw.2d	v1, v1, v5
	adds	x11, x11, #8
	b.ne	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	add.2d	v1, v1, v2
	add.2d	v0, v0, v3
	add.2d	v0, v1, v0
	addp.2d	d0, v0
	fmov	x24, d0
	cmp	x9, x8
	b.eq	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x21, x9
	sub	x9, x8, x9
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x10], #1
	add	x24, x24, x11
	subs	x9, x9, #1
	b.ne	LBB0_16
	b	LBB0_3
LBB0_17:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_31
LBB0_18:
	mov	x23, #0
	mov	x24, #0
LBB0_19:
	ldr	x8, [x19, #16]
	cmp	x23, x8
	b.ne	LBB0_24
; %bb.20:
	sub	x1, x29, #64
	mov	x0, x20
	bl	_fstat
	tbnz	x0, #63, LBB0_25
; %bb.21:
	ldr	x8, [x19, #24]
	ldur	x9, [x29, #-64]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.22:
Lloh8:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_lseek
	tbnz	x0, #63, LBB0_28
; %bb.23:
	mov	w0, #0
	str	x24, [x19]
	b	LBB0_31
LBB0_24:
	ldr	w2, [x19, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_27
LBB0_25:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_29
LBB0_26:
	ldr	w2, [x19, #8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_27:
	mov	w0, #1
	bl	_paxwarn
	b	LBB0_30
LBB0_28:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_29:
	mov	w0, #1
	bl	_syswarn
LBB0_30:
	mov	w0, #-1
LBB0_31:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	sub	sp, x29, #48
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_FILEBLK,4,2                    ; @FILEBLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File changed size %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Failed stat on %s"

l_.str.2:                               ; @.str.2
	.asciz	"File %s was modified during read"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"File rewind failed on: %s"

.subsections_via_symbols
