	.file	"140765043.c"
	.intel_syntax noprefix
	.text
	.globl	checksum_ip
	.type	checksum_ip, @function
checksum_ip:
.LFB36:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	DWORD PTR -20[rbp], esi
	mov	ebx, 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	add	ebx, eax
	sub	DWORD PTR -20[rbp], 2
.L2:
	cmp	DWORD PTR -20[rbp], 1
	jg	.L3
	cmp	DWORD PTR -20[rbp], 0
	jle	.L5
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	ebx, eax
	jmp	.L5
.L6:
	mov	edx, ebx
	shr	edx, 16
	movzx	eax, bx
	lea	ebx, [rdx+rax]
.L5:
	mov	eax, ebx
	shr	eax, 16
	test	eax, eax
	jne	.L6
	mov	eax, ebx
	not	eax
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	checksum_ip, .-checksum_ip
	.globl	checksum_tcpudp
	.type	checksum_tcpudp, @function
checksum_tcpudp:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	eax, edx
	mov	WORD PTR -52[rbp], ax
	mov	ebx, 0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -20[rbp], eax
	movzx	eax, WORD PTR -52[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -48[rbp], rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	add	ebx, eax
	sub	DWORD PTR -28[rbp], 2
.L9:
	cmp	DWORD PTR -28[rbp], 1
	jg	.L10
	cmp	DWORD PTR -28[rbp], 0
	jle	.L11
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	ebx, eax
.L11:
	mov	eax, DWORD PTR -24[rbp]
	shr	eax, 16
	add	ebx, eax
	mov	eax, DWORD PTR -24[rbp]
	movzx	eax, ax
	add	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 16
	add	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	movzx	eax, ax
	add	ebx, eax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 9[rax]
	movzx	eax, al
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	ebx, eax
	movzx	eax, WORD PTR -52[rbp]
	add	ebx, eax
	jmp	.L12
.L13:
	mov	edx, ebx
	shr	edx, 16
	movzx	eax, bx
	lea	ebx, [rdx+rax]
.L12:
	mov	eax, ebx
	shr	eax, 16
	test	eax, eax
	jne	.L13
	mov	eax, ebx
	not	eax
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	checksum_tcpudp, .-checksum_tcpudp
	.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	"140765043.c"
	.text
	.align	2
	.global	checksum_ip
	.syntax unified
	.arm
	.fpu softvfp
	.type	checksum_ip, %function
checksum_ip:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, fp}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r4, #0
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	add	r2, r3, #2
	str	r2, [fp, #-8]
	ldrh	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-12]
	sub	r3, r3, #2
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bgt	.L3
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r4, r4, r3
	b	.L5
.L6:
	lsr	r2, r4, #16
	lsl	r3, r4, #16
	lsr	r3, r3, #16
	add	r4, r2, r3
.L5:
	lsr	r3, r4, #16
	cmp	r3, #0
	bne	.L6
	lsl	r3, r4, #16
	lsr	r3, r3, #16
	mvn	r3, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{r4, fp}
	bx	lr
	.size	checksum_ip, .-checksum_ip
	.align	2
	.global	checksum_tcpudp
	.syntax unified
	.arm
	.fpu softvfp
	.type	checksum_tcpudp, %function
checksum_tcpudp:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, r2
	strh	r3, [fp, #-38]	@ movhi
	mov	r4, #0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-16]
	ldrh	r3, [fp, #-38]
	str	r3, [fp, #-24]
	b	.L9
.L10:
	ldr	r3, [fp, #-36]
	add	r2, r3, #2
	str	r2, [fp, #-36]
	ldrh	r3, [r3]
	add	r4, r4, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #2
	str	r3, [fp, #-24]
.L9:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L10
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r4, r4, r3
.L11:
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #16
	add	r4, r4, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #16
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r4, r4, r3
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldrh	r3, [fp, #-38]
	add	r4, r4, r3
	b	.L12
.L13:
	lsr	r2, r4, #16
	lsl	r3, r4, #16
	lsr	r3, r3, #16
	add	r4, r2, r3
.L12:
	lsr	r3, r4, #16
	cmp	r3, #0
	bne	.L13
	lsl	r3, r4, #16
	lsr	r3, r3, #16
	mvn	r3, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	checksum_tcpudp, .-checksum_tcpudp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
