	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atalk_sum_partial
_atalk_sum_partial:                     ## @atalk_sum_partial
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rax
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	testb	$1, %sil
	jne	LBB0_3
## %bb.2:
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_5
	jmp	LBB0_7
LBB0_3:
	leal	-1(%rsi), %r8d
	movzbl	(%rdi), %edx
	addq	%rax, %rdx
	leaq	(%rdx,%rdx), %rcx
	leal	1(%rcx), %eax
	testl	$32768, %edx                    ## imm = 0x8000
	movzwl	%ax, %eax
	cmoveq	%rcx, %rax
	incq	%rdi
	cmpl	$1, %esi
	je	LBB0_7
LBB0_5:
	movl	%r8d, %r8d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rdx), %esi
	addq	%rax, %rsi
	leaq	(%rsi,%rsi), %rax
	leal	1(%rax), %ecx
	testl	$32768, %esi                    ## imm = 0x8000
	movzwl	%cx, %ecx
	cmoveq	%rax, %rcx
	movzbl	1(%rdi,%rdx), %eax
	addq	%rcx, %rax
	leaq	(%rax,%rax), %rcx
	leal	1(%rcx), %esi
	testl	$32768, %eax                    ## imm = 0x8000
	movzwl	%si, %eax
	cmoveq	%rcx, %rax
	addq	$2, %rdx
	cmpl	%edx, %r8d
	jne	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_atalk_sum_partial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atalk_sum_partial
_atalk_sum_partial:                     ; @atalk_sum_partial
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0], #1
	add	x8, x2, x8
	lsl	x9, x8, #1
	mov	w10, #1
	bfi	x10, x8, #1, #15
	tst	x8, #0x8000
	csel	x2, x9, x10, eq
	sub	w1, w1, #1
	cbnz	w1, LBB0_1
LBB0_2:
	mov	x0, x2
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_atalk_sum_partial
.subsections_via_symbols
