	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_tar_checksum
_phar_tar_checksum:                     ## @phar_tar_checksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	cmpq	$8, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	movq	%rdi, %rdx
	jmp	LBB0_19
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_21
LBB0_4:
	cmpq	$32, %rsi
	jae	LBB0_9
## %bb.5:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_9:
	movq	%rsi, %rax
	andq	$-32, %rax
	leaq	-32(%rax), %rdx
	movq	%rdx, %rcx
	shrq	$5, %rcx
	incq	%rcx
	movl	%ecx, %r8d
	andl	$3, %r8d
	cmpq	$96, %rdx
	jae	LBB0_11
## %bb.10:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	jmp	LBB0_13
LBB0_11:
	andq	$-4, %rcx
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rdx), %xmm2
	paddb	%xmm0, %xmm2
	movdqu	16(%rdi,%rdx), %xmm0
	paddb	%xmm1, %xmm0
	movdqu	32(%rdi,%rdx), %xmm1
	movdqu	48(%rdi,%rdx), %xmm3
	movdqu	64(%rdi,%rdx), %xmm4
	paddb	%xmm1, %xmm4
	paddb	%xmm2, %xmm4
	movdqu	80(%rdi,%rdx), %xmm2
	paddb	%xmm3, %xmm2
	paddb	%xmm0, %xmm2
	movdqu	96(%rdi,%rdx), %xmm0
	paddb	%xmm4, %xmm0
	movdqu	112(%rdi,%rdx), %xmm1
	paddb	%xmm2, %xmm1
	subq	$-128, %rdx
	addq	$-4, %rcx
	jne	LBB0_12
LBB0_13:
	testq	%r8, %r8
	je	LBB0_16
## %bb.14:
	leaq	(%rdx,%rdi), %rcx
	addq	$16, %rcx
	shlq	$5, %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rcx,%rdx), %xmm2
	paddb	%xmm2, %xmm0
	movdqu	(%rcx,%rdx), %xmm2
	paddb	%xmm2, %xmm1
	addq	$32, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_15
LBB0_16:
	paddb	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddb	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	psadbw	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%rsi, %rax
	je	LBB0_21
## %bb.17:
	testb	$24, %sil
	je	LBB0_18
LBB0_6:
	movq	%rsi, %r8
	andq	$-8, %r8
	leaq	(%rdi,%r8), %rdx
	movzbl	%cl, %ecx
	movd	%ecx, %xmm0
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rax), %xmm1              ## xmm1 = mem[0],zero
	paddb	%xmm1, %xmm0
	addq	$8, %rax
	cmpq	%rax, %r8
	jne	LBB0_7
## %bb.8:
	pxor	%xmm1, %xmm1
	psadbw	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%rsi, %r8
	jne	LBB0_19
	jmp	LBB0_21
LBB0_18:
	addq	%rdi, %rax
	movq	%rax, %rdx
LBB0_19:
	addq	%rsi, %rdi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	addb	(%rdx), %cl
	incq	%rdx
	cmpq	%rdi, %rdx
	jne	LBB0_20
LBB0_21:
	movzbl	%cl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_phar_tar_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_tar_checksum
_phar_tar_checksum:                     ; @phar_tar_checksum
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_3
; %bb.1:
	cmp	x1, #8
	b.hs	LBB0_4
; %bb.2:
	mov	w9, #0
	mov	x10, x0
	b	LBB0_14
LBB0_3:
	and	w0, wzr, #0xff
	ret
LBB0_4:
	cmp	x1, #64
	b.hs	LBB0_6
; %bb.5:
	mov	w9, #0
	mov	x8, #0
	b	LBB0_10
LBB0_6:
	and	x8, x1, #0xffffffffffffffc0
	add	x9, x0, #32
	movi.2d	v0, #0000000000000000
	mov	x10, x8
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	add.16b	v0, v4, v0
	add.16b	v1, v5, v1
	add.16b	v2, v6, v2
	add.16b	v3, v7, v3
	subs	x10, x10, #64
	b.ne	LBB0_7
; %bb.8:
	add.16b	v0, v1, v0
	add.16b	v0, v2, v0
	add.16b	v0, v3, v0
	addv.16b	b0, v0
	fmov	w9, s0
	cmp	x8, x1
	b.eq	LBB0_16
; %bb.9:
	tst	x1, #0x38
	b.eq	LBB0_13
LBB0_10:
	and	x11, x1, #0xfffffffffffffff8
	add	x10, x0, x11
	movi	d0, #0000000000000000
	mov.b	v0[0], w9
	add	x9, x0, x8
	sub	x8, x8, x11
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x9], #8
	add.8b	v0, v1, v0
	adds	x8, x8, #8
	b.ne	LBB0_11
; %bb.12:
	addv.8b	b0, v0
	fmov	w9, s0
	cmp	x11, x1
	b.ne	LBB0_14
	b	LBB0_16
LBB0_13:
	add	x10, x0, x8
LBB0_14:
	add	x8, x0, x1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10], #1
	add	w9, w11, w9
	cmp	x10, x8
	b.ne	LBB0_15
LBB0_16:
	and	w0, w9, #0xff
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_phar_tar_checksum
.subsections_via_symbols
