	.file	"91723.c"
	.intel_syntax noprefix
	.text
	.globl	in_cksum
	.type	in_cksum, @function
in_cksum:
.LFB6:
	.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
	sub	rsp, 40
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	ebx, 0
	mov	WORD PTR -42[rbp], 0
	mov	r13, QWORD PTR -56[rbp]
	mov	r12d, DWORD PTR -60[rbp]
	jmp	.L2
.L3:
	mov	rax, r13
	lea	r13, 2[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	add	ebx, eax
	sub	r12d, 2
.L2:
	cmp	r12d, 1
	jg	.L3
	cmp	r12d, 1
	jne	.L4
	lea	rax, -42[rbp]
	movzx	edx, BYTE PTR 0[r13]
	mov	BYTE PTR [rax], dl
	movzx	eax, WORD PTR -42[rbp]
	movzx	eax, ax
	add	ebx, eax
.L4:
	mov	edx, ebx
	sar	edx, 16
	movzx	eax, bx
	lea	ebx, [rdx+rax]
	mov	eax, ebx
	sar	eax, 16
	add	ebx, eax
	mov	eax, ebx
	not	eax
	mov	WORD PTR -42[rbp], ax
	movzx	eax, WORD PTR -42[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	add	rsp, 40
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in_cksum, .-in_cksum
	.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	"91723.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	in_cksum
	.syntax unified
	.arm
	.fpu softvfp
	.type	in_cksum, %function
in_cksum:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r4, #0
	mov	r3, #0
	strh	r3, [fp, #-26]	@ movhi
	ldr	r6, [fp, #-32]
	ldr	r5, [fp, #-36]
	b	.L2
.L3:
	mov	r3, r6
	add	r6, r3, #2
	ldrh	r3, [r3]
	add	r4, r4, r3
	sub	r5, r5, #2
.L2:
	cmp	r5, #1
	bgt	.L3
	cmp	r5, #1
	bne	.L4
	sub	r3, fp, #26
	ldrb	r2, [r6]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrh	r3, [fp, #-26]
	add	r4, r4, r3
.L4:
	asr	r2, r4, #16
	lsl	r3, r4, #16
	lsr	r3, r3, #16
	add	r4, r2, r3
	asr	r3, r4, #16
	add	r4, r4, r3
	lsl	r3, r4, #16
	lsr	r3, r3, #16
	mvn	r3, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-26]	@ movhi
	ldrh	r3, [fp, #-26]
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	in_cksum, .-in_cksum
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
