	.file	"extr_nhc.c_lowpan_nhc_add.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"LOWPAN_NHC_MAX_ID_LEN should be updated to %zd.\n"
	.text
	.p2align 4
	.globl	lowpan_nhc_add
	.type	lowpan_nhc_add, @function
lowpan_nhc_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR [rdi]
	test	rdx, rdx
	je	.L2
	cmp	QWORD PTR 16[rdi], 0
	mov	rbx, rdi
	je	.L2
	xor	edi, edi
	cmp	rdx, QWORD PTR LOWPAN_NHC_MAX_ID_LEN[rip]
	lea	rsi, .LC0[rip]
	setg	dil
	call	WARN_ONCE@PLT
	mov	rdi, rbx
	call	[QWORD PTR 16[rbx]]
	lea	rdi, lowpan_nhc_lock[rip]
	call	spin_lock_bh@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR lowpan_nexthdr_nhcs[rip]
	cmp	QWORD PTR [rax+rdx*8], 0
	je	.L5
	mov	r12d, DWORD PTR EEXIST[rip]
	neg	r12d
.L6:
	lea	rdi, lowpan_nhc_lock[rip]
	call	spin_unlock_bh@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbx
	call	lowpan_nhc_insert@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L6
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR lowpan_nexthdr_nhcs[rip]
	mov	QWORD PTR [rax+rdx*8], rbx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	lowpan_nhc_add, .-lowpan_nhc_add
	.comm	lowpan_nhc_lock,4,4
	.comm	lowpan_nexthdr_nhcs,8,8
	.comm	LOWPAN_NHC_MAX_ID_LEN,8,8
	.comm	EINVAL,4,4
	.comm	EEXIST,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_add.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LOWPAN_NHC_MAX_ID_LEN should be updated to %zd.\012"
	.ascii	"\000"
	.text
	.align	2
	.global	lowpan_nhc_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	lowpan_nhc_add, %function
lowpan_nhc_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r4, r5, r6, lr}
	cmp	r2, #0
	beq	.L2
	ldr	r3, [r0, #8]
	mov	r4, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L12
	ldr	r1, .L12+4
	ldr	r0, [r3]
	ldr	r6, .L12+8
	cmp	r2, r0
	movle	r0, #0
	movgt	r0, #1
	bl	WARN_ONCE
	ldr	r3, [r4, #8]
	mov	r0, r4
	blx	r3
	ldr	r0, .L12+12
	bl	spin_lock_bh
	ldr	r3, [r6]
	ldr	r2, [r4, #4]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L12+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L6:
	ldr	r0, .L12+12
	bl	spin_unlock_bh
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L12+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r4
	bl	lowpan_nhc_insert
	subs	r5, r0, #0
	ldrge	r3, [r6]
	ldrge	r2, [r4, #4]
	strge	r4, [r3, r2, lsl #2]
	b	.L6
.L13:
	.align	2
.L12:
	.word	LOWPAN_NHC_MAX_ID_LEN
	.word	.LC0
	.word	lowpan_nexthdr_nhcs
	.word	lowpan_nhc_lock
	.word	EEXIST
	.word	EINVAL
	.size	lowpan_nhc_add, .-lowpan_nhc_add
	.comm	lowpan_nhc_lock,4,4
	.comm	lowpan_nexthdr_nhcs,4,4
	.comm	LOWPAN_NHC_MAX_ID_LEN,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
