	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs_calc_buf_sum_ds             ## -- Begin function cs_calc_buf_sum_ds
	.p2align	4, 0x90
_cs_calc_buf_sum_ds:                    ## @cs_calc_buf_sum_ds
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_crctab@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpl	$1, %esi
	jne	LBB0_16
## %bb.3:
	xorl	%r11d, %r11d
	jmp	LBB0_4
LBB0_1:
	xorl	%r11d, %r11d
	jmp	LBB0_6
LBB0_16:
	movl	%esi, %r9d
	andl	$-2, %r9d
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r11, %r10
	shlq	$8, %r10
	shrl	$24, %r11d
	movzbl	(%rdi), %eax
	xorq	%r11, %rax
	xorq	(%r8,%rax,8), %r10
	movq	%r10, %r11
	shlq	$8, %r11
	shrl	$24, %r10d
	movzbl	1(%rdi), %eax
	addq	$2, %rdi
	xorq	%r10, %rax
	xorq	(%r8,%rax,8), %r11
	addl	$-2, %r9d
	jne	LBB0_17
LBB0_4:
	testb	$1, %sil
	je	LBB0_6
## %bb.5:
	movq	%r11, %r9
	shlq	$8, %r9
	shrl	$24, %r11d
	movzbl	(%rdi), %edi
	xorq	%r11, %rdi
	xorq	(%r8,%rdi,8), %r9
	movq	%r9, %r11
LBB0_6:
	addl	%ecx, %esi
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.10:
	movq	_crctab@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r8
	testb	$1, %cl
	jne	LBB0_12
## %bb.11:
                                        ## implicit-def: $rdi
	movl	%ecx, %r9d
	cmpl	$1, %ecx
	jne	LBB0_14
	jmp	LBB0_8
LBB0_7:
	movq	%r11, %rdi
	jmp	LBB0_8
LBB0_12:
	leal	-1(%rcx), %r9d
	movq	%r11, %rdi
	shlq	$8, %rdi
	shrl	$24, %r11d
	movzbl	(%rdx), %r10d
	incq	%rdx
	xorq	%r11, %r10
	xorq	(%r8,%r10,8), %rdi
	movq	%rdi, %r11
	cmpl	$1, %ecx
	je	LBB0_8
LBB0_14:
	movl	%r9d, %r9d
	xorl	%r10d, %r10d
	movq	%r11, %rdi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rax
	shlq	$8, %rax
	shrl	$24, %edi
	movzbl	(%rdx,%r10), %ecx
	xorq	%rdi, %rcx
	xorq	(%r8,%rcx,8), %rax
	movq	%rax, %rdi
	shlq	$8, %rdi
	shrl	$24, %eax
	movzbl	1(%rdx,%r10), %ecx
	xorq	%rax, %rcx
	xorq	(%r8,%rcx,8), %rdi
	addq	$2, %r10
	cmpl	%r10d, %r9d
	jne	LBB0_15
LBB0_8:
	testl	%esi, %esi
	je	LBB0_9
## %bb.18:
	movslq	%esi, %rcx
	movq	_crctab@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rcx, %rsi
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	shlq	$8, %rax
	shrl	$24, %edi
	xorl	%ecx, %edi
	movzbl	%dil, %edi
	xorq	(%rdx,%rdi,8), %rax
	shrq	$8, %rsi
	movq	%rax, %rdi
	cmpq	$255, %rcx
	movq	%rsi, %rcx
	ja	LBB0_19
	jmp	LBB0_20
LBB0_9:
	movq	%rdi, %rax
LBB0_20:
	notl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crctab,8,3                     ## @crctab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs_calc_buf_sum_ds             ; -- Begin function cs_calc_buf_sum_ds
	.p2align	2
_cs_calc_buf_sum_ds:                    ; @cs_calc_buf_sum_ds
	.cfi_startproc
; %bb.0:
	add	w8, w3, w1
	sxtw	x9, w8
Lloh0:
	adrp	x10, _crctab@GOTPAGE
Lloh1:
	ldr	x10, [x10, _crctab@GOTPAGEOFF]
	mov	x8, #0
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x11, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x0], #1
	ubfx	x13, x8, #24, #8
	eor	x12, x13, x12
	ldr	x12, [x11, x12, lsl #3]
	eor	x8, x12, x8, lsl #8
	subs	w1, w1, #1
	b.ne	LBB0_2
LBB0_3:
	cbz	w3, LBB0_6
; %bb.4:
	ldr	x11, [x10]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x2], #1
	ubfx	x13, x8, #24, #8
	eor	x12, x13, x12
	ldr	x12, [x11, x12, lsl #3]
	eor	x8, x12, x8, lsl #8
	subs	w3, w3, #1
	b.ne	LBB0_5
LBB0_6:
	cbz	w9, LBB0_9
; %bb.7:
	ldr	x10, [x10]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	eor	w11, w9, w8, lsr #24
	and	x11, x11, #0xff
	ldr	x11, [x10, x11, lsl #3]
	eor	x8, x11, x8, lsl #8
	lsr	x11, x9, #8
	cmp	x9, #255
	mov	x9, x11
	b.hi	LBB0_8
LBB0_9:
	mvn	w0, w8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_crctab,8,3                     ; @crctab
.subsections_via_symbols
