	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getFileCrc                     ## -- Begin function getFileCrc
	.p2align	4, 0x90
_getFileCrc:                            ## @getFileCrc
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	_ZIP_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_FOPEN_FUNC
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ZIP_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_2:
	cmpl	(%rbx), %r12d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movq	%rax, %r14
	movq	%rax, %rcx
	callq	_fread
	movq	%rax, %r13
	movslq	%r13d, %r12
	shlq	$32, %r13
	cmpq	%r15, %r12
	jae	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf
	movq	_ZIP_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%r13, %r13
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_crc32
	movq	%rax, %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	_ZIP_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_5
	jmp	LBB0_11
LBB0_3:
	xorl	%ebx, %ebx
LBB0_11:
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movq	%rax, %rdi
	callq	_fclose
LBB0_13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	leaq	L_.str.2(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_OK,4,2                     ## @ZIP_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_ZIP_ERRNO,4,2                  ## @ZIP_ERRNO
L_.str.1:                               ## @.str.1
	.asciz	"error in reading %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"file %s crc %lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getFileCrc                     ; -- Begin function getFileCrc
	.p2align	2
_getFileCrc:                            ; @getFileCrc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _ZIP_OK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ZIP_OK@GOTPAGEOFF]
	ldr	w21, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_FOPEN_FUNC
	mov	x22, x0
Lloh4:
	adrp	x20, _ZIP_ERRNO@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ZIP_ERRNO@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	x0, #0
	csel	w21, w8, w21, eq
	ldr	w8, [x26]
	cmp	w21, w8
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	mov	x25, #0
	b.ne	LBB0_6
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	w1, #1
	mov	x2, x23
	mov	x3, x22
	bl	_fread
	mov	x28, x0
	sxtw	x27, w0
	cmp	x27, x23
	b.hs	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_feof
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
	ldr	w21, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	lsl	x8, x28, #32
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	mov	x1, x24
	mov	x2, x27
	bl	_crc32
	mov	x25, x0
	ldr	w8, [x26]
	cmp	w21, w8
	b.eq	LBB0_1
LBB0_6:
	cbz	x22, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_fclose
LBB0_8:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x25, [x8]
	str	x25, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_OK,4,2                     ; @ZIP_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_ZIP_ERRNO,4,2                  ; @ZIP_ERRNO
l_.str.1:                               ; @.str.1
	.asciz	"error in reading %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"file %s crc %lx\n"

.subsections_via_symbols
