	.file	"324053.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	sccsid, @object
	.size	sccsid, 36
sccsid:
	.string	"@(#)chksum.c\t4.2 (Berkeley) 6/19/85"
	.text
	.globl	chksum
	.type	chksum, @function
chksum:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rdx, rdi
	mov	eax, esi
	mov	ebx, 65535
	mov	r12d, 0
.L4:
	add	rbx, rbx
	mov	rcx, rbx
	and	ecx, 65536
	test	rcx, rcx
	je	.L2
	xor	rbx, 65537
.L2:
	mov	r13, rbx
	mov	rcx, rdx
	lea	rdx, 1[rcx]
	movzx	ecx, BYTE PTR [rcx]
	movsx	rcx, cl
	movzx	ecx, cl
	add	rcx, rbx
	movzx	ebx, cx
	movsx	rcx, eax
	xor	rcx, rbx
	add	r12, rcx
	cmp	rbx, r13
	jg	.L3
	xor	rbx, r12
	mov	rcx, rbx
	movzx	ebx, cx
.L3:
	sub	eax, 1
	test	eax, eax
	jg	.L4
	mov	eax, ebx
	cwde
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	chksum, .-chksum
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"324053.c"
	.text
	.data
	.align	2
	.type	sccsid, %object
	.size	sccsid, 36
sccsid:
	.ascii	"@(#)chksum.c\0114.2 (Berkeley) 6/19/85\000"
	.text
	.align	2
	.global	chksum
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum, %function
chksum:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, fp}
	add	fp, sp, #12
	mov	r3, r1
	ldr	r4, .L6
	mov	r5, #0
.L4:
	lsl	r4, r4, #1
	and	r2, r4, #65536
	cmp	r2, #0
	beq	.L2
	eor	r2, r4, #65536
	eor	r2, r2, #1
	mov	r4, r2
.L2:
	mov	r6, r4
	mov	r2, r0
	add	r0, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r2, r4, r2
	lsl	r4, r2, #16
	lsr	r4, r4, #16
	eor	r2, r4, r3
	add	r5, r5, r2
	cmp	r4, r6
	bgt	.L3
	eor	r2, r4, r5
	lsl	r4, r2, #16
	lsr	r4, r4, #16
.L3:
	sub	r3, r3, #1
	cmp	r3, #0
	bgt	.L4
	lsl	r3, r4, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, r6, fp}
	bx	lr
.L7:
	.align	2
.L6:
	.word	65535
	.size	chksum, .-chksum
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
