	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csum1                          ## -- Begin function csum1
	.p2align	4, 0x90
_csum1:                                 ## @csum1
	.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	$32792, %eax                    ## imm = 0x8018
	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, -32832(%rbp)              ## 8-byte Spill
	movq	%rsi, -32824(%rbp)              ## 8-byte Spill
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-32816(%rbp), %r12
	movq	%r12, %rsi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	%eax, %r14d
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	$32768, %edx                    ## imm = 0x8000
	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
	testb	$1, %al
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rcx
	movl	%eax, %edx
	cmpl	$1, %eax
	je	LBB0_5
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leal	-1(%rax), %edx
	movl	%r15d, %ecx
	shll	$16, %ecx
	orl	%r15d, %ecx
	shrl	%ecx
	addl	-32816(%rbp), %ecx
	movzwl	%cx, %r15d
	leaq	-32812(%rbp), %rcx
	cmpl	$1, %eax
	je	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	shll	$16, %edi
	orl	%r15d, %edi
	shrl	%edi
	addl	(%rcx,%rsi,4), %edi
	movl	%edi, %ebx
	andl	$65534, %ebx                    ## imm = 0xFFFE
	shll	$16, %edi
	orl	%ebx, %edi
	shrl	%edi
	addl	4(%rcx,%rsi,4), %edi
	movzwl	%di, %r15d
	addq	$2, %rsi
	cmpl	%esi, %edx
	jne	LBB0_11
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
LBB0_2:
	testl	%eax, %eax
	js	LBB0_3
## %bb.12:
	movq	-32824(%rbp), %rax              ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	-32832(%rbp), %rax              ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_3:
	movl	$1, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$32792, %rsp                    ## imm = 0x8018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	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	_csum1                          ; -- Begin function csum1
	.p2align	2
_csum1:                                 ; @csum1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w9, #32784
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #8, lsl #12             ; =32768
	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, #-56]
	add	x1, sp, #8
	mov	w2, #32768
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w22, #0
	mov	w23, #0
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	add	x8, sp, #8
	mov	x9, x0
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	orr	w10, w23, w23, lsl #16
	ldr	w11, [x8], #4
	add	w10, w11, w10, lsr #1
	and	w23, w10, #0xffff
	subs	w9, w9, #1
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w0, w22
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #32768
	bl	_read
	cmp	w0, #1
	b.ge	LBB0_2
; %bb.5:
	tbnz	w0, #31, LBB0_8
LBB0_6:
	mov	w0, #0
	str	w23, [x20]
	str	w22, [x19]
	b	LBB0_9
LBB0_7:
	mov	w23, #0
	mov	w22, #0
	tbz	w0, #31, LBB0_6
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldur	x8, [x29, #-56]
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_11
; %bb.10:
	add	sp, sp, #8, lsl #12             ; =32768
	add	sp, sp, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	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
