	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csum2                          ## -- Begin function csum2
	.p2align	4, 0x90
_csum2:                                 ## @csum2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	movl	$65560, %eax                    ## imm = 0x10018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -65592(%rbp)              ## 8-byte Spill
	movq	%rsi, %r15
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-65584(%rbp), %r12
	movq	%r12, %rsi
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	%eax, %ebx
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_2
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	leal	-1(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rcx
	movl	%eax, %edx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	movq	%rcx, %r8
	andq	$-4, %r8
	movd	%r14d, %xmm0
	leaq	-4(%r8), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, %rsi
	andq	$-2, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	pshufd	$232, -65584(%rbp,%rdi,8), %xmm2 ## xmm2 = mem[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, -65568(%rbp,%rdi,8), %xmm3 ## xmm3 = mem[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, -65552(%rbp,%rdi,8), %xmm0 ## xmm0 = mem[0,2,2,3]
	pshufd	$232, -65536(%rbp,%rdi,8), %xmm1 ## xmm1 = mem[0,2,2,3]
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, %dl
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	pshufd	$232, -65584(%rbp,%rdi,8), %xmm2 ## xmm2 = mem[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, -65568(%rbp,%rdi,8), %xmm2 ## xmm2 = mem[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r14d
	cmpq	%r8, %rcx
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	-65584(,%r8,8), %rcx
	addq	%rbp, %rcx
	movl	%eax, %edx
	subl	%r8d, %edx
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	(%rcx,%rsi,8), %r14d
	incq	%rsi
	cmpl	%esi, %edx
	jne	LBB0_17
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	testb	$1, %dl
	jne	LBB0_13
	jmp	LBB0_14
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_2:
	testl	%eax, %eax
	js	LBB0_3
## %bb.18:
	movzwl	%r14w, %eax
	sarl	$16, %r14d
	addl	%eax, %r14d
	movzwl	%r14w, %eax
	sarl	$16, %r14d
	addl	%eax, %r14d
	movl	%r14d, (%r15)
	movq	-65592(%rbp), %rax              ## 8-byte Reload
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_3:
	movl	$1, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$65560, %rsp                    ## imm = 0x10018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csum2                          ; -- Begin function csum2
	.p2align	2
_csum2:                                 ; @csum2
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w9, #16
	movk	w9, #1, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #16, lsl #12            ; =65536
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x23, sp, #8
	add	x1, sp, #8
	mov	w2, #65536
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w22, #0
	mov	w25, #0
	add	x24, x23, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w0, w22
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #65536
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	sub	w8, w0, #1
	cmp	w8, #7
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, sp, #8
	mov	x9, x0
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x8, #1
	and	x11, x10, #0x1fffffff8
	add	x8, x23, x11, lsl #3
	movi	d0, #0000000000000000
	mov.s	v0[0], w25
	sub	w9, w0, w11
	movi.2d	v1, #0000000000000000
	mov	x12, x11
	mov	x13, x24
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w25, s0
	cmp	x10, x11
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x8], #8
	add	w25, w25, w10
	subs	w9, w9, #1
	b.ne	LBB0_8
	b	LBB0_2
LBB0_9:
	mov	w25, #0
	mov	w22, #0
LBB0_10:
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	w0, #0
	asr	w8, w25, #16
	add	w8, w8, w25, uxth
	asr	w9, w8, #16
	add	w8, w9, w8, uxth
	str	w8, [x20]
	str	w22, [x19]
	b	LBB0_13
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #16, lsl #12            ; =65536
	add	sp, sp, #16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
