	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getCheckSum
_getCheckSum:                           ## @getCheckSum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	testl	%esi, %esi
	jle	LBB0_5
## %bb.2:
	movl	%esi, %eax
	cmpl	$8, %esi
	jae	LBB0_6
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
LBB0_5:
	xorl	%edx, %edx
	jmp	LBB0_21
LBB0_6:
	cmpl	$32, %esi
	jae	LBB0_8
## %bb.7:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_17
LBB0_8:
	movl	%eax, %ecx
	andl	$-32, %ecx
	leaq	-32(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$5, %rdx
	incq	%rdx
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$96, %rsi
	jae	LBB0_10
## %bb.9:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	jmp	LBB0_12
LBB0_10:
	andq	$-4, %rdx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rsi), %xmm2
	paddb	%xmm0, %xmm2
	movdqu	16(%rdi,%rsi), %xmm0
	paddb	%xmm1, %xmm0
	movdqu	32(%rdi,%rsi), %xmm1
	movdqu	48(%rdi,%rsi), %xmm3
	movdqu	64(%rdi,%rsi), %xmm4
	paddb	%xmm1, %xmm4
	paddb	%xmm2, %xmm4
	movdqu	80(%rdi,%rsi), %xmm2
	paddb	%xmm3, %xmm2
	paddb	%xmm0, %xmm2
	movdqu	96(%rdi,%rsi), %xmm0
	paddb	%xmm4, %xmm0
	movdqu	112(%rdi,%rsi), %xmm1
	paddb	%xmm2, %xmm1
	subq	$-128, %rsi
	addq	$-4, %rdx
	jne	LBB0_11
LBB0_12:
	testq	%r8, %r8
	je	LBB0_15
## %bb.13:
	leaq	(%rsi,%rdi), %rdx
	addq	$16, %rdx
	shlq	$5, %r8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx,%rsi), %xmm2
	paddb	%xmm2, %xmm0
	movdqu	(%rdx,%rsi), %xmm2
	paddb	%xmm2, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_14
LBB0_15:
	paddb	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddb	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	psadbw	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%rax, %rcx
	je	LBB0_21
## %bb.16:
	testb	$24, %al
	je	LBB0_20
LBB0_17:
	movq	%rcx, %rsi
	movl	%eax, %ecx
	andl	$-8, %ecx
	movzbl	%dl, %edx
	movd	%edx, %xmm0
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rsi), %xmm1              ## xmm1 = mem[0],zero
	paddb	%xmm1, %xmm0
	addq	$8, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_18
## %bb.19:
	pxor	%xmm1, %xmm1
	psadbw	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%rax, %rcx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	addb	(%rdi,%rcx), %dl
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_20
LBB0_21:
	movsbl	%dl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid pointer provided!\n"

	.no_dead_strip	_getCheckSum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getCheckSum
_getCheckSum:                           ; @getCheckSum
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w1, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w8, w1
	cmp	w1, #8
	b.hs	LBB0_6
; %bb.3:
	mov	x9, #0
	mov	w10, #0
	b	LBB0_15
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
LBB0_5:
	mov	w10, #0
	b	LBB0_17
LBB0_6:
	cmp	w1, #64
	b.hs	LBB0_8
; %bb.7:
	mov	w10, #0
	mov	x9, #0
	b	LBB0_12
LBB0_8:
	and	x9, x8, #0xffffffc0
	add	x10, x0, #32
	movi.2d	v0, #0000000000000000
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	add.16b	v0, v4, v0
	add.16b	v1, v5, v1
	add.16b	v2, v6, v2
	add.16b	v3, v7, v3
	subs	x11, x11, #64
	b.ne	LBB0_9
; %bb.10:
	add.16b	v0, v1, v0
	add.16b	v0, v2, v0
	add.16b	v0, v3, v0
	addv.16b	b0, v0
	fmov	w10, s0
	cmp	x9, x8
	b.eq	LBB0_17
; %bb.11:
	tst	x8, #0x38
	b.eq	LBB0_15
LBB0_12:
	mov	x11, x9
	and	x9, x8, #0xfffffff8
	movi	d0, #0000000000000000
	mov.b	v0[0], w10
	add	x10, x0, x11
	sub	x11, x11, x9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x10], #8
	add.8b	v0, v1, v0
	adds	x11, x11, #8
	b.ne	LBB0_13
; %bb.14:
	addv.8b	b0, v0
	fmov	w10, s0
	cmp	x9, x8
	b.eq	LBB0_17
LBB0_15:
	add	x11, x0, x9
	sub	x8, x8, x9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x11], #1
	add	w10, w9, w10
	subs	x8, x8, #1
	b.ne	LBB0_16
LBB0_17:
	sxtb	w0, w10
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid pointer provided!\n"

	.no_dead_strip	_getCheckSum
.subsections_via_symbols
