	.file	"extr_ndisc-router.c_ndisc_router_parse.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Too small to be a router advertisement, ignoring."
	.align 8
.LC1:
	.string	"Received ND packet that is not a router advertisement, ignoring."
	.align 8
.LC2:
	.string	"Received ND packet with wrong RA code, ignoring."
	.align 8
.LC3:
	.string	"Option lacks header, ignoring datagram."
	.align 8
.LC4:
	.string	"Zero-length option, ignoring datagram."
	.align 8
.LC5:
	.string	"Option truncated, ignoring datagram."
	.align 8
.LC6:
	.string	"Prefix option of invalid size, ignoring datagram."
	.align 8
.LC7:
	.string	"Bad prefix length, ignoring datagram."
	.align 8
.LC8:
	.string	"MTU option specified twice, ignoring."
	.align 8
.LC9:
	.string	"MTU option of invalid size, ignoring datagram."
	.align 8
.LC10:
	.string	"Route information option of invalid size, ignoring datagram."
	.align 8
.LC11:
	.string	"Bad route prefix length, ignoring datagram."
	.align 8
.LC12:
	.string	"RDNSS option has invalid size."
	.align 8
.LC13:
	.string	"Flags extension option specified twice, ignoring."
	.align 8
.LC14:
	.string	"Flags extension option has invalid size."
	.align 8
.LC15:
	.string	"DNSSL option has invalid size."
	.text
	.p2align 4
	.globl	ndisc_router_parse
	.type	ndisc_router_parse, @function
