	.file	"extr_templ-pkt.c_udp_checksum2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	udp_checksum2
	.type	udp_checksum2, @function
udp_checksum2:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, 12[rsi]
	lea	r8d, 13[rsi]
	movzx	eax, BYTE PTR [rdi+rax]
	movzx	r8d, BYTE PTR [rdi+r8]
	lea	r9d, 15[rsi]
	movzx	r9d, BYTE PTR [rdi+r9]
	sal	eax, 8
	or	eax, r8d
	cdqe
	lea	r8, 17[rcx+rax]
	lea	eax, 14[rsi]
	movzx	eax, BYTE PTR [rdi+rax]
	sal	eax, 8
	or	eax, r9d
	cdqe
	lea	r9, [rax+r8]
	lea	eax, 16[rsi]
	movzx	r8d, BYTE PTR [rdi+rax]
	lea	eax, 17[rsi]
	movzx	eax, BYTE PTR [rdi+rax]
	sal	r8d, 8
	or	r8d, eax
	movsx	r8, r8d
	lea	rax, [r8+r9]
	lea	r8d, 18[rsi]
	add	esi, 19
	movzx	r8d, BYTE PTR [rdi+r8]
	movzx	esi, BYTE PTR [rdi+rsi]
	sal	r8d, 8
	or	r8d, esi
	xor	esi, esi
	movsx	r8, r8d
	add	r8, rax
	test	rcx, rcx
	je	.L2
	lea	r10d, 1[rdx]
	.p2align 4,,10
	.p2align 3
.L3:
	lea	eax, [rdx+rsi]
	lea	r9d, [r10+rsi]
	movzx	eax, BYTE PTR [rdi+rax]
	movzx	r9d, BYTE PTR [rdi+r9]
	sal	eax, 8
	or	eax, r9d
	cdqe
	add	r8, rax
	lea	eax, 2[rsi]
	mov	rsi, rax
	cmp	rax, rcx
	jb	.L3
.L2:
	lea	eax, -1[rsi+rdx]
	and	ecx, 1
	movzx	eax, BYTE PTR [rdi+rax]
	imul	rcx, rax
	sub	r8, rcx
	movzx	eax, r8w
	shr	r8, 16
	add	r8, rax
	movzx	edx, r8w
	shr	r8, 16
	lea	rax, [rdx+r8]
	movzx	edx, ax
	shr	rax, 16
	add	rax, rdx
	ret
	.cfi_endproc
.LFE0:
	.size	udp_checksum2, .-udp_checksum2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_templ-pkt.c_udp_checksum2.c"
	.text
	.align	2
	.global	udp_checksum2
	.syntax unified
	.arm
	.fpu softvfp
	.type	udp_checksum2, %function
udp_checksum2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	add	r1, r0, r1
	ldrb	r5, [r1, #12]	@ zero_extendqisi2
	ldrb	r4, [r1, #13]	@ zero_extendqisi2
	ldrb	ip, [r1, #14]	@ zero_extendqisi2
	ldrb	lr, [r1, #15]	@ zero_extendqisi2
	orr	r4, r4, r5, lsl #8
	add	r5, r3, #17
	add	r4, r4, r5
	orr	lr, lr, ip, lsl #8
	ldrb	r5, [r1, #16]	@ zero_extendqisi2
	ldrb	ip, [r1, #17]	@ zero_extendqisi2
	add	lr, lr, r4
	ldrb	r4, [r1, #18]	@ zero_extendqisi2
	ldrb	r1, [r1, #19]	@ zero_extendqisi2
	orr	ip, ip, r5, lsl #8
	add	ip, ip, lr
	cmp	r3, #0
	orr	lr, r1, r4, lsl #8
	add	lr, lr, ip
	beq	.L4
	mov	r1, #0
	add	r5, r0, r2
	add	r6, r5, #1
.L3:
	ldrb	r4, [r5, r1]	@ zero_extendqisi2
	ldrb	ip, [r6, r1]	@ zero_extendqisi2
	add	r1, r1, #2
	orr	ip, ip, r4, lsl #8
	cmp	r3, r1
	add	lr, lr, ip
	bhi	.L3
.L2:
	add	r1, r0, r1
	add	r1, r1, r2
	ldrb	r2, [r1, #-1]	@ zero_extendqisi2
	and	r3, r3, #1
	mul	r3, r2, r3
	ldr	r2, .L8
	sub	lr, lr, r3
	and	r0, lr, r2
	add	lr, r0, lr, lsr #16
	and	r0, lr, r2
	add	r0, r0, lr, lsr #16
	and	r2, r2, r0
	add	r0, r2, r0, lsr #16
	pop	{r4, r5, r6, pc}
.L4:
	mov	r1, r3
	b	.L2
.L9:
	.align	2
.L8:
	.word	65535
	.size	udp_checksum2, .-udp_checksum2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
