	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crc32file                      ## -- Begin function crc32file
	.p2align	4, 0x90
_crc32file:                             ## @crc32file
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, (%rdx)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	cmpl	(%r14), %eax
	je	LBB0_5
## %bb.2:
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	(%r12)
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_UPDC32
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_getc
	cmpl	(%r14), %eax
	jne	LBB0_3
## %bb.4:
	notl	%ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	%r13, %rdi
	callq	_fclose
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	_Success_@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_perror
	movq	_Error_@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_perror
	movq	$-1, (%r12)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_Error_,4,2                     ## @Error_
	.comm	_EOF,4,2                        ## @EOF
	.comm	_Success_,4,2                   ## @Success_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crc32file                      ; -- Begin function crc32file
	.p2align	2
_crc32file:                             ; @crc32file
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	str	xzr, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x0
	bl	_getc
Lloh2:
	adrp	x24, _EOF@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w23, #0
	b	LBB0_6
LBB0_3:
	mov	w23, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	mov	x1, x23
	bl	_UPDC32
	mov	x23, x0
	mov	x0, x22
	bl	_getc
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.5:
	mvn	w23, w23
LBB0_6:
	mov	x0, x22
	bl	_ferror
	cbnz	x0, LBB0_10
LBB0_7:
	mov	x0, x22
	bl	_fclose
	str	w23, [x19]
Lloh4:
	adrp	x8, _Success_@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Success_@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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_9:
	mov	x0, x21
	bl	_perror
Lloh6:
	adrp	x8, _Error_@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Error_@GOTPAGEOFF]
	b	LBB0_8
LBB0_10:
	mov	x0, x21
	bl	_perror
	mov	x8, #-1
	str	x8, [x20]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_Error_,4,2                     ; @Error_
	.comm	_EOF,4,2                        ; @EOF
	.comm	_Success_,4,2                   ; @Success_
.subsections_via_symbols
