	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XzCheck_Final                  ## -- Begin function XzCheck_Final
	.p2align	4, 0x90
_XzCheck_Final:                         ## @XzCheck_Final
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	cmpl	$130, %ecx
	jne	LBB0_7
## %bb.3:
	movl	12(%rdi), %edi
	callq	_CRC_GET_DIGEST
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SetUi32
	jmp	LBB0_6
LBB0_5:
	addq	$4, %rdi
	movq	%rbx, %rsi
	callq	_Sha256_Final
	jmp	LBB0_6
LBB0_4:
	movl	8(%rdi), %edi
	callq	_CRC64_GET_DIGEST
	movzbl	%al, %ecx
	movl	%ecx, (%rbx)
	movzbl	%ah, %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, %ecx
	shrl	$24, %ecx
	movl	%ecx, 12(%rbx)
	sarl	$31, %eax
	movzbl	%al, %eax
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 16(%rbx)
LBB0_6:
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function XzCheck_Final
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_XzCheck_Final
	.p2align	2
_XzCheck_Final:                         ; @XzCheck_Final
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x0, #12]
	bl	_CRC_GET_DIGEST
	mov	x1, x0
	mov	x0, x19
	bl	_SetUi32
	b	LBB0_6
LBB0_4:
	add	x0, x0, #4
	mov	x1, x19
	bl	_Sha256_Final
	b	LBB0_6
LBB0_5:
	ldr	w0, [x0, #8]
	bl	_CRC64_GET_DIGEST
	and	w8, w0, #0xff
	str	w8, [x19]
	dup.2s	v0, w0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x19, #4]
	lsr	w8, w0, #24
	str	w8, [x19, #12]
	asr	w8, w0, #31
	and	w8, w8, #0xff
	dup.4s	v0, w8
	str	q0, [x19, #16]
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