ndisc_router_parse:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	call	assert@PLT
	cmp	DWORD PTR [r14], 31
	jbe	.L40
	mov	rdi, r14
	call	NDISC_ROUTER_RAW@PLT
	mov	rcx, QWORD PTR ND_ROUTER_ADVERT[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L41
	cmp	QWORD PTR 8[rax], 0
	jne	.L42
	mov	edx, DWORD PTR 24[rax]
	mov	edi, DWORD PTR 20[rax]
	mov	DWORD PTR 24[r14], edx
	mov	edx, DWORD PTR 16[rax]
	mov	DWORD PTR 4[r14], edx
	call	be16toh@PLT
	mov	edi, DWORD PTR 4[r14]
	mov	edx, DWORD PTR SD_NDISC_PREFERENCE_HIGH[rip]
	mov	DWORD PTR 20[r14], eax
	mov	esi, DWORD PTR SD_NDISC_PREFERENCE_LOW[rip]
	sar	edi, 3
	and	edi, 3
	mov	DWORD PTR 8[r14], edi
	call	IN_SET@PLT
	test	eax, eax
	je	.L43
.L6:
	mov	rdi, r14
	call	NDISC_ROUTER_RAW@PLT
	movsx	rbp, DWORD PTR [r14]
	lea	r13, 128[rax]
	sub	rbp, 32
	je	.L27
	cmp	rbp, 1
	jbe	.L8
	xor	r12d, r12d
	xor	ecx, ecx
	lea	r15, .L14[rip]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 4[r13]
	mov	eax, DWORD PTR 0[r13]
	lea	edx, 0[0+rsi*8]
	movsx	rbx, edx
	test	rbx, rbx
	je	.L44
	cmp	rbx, rbp
	ja	.L45
	add	eax, -128
	cmp	eax, 5
	ja	.L12
	movsx	rax, DWORD PTR [r15+rax*4]
	add	rax, r15
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L14:
	.long	.L19-.L14
	.long	.L18-.L14
	.long	.L17-.L14
	.long	.L16-.L14
	.long	.L15-.L14
	.long	.L13-.L14
	.text
	.p2align 4,,10
	.p2align 3
.L41:
	lea	rdi, .LC1[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L15:
	.cfi_restore_state
	test	r12d, r12d
	jne	.L46
	cmp	rbx, 7
	jbe	.L47
	mov	eax, DWORD PTR 8[r13]
	mov	edx, DWORD PTR 12[r13]
	mov	r12d, 1
	sal	edx, 16
	sal	eax, 8
	or	eax, edx
	mov	edx, DWORD PTR 16[r13]
	or	eax, DWORD PTR 4[r14]
	sal	edx, 24
	or	eax, edx
	mov	DWORD PTR 4[r14], eax
.L12:
	lea	r13, 0[r13+rbx*4]
	sub	rbp, rbx
	je	.L27
	cmp	rbp, 1
	jne	.L9
.L8:
	lea	rdi, .LC3[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L19:
	lea	rax, -8[rbx]
	cmp	rax, 16
	ja	.L48
	cmp	DWORD PTR 8[r13], 128
	jle	.L12
	lea	rdi, .LC11[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L13:
	cmp	rbx, 15
	ja	.L12
	lea	rdi, .LC15[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L17:
	cmp	rbx, 32
	jne	.L49
	cmp	DWORD PTR 8[r13], 128
	jle	.L12
	lea	rdi, .LC7[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L18:
	cmp	rbx, 23
	jbe	.L24
	and	edx, 15
	cmp	edx, 8
	je	.L12
.L24:
	lea	rdi, .LC12[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L16:
	test	ecx, ecx
	jne	.L50
	cmp	rbx, 8
	jne	.L51
	mov	edi, DWORD PTR 16[r13]
	call	be32toh@PLT
	cmp	DWORD PTR IPV6_MIN_MTU[rip], eax
	mov	ecx, 1
	jg	.L12
	mov	DWORD PTR 16[r14], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L40:
	lea	rdi, .LC0[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	mov	eax, DWORD PTR SD_NDISC_PREFERENCE_MEDIUM[rip]
	mov	DWORD PTR 8[r14], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L42:
	lea	rdi, .LC2[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.p2align 4,,10
	.p2align 3
.L50:
	.cfi_restore_state
	lea	rdi, .LC8[rip]
	mov	DWORD PTR 12[rsp], ecx
	call	log_ndisc@PLT
	mov	ecx, DWORD PTR 12[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L46:
	lea	rdi, .LC13[rip]
	mov	DWORD PTR 12[rsp], ecx
	call	log_ndisc@PLT
	mov	ecx, DWORD PTR 12[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	mov	DWORD PTR 12[r14], 32
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	lea	rdi, .LC4[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	lea	rdi, .LC5[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L48:
	lea	rdi, .LC10[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L49:
	lea	rdi, .LC6[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L47:
	lea	rdi, .LC14[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
.L51:
	lea	rdi, .LC9[rip]
	call	log_ndisc@PLT
	mov	eax, DWORD PTR EBADMSG[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ndisc_router_parse, .-ndisc_router_parse
	.comm	SD_NDISC_PREFERENCE_MEDIUM,4,4
	.comm	SD_NDISC_PREFERENCE_LOW,4,4
	.comm	SD_NDISC_PREFERENCE_HIGH,4,4
	.comm	ND_ROUTER_ADVERT,8,8
	.comm	IPV6_MIN_MTU,4,4
	.comm	EBADMSG,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_ndisc-router.c_ndisc_router_parse.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Too small to be a router advertisement, ignoring.\000"
	.align	2
.LC1:
	.ascii	"Received ND packet that is not a router advertiseme"
	.ascii	"nt, ignoring.\000"
	.align	2
.LC2:
	.ascii	"Received ND packet with wrong RA code, ignoring.\000"
	.align	2
.LC3:
	.ascii	"Option lacks header, ignoring datagram.\000"
	.align	2
.LC4:
	.ascii	"Zero-length option, ignoring datagram.\000"
	.align	2
.LC5:
	.ascii	"Option truncated, ignoring datagram.\000"
	.align	2
.LC6:
	.ascii	"Prefix option of invalid size, ignoring datagram.\000"
	.align	2
.LC7:
	.ascii	"Bad prefix length, ignoring datagram.\000"
	.align	2
.LC8:
	.ascii	"MTU option specified twice, ignoring.\000"
	.align	2
.LC9:
	.ascii	"MTU option of invalid size, ignoring datagram.\000"
	.align	2
.LC10:
	.ascii	"Route information option of invalid size, ignoring "
	.ascii	"datagram.\000"
	.align	2
.LC11:
	.ascii	"Bad route prefix length, ignoring datagram.\000"
	.align	2
.LC12:
	.ascii	"RDNSS option has invalid size.\000"
	.align	2
.LC13:
	.ascii	"Flags extension option specified twice, ignoring.\000"
	.align	2
.LC14:
	.ascii	"Flags extension option has invalid size.\000"
	.align	2
.LC15:
	.ascii	"DNSSL option has invalid size.\000"
	.text
	.align	2
	.global	ndisc_router_parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	ndisc_router_parse, %function
ndisc_router_parse:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	sub	sp, sp, #12
	bl	assert
	ldr	r3, [r7]
	cmp	r3, #19
	bls	.L43
	mov	r0, r7
	bl	NDISC_ROUTER_RAW
	ldr	r3, .L55
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L44
	ldr	fp, [r0, #4]
	cmp	fp, #0
	bne	.L45
	ldr	r2, [r0, #16]
	ldr	r3, [r0, #8]
	str	r2, [r7, #24]
	str	r3, [r7, #4]
	ldr	r0, [r0, #12]
	bl	be16toh
	ldr	r3, [r7, #4]
	ldr	r2, .L55+4
	ldr	r1, .L55+8
	asr	r3, r3, #3
	and	r3, r3, #3
	str	r3, [r7, #8]
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r0, [r7, #20]
	mov	r0, r3
	bl	IN_SET
	cmp	r0, #0
	ldreq	r3, .L55+12
	mov	r0, r7
	ldreq	r3, [r3]
	streq	r3, [r7, #8]
	bl	NDISC_ROUTER_RAW
	ldr	r5, [r7]
	add	r6, r0, #80
	subs	r5, r5, #20
	beq	.L27
	cmp	r5, #1
	beq	.L8
	mov	r9, #0
	mov	r1, r9
	ldr	r10, .L55+16
	ldr	r8, .L55+20
.L9:
	ldm	r6, {r3, r4}
	lsls	r4, r4, #3
	beq	.L46
	cmp	r4, r5
	bhi	.L47
	sub	r3, r3, #128
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L12
.L14:
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L13
.L13:
	cmp	r4, #15
	bls	.L48
.L12:
	subs	r5, r5, r4
	add	r6, r6, r4, lsl #2
	beq	.L27
	cmp	r5, #1
	bne	.L9
.L8:
	ldr	r0, .L55+24
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L15:
	cmp	r9, #0
	bne	.L49
	cmp	r4, #7
	bls	.L50
	ldr	r3, [r6, #12]
	ldr	r2, [r6, #8]
	ldr	r0, [r7, #4]
	lsl	r3, r3, #16
	orr	r3, r3, r2, lsl #8
	ldr	r2, [r6, #16]
	orr	r3, r3, r0
	orr	r3, r3, r2, lsl #24
	mov	r9, #1
	str	r3, [r7, #4]
	b	.L12
.L16:
	cmp	r1, #0
	bne	.L51
	cmp	r4, #8
	bne	.L52
	ldr	r0, [r6, #16]
	bl	be32toh
	ldr	r3, [r8]
	cmp	r3, r0
	movle	r1, #1
	strle	r0, [r7, #16]
	movgt	r1, #1
	b	.L12
.L19:
	sub	r3, r4, #8
	cmp	r3, #16
	bhi	.L53
	ldr	r3, [r6, #8]
	cmp	r3, #128
	ble	.L12
	ldr	r0, .L55+32
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L17:
	cmp	r4, #32
	bne	.L54
	ldr	r3, [r6, #8]
	cmp	r3, #128
	ble	.L12
	ldr	r0, .L55+36
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L18:
	cmp	r4, #23
	bls	.L24
	and	r3, r4, #15
	cmp	r3, #8
	beq	.L12
.L24:
	ldr	r0, .L55+40
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L44:
	ldr	r0, .L55+44
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
.L1:
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L43:
	ldr	r0, .L55+48
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	ldr	r0, .L55+52
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L49:
	mov	r0, r10
	str	r1, [sp, #4]
	bl	log_ndisc
	ldr	r1, [sp, #4]
	b	.L12
.L51:
	ldr	r0, .L55+56
	str	r1, [sp, #4]
	bl	log_ndisc
	ldr	r1, [sp, #4]
	b	.L12
.L27:
	mov	r3, #20
	str	r3, [r7, #12]
	b	.L1
.L46:
	ldr	r0, .L55+60
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L47:
	ldr	r0, .L55+64
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L54:
	ldr	r0, .L55+68
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L53:
	ldr	r0, .L55+72
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L48:
	ldr	r0, .L55+76
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L50:
	ldr	r0, .L55+80
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L52:
	ldr	r0, .L55+84
	bl	log_ndisc
	ldr	r3, .L55+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
	b	.L1
.L56:
	.align	2
.L55:
	.word	ND_ROUTER_ADVERT
	.word	SD_NDISC_PREFERENCE_HIGH
	.word	SD_NDISC_PREFERENCE_LOW
	.word	SD_NDISC_PREFERENCE_MEDIUM
	.word	.LC13
	.word	IPV6_MIN_MTU
	.word	.LC3
	.word	EBADMSG
	.word	.LC11
	.word	.LC7
	.word	.LC12
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC8
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC10
	.word	.LC15
	.word	.LC14
	.word	.LC9
	.size	ndisc_router_parse, .-ndisc_router_parse
	.comm	SD_NDISC_PREFERENCE_MEDIUM,4,4
	.comm	SD_NDISC_PREFERENCE_LOW,4,4
	.comm	SD_NDISC_PREFERENCE_HIGH,4,4
	.comm	ND_ROUTER_ADVERT,4,4
	.comm	IPV6_MIN_MTU,4,4
	.comm	EBADMSG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
