	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_calc_check_sum
_t4_calc_check_sum:                     ## @t4_calc_check_sum
	.cfi_startproc
## %bb.0:
	leaq	(%rdx,%rsi), %rcx
	xorl	%eax, %eax
	cmpq	$49, %rcx
	ja	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	leaq	(%rdi,%rsi,8), %r9
	movl	$255, %esi
	xorl	%edi, %edi
	movl	$255, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpq	$20, %rdx
	movl	$20, %r8d
	cmovbq	%rdx, %r8
	leaq	1(%r8), %rax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	(%r9,%rdi,8), %ecx
	addl	%ecx, %esi
	incq	%rdi
	decq	%rax
	cmpq	$1, %rax
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%cl, %eax
	sarl	$8, %ecx
	addl	%eax, %ecx
	movzbl	%sil, %eax
	sarl	$8, %esi
	addl	%eax, %esi
	subq	%r8, %rdx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_2:
	movl	$255, %ecx
	movl	$255, %esi
LBB0_7:
	movzbl	%cl, %eax
	sarl	$8, %ecx
	addl	%eax, %ecx
	movl	%esi, %eax
	shll	$8, %eax
	movzwl	%ax, %eax
	addl	%esi, %eax
	andl	$-256, %eax
	orl	%ecx, %eax
	popq	%rbp
LBB0_8:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_t4_calc_check_sum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_calc_check_sum
_t4_calc_check_sum:                     ; @t4_calc_check_sum
	.cfi_startproc
; %bb.0:
	add	x8, x2, x1
	cmp	x8, #49
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	cbz	x2, LBB0_7
; %bb.3:
	mov	x11, #0
	mov	w8, #255
	mov	w10, #20
	mov	w9, #255
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	x2, #20
	csel	x12, x2, x10, lo
	add	x13, x1, x11
	add	x11, x11, x12
	add	x13, x0, x13, lsl #3
	mov	x14, x12
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x13], #8
	add	w9, w9, w15
	add	w8, w9, w8
	subs	x14, x14, #1
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w13, w9, #8
	add	w9, w13, w9, uxtb
	asr	w13, w8, #8
	add	w8, w13, w8, uxtb
	subs	x2, x2, x12
	b.ne	LBB0_4
	b	LBB0_8
LBB0_7:
	mov	w9, #255
	mov	w8, #255
LBB0_8:
	asr	w10, w9, #8
	add	w9, w10, w9, uxtb
	ubfiz	w10, w8, #8, #8
	add	w8, w10, w8
	and	w8, w8, #0xffffff00
	orr	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_t4_calc_check_sum
.subsections_via_symbols
