	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sha_check
_sha_check:                             ## @sha_check
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FILE_ATTRIBUTE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateFileW
	movq	%rax, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	movq	_FALSE@GOTPCREL(%rip), %r12
	cmpq	(%rax), %rbx
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_GetFileSize
	movl	%eax, %r14d
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMappingW
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_CloseHandle
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_MapViewOfFile
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_CloseHandle
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	leaq	-116(%rbp), %r15
	movq	%r15, %rdi
	callq	_A_SHAInit
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_A_SHAUpdate
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_A_SHAFinal
	movq	%rbx, %rdi
	callq	_UnmapViewOfFile
	movzbl	-64(%rbp), %edx
	leaq	L_.str(%rip), %rbx
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-110(%rbp), %rdi
	movzbl	-63(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-108(%rbp), %rdi
	movzbl	-62(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-106(%rbp), %rdi
	movzbl	-61(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-104(%rbp), %rdi
	movzbl	-60(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-102(%rbp), %rdi
	movzbl	-59(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-100(%rbp), %rdi
	movzbl	-58(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-98(%rbp), %rdi
	movzbl	-57(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-96(%rbp), %rdi
	movzbl	-56(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-94(%rbp), %rdi
	movzbl	-55(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-92(%rbp), %rdi
	movzbl	-54(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-90(%rbp), %rdi
	movzbl	-53(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-88(%rbp), %rdi
	movzbl	-52(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-86(%rbp), %rdi
	movzbl	-51(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-84(%rbp), %rdi
	movzbl	-50(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-82(%rbp), %rdi
	movzbl	-49(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-80(%rbp), %rdi
	movzbl	-48(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-78(%rbp), %rdi
	movzbl	-47(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-76(%rbp), %rdi
	movzbl	-46(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	leaq	-74(%rbp), %rdi
	movzbl	-45(%rbp), %edx
	movq	%rbx, %rsi
	callq	_sprintf
	movq	_addon@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	leaq	-112(%rbp), %rsi
	callq	_WARN
	jmp	LBB0_6
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %r12
LBB0_6:
	movl	(%r12), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_READONLY,4,2    ## @FILE_ATTRIBUTE_READONLY
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x"

	.comm	_addon,8,3                      ## @addon
L_.str.1:                               ## @.str.1
	.asciz	"Got %s, expected %s\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_sha_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sha_check
_sha_check:                             ; @sha_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _FILE_ATTRIBUTE_READONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE_ATTRIBUTE_READONLY@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFileW
Lloh12:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x1, #0
	bl	_GetFileSize
	mov	x19, x0
Lloh15:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMappingW
	mov	x21, x0
	mov	x0, x20
	bl	_CloseHandle
	cbz	x21, LBB0_5
; %bb.2:
Lloh18:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_MapViewOfFile
	mov	x20, x0
	mov	x0, x21
	bl	_CloseHandle
	cbz	x20, LBB0_5
; %bb.3:
	add	x0, sp, #4
	bl	_A_SHAInit
	add	x0, sp, #4
	mov	x1, x20
	mov	x2, x19
	bl	_A_SHAUpdate
	add	x0, sp, #4
	add	x1, sp, #52
	bl	_A_SHAFinal
	mov	x0, x20
	bl	_UnmapViewOfFile
	ldrb	w2, [sp, #52]
Lloh21:
	adrp	x19, l_.str@PAGE
Lloh22:
	add	x19, x19, l_.str@PAGEOFF
	add	x20, sp, #11
	add	x0, sp, #11
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #2
	ldrb	w2, [sp, #53]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #4
	ldrb	w2, [sp, #54]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #6
	ldrb	w2, [sp, #55]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #8
	ldrb	w2, [sp, #56]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #10
	ldrb	w2, [sp, #57]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #12
	ldrb	w2, [sp, #58]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #14
	ldrb	w2, [sp, #59]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #16
	ldrb	w2, [sp, #60]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #18
	ldrb	w2, [sp, #61]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #20
	ldrb	w2, [sp, #62]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #22
	ldrb	w2, [sp, #63]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #24
	ldrb	w2, [sp, #64]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #26
	ldrb	w2, [sp, #65]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #28
	ldrb	w2, [sp, #66]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #30
	ldrb	w2, [sp, #67]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #32
	ldrb	w2, [sp, #68]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #34
	ldrb	w2, [sp, #69]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #36
	ldrb	w2, [sp, #70]
	mov	x1, x19
	bl	_sprintf
	add	x0, x20, #38
	ldrb	w2, [sp, #71]
	mov	x1, x19
	bl	_sprintf
Lloh23:
	adrp	x19, _addon@GOTPAGE
Lloh24:
	ldr	x19, [x19, _addon@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w1, [x8]
	add	x0, sp, #11
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #11
	bl	_WARN
LBB0_5:
Lloh27:
	adrp	x8, _FALSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
Lloh32:
	adrp	x8, _TRUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_READONLY,4,2    ; @FILE_ATTRIBUTE_READONLY
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x"

	.comm	_addon,8,3                      ; @addon
l_.str.1:                               ; @.str.1
	.asciz	"Got %s, expected %s\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_sha_check
.subsections_via_symbols
