	.file	"extr_nhc.c_lowpan_nhc_do_compression.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lowpan_nhc_do_compression
	.type	lowpan_nhc_do_compression, @function
lowpan_nhc_do_compression:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, lowpan_nhc_lock[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_bh@PLT
	mov	rdx, QWORD PTR [r12]
	mov	edi, 1
	mov	rax, QWORD PTR lowpan_nexthdr_nhcs[rip]
	mov	rbx, QWORD PTR [rax+rdx*8]
	test	rbx, rbx
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR [rbx], 0
	sete	dil
.L2:
	call	unlikely@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR 0[rbp], rax
	je	.L11
.L5:
	mov	rsi, r13
	mov	rdi, rbp
	call	[QWORD PTR [rbx]]
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbp
	call	skb_pull@PLT
.L4:
	lea	rdi, lowpan_nhc_lock[rip]
	call	spin_unlock_bh@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, 8
	mov	rdi, rbp
	call	skb_set_transport_header@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	lowpan_nhc_do_compression, .-lowpan_nhc_do_compression
	.comm	lowpan_nhc_lock,4,4
	.comm	lowpan_nexthdr_nhcs,8,8
	.comm	EINVAL,4,4
	.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_nhc.c_lowpan_nhc_do_compression.c"
	.text
	.align	2
	.global	lowpan_nhc_do_compression
	.syntax unified
	.arm
	.fpu softvfp
	.type	lowpan_nhc_do_compression, %function
lowpan_nhc_do_compression:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r0, .L11
	mov	r7, r2
	bl	spin_lock_bh
	ldr	r3, .L11+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r6, [r3, r2, lsl #2]
	cmp	r6, #0
	ldrne	r0, [r6]
	moveq	r0, #1
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L9
	ldm	r4, {r2, r3}
	cmp	r2, r3
	beq	.L10
.L5:
	mov	r1, r7
	mov	r0, r4
	ldr	r3, [r6]
	blx	r3
	subs	r5, r0, #0
	blt	.L4
	mov	r0, r4
	ldr	r1, [r6, #4]
	bl	skb_pull
.L4:
	ldr	r0, .L11
	bl	spin_unlock_bh
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L11+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L4
.L10:
	mov	r1, #4
	mov	r0, r4
	bl	skb_set_transport_header
	b	.L5
.L12:
	.align	2
.L11:
	.word	lowpan_nhc_lock
	.word	lowpan_nexthdr_nhcs
	.word	EINVAL
	.size	lowpan_nhc_do_compression, .-lowpan_nhc_do_compression
	.comm	lowpan_nhc_lock,4,4
	.comm	lowpan_nexthdr_nhcs,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
