	.file	"extr_inet6.c_inet_chksum_pseudo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	inet_chksum_pseudo
	.type	inet_chksum_pseudo, @function
inet_chksum_pseudo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdx
	mov	DWORD PTR 12[rsp], r8d
	test	rdi, rdi
	je	.L12
	mov	r14, rdi
	xor	ebp, ebp
	xor	ebx, ebx
	mov	r12d, 1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 4[r14]
	mov	esi, DWORD PTR [r14]
	call	chksum@PLT
	add	ebx, eax
	mov	eax, ebx
	sar	eax, 16
	je	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	ebx, bx
	add	ebx, eax
	mov	eax, ebx
	sar	eax, 16
	jne	.L4
.L3:
	test	BYTE PTR [r14], 1
	je	.L5
	mov	eax, r12d
	sub	eax, ebp
	mov	ebp, eax
	mov	eax, ebx
	sar	ebx, 8
	sal	eax, 8
	movzx	eax, ax
	or	ebx, eax
.L5:
	mov	r14, QWORD PTR 8[r14]
	test	r14, r14
	jne	.L6
	test	ebp, ebp
	je	.L2
	mov	eax, ebx
	sar	ebx, 8
	sal	eax, 8
	movzx	eax, ax
	or	ebx, eax
.L2:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR [r15]
	mov	rcx, QWORD PTR [rax]
	lea	rsi, 32[rdx]
	sub	rcx, rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	eax, WORD PTR [rdx]
	add	ebx, eax
	movzx	eax, WORD PTR [rcx+rdx]
	add	ebx, eax
	mov	eax, ebx
	sar	eax, 16
	je	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	movzx	ebx, bx
	add	ebx, eax
	mov	eax, ebx
	sar	eax, 16
	jne	.L8
.L7:
	add	rdx, 4
	cmp	rsi, rdx
	jne	.L9
	mov	edi, r13d
	call	htons@PLT
	add	ebx, eax
	movzx	eax, WORD PTR 12[rsp]
	add	ebx, eax
	movzx	eax, WORD PTR 16[rsp]
	add	eax, ebx
	mov	edx, eax
	sar	edx, 16
	je	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	movzx	eax, ax
	add	eax, edx
	mov	edx, eax
	sar	edx, 16
	jne	.L11
.L10:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	not	eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	xor	ebx, ebx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	inet_chksum_pseudo, .-inet_chksum_pseudo
	.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_inet6.c_inet_chksum_pseudo.c"
	.text
	.align	2
	.global	inet_chksum_pseudo
	.syntax unified
	.arm
	.fpu softvfp
	.type	inet_chksum_pseudo, %function
inet_chksum_pseudo:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r10, r0, #0
	mov	r9, r1
	mov	r8, r2
	mov	r6, r3
	beq	.L12
	mov	r7, #0
	mov	r4, r7
	ldr	r5, .L35
.L6:
	ldr	r1, [r10]
	ldr	r0, [r10, #4]
	bl	chksum
	add	r4, r4, r0
	asrs	r0, r4, #16
	beq	.L3
.L4:
	and	r4, r4, r5
	add	r4, r4, r0
	asrs	r0, r4, #16
	bne	.L4
.L3:
	ldr	r3, [r10]
	ldr	r10, [r10, #8]
	tst	r3, #1
	andne	r3, r5, r4, lsl #8
	rsbne	r7, r7, #1
	orrne	r4, r3, r4, asr #8
	cmp	r10, #0
	bne	.L6
	cmp	r7, #0
	ldrne	r3, .L35
	andne	r3, r3, r4, lsl #8
	orrne	r4, r3, r4, asr #8
.L2:
	ldr	ip, [r9]
	ldr	lr, [r8]
	ldr	r1, .L35
	mov	r0, ip
	sub	lr, lr, ip
	add	ip, ip, #32
.L9:
	ldr	r3, [r0]
	ldr	r2, [lr, r0]
	and	r3, r3, r1
	add	r4, r3, r4
	and	r3, r2, r1
	add	r4, r3, r4
	asrs	r2, r4, #16
	beq	.L7
.L8:
	and	r4, r4, r1
	add	r4, r4, r2
	asrs	r2, r4, #16
	bne	.L8
.L7:
	add	r0, r0, #4
	cmp	ip, r0
	bne	.L9
	mov	r0, r6
	bl	htons
	ldrh	r3, [sp, #32]
	add	r4, r0, r4
	ldrh	r0, [sp, #36]
	add	r3, r3, r4
	add	r0, r0, r3
	asrs	r3, r0, #16
	ldr	r2, .L35
	beq	.L10
.L11:
	and	r0, r0, r2
	add	r0, r0, r3
	asrs	r3, r0, #16
	bne	.L11
.L10:
	mvn	r0, r0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r4, r10
	b	.L2
.L36:
	.align	2
.L35:
	.word	65535
	.size	inet_chksum_pseudo, .-inet_chksum_pseudo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
