	.file	"extr_router.c_RouterGetRoute.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Route selected\n"
.LC1:
	.string	"Packet won't be routed\n"
	.text
	.p2align 4
	.globl	RouterGetRoute
	.type	RouterGetRoute, @function
RouterGetRoute:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rsi, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	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, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR DEBUG_ROUTER[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	TI_DbgPrint@PLT
	mov	rdi, r13
	call	A2S@PLT
	mov	edi, DWORD PTR DEBUG_ROUTER[rip]
	movsx	rsi, eax
	call	TI_DbgPrint@PLT
	lea	rsi, 20[rsp]
	lea	rdi, FIBLock[rip]
	call	TcpipAcquireSpinLock@PLT
	mov	r14, QWORD PTR FIBListHead[rip]
	lea	rax, FIBListHead[rip]
	cmp	r14, rax
	je	.L2
	mov	QWORD PTR 8[rsp], 0
	xor	r15d, r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rax, FIBListHead[rip]
	cmp	r14, rax
	je	.L25
.L6:
	mov	edx, DWORD PTR ListEntry[rip]
	mov	esi, DWORD PTR FIB_ENTRY[rip]
	mov	rdi, r14
	mov	r14, QWORD PTR [r14]
	call	CONTAINING_RECORD@PLT
	mov	rdi, r13
	mov	r12, QWORD PTR 8[rax]
	mov	rbp, rax
	lea	rsi, 4[rbp]
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 4[rsp], eax
	call	CommonPrefixLength@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	AddrCountPrefixBits@PLT
	lea	rdi, 4[r12]
	mov	rbp, rax
	call	A2S@PLT
	mov	edi, DWORD PTR DEBUG_ROUTER[rip]
	mov	rsi, rbx
	call	TI_DbgPrint@PLT
	cmp	rbx, rbp
	jl	.L3
	cmp	rbx, QWORD PTR 8[rsp]
	jg	.L11
	test	r15, r15
	jne	.L3
.L11:
	mov	eax, DWORD PTR NUD_STALE[rip]
	or	eax, DWORD PTR NUD_INCOMPLETE[rip]
	test	DWORD PTR 4[rsp], eax
	jne	.L26
.L5:
	mov	edi, DWORD PTR DEBUG_ROUTER[rip]
	lea	rsi, .LC0[rip]
	mov	r15, r12
	call	TI_DbgPrint@PLT
	lea	rax, FIBListHead[rip]
	mov	QWORD PTR 8[rsp], rbx
	cmp	r14, rax
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, FIBLock[rip]
	call	TcpipReleaseSpinLock@PLT
	test	r15, r15
	je	.L8
	lea	rdi, 4[r15]
	call	A2S@PLT
	mov	edi, DWORD PTR DEBUG_ROUTER[rip]
	movsx	rsi, eax
	call	TI_DbgPrint@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	test	r15, r15
	jne	.L3
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, FIBLock[rip]
	call	TcpipReleaseSpinLock@PLT
.L8:
	mov	edi, DWORD PTR DEBUG_ROUTER[rip]
	lea	rsi, .LC1[rip]
	xor	r15d, r15d
	call	TI_DbgPrint@PLT
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	RouterGetRoute, .-RouterGetRoute
	.comm	NUD_STALE,4,4
	.comm	NUD_INCOMPLETE,4,4
	.comm	ListEntry,4,4
	.comm	FIB_ENTRY,4,4
	.comm	FIBLock,4,4
	.comm	FIBListHead,8,8
	.comm	DEBUG_ROUTER,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_router.c_RouterGetRoute.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Route selected\012\000"
	.align	2
.LC1:
	.ascii	"Packet won't be routed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	RouterGetRoute
	.syntax unified
	.arm
	.fpu softvfp
	.type	RouterGetRoute, %function
RouterGetRoute:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	r8, .L27
	ldr	r3, .L27+4
	sub	sp, sp, #20
	mov	r1, r0
	ldr	r0, [r8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	TI_DbgPrint
	mov	r0, r7
	ldr	r4, [r8]
	bl	A2S
	mov	r1, r0
	mov	r0, r4
	bl	TI_DbgPrint
	ldr	r0, .L27+8
	add	r1, sp, #8
	bl	TcpipAcquireSpinLock
	ldr	r3, .L27+12
	ldr	r5, [r3]
	cmp	r5, r3
	beq	.L2
	mov	r9, #0
	str	r9, [sp, #4]
	str	r9, [sp]
	b	.L5
.L4:
	ldr	r1, .L27+16
	ldr	r0, [r8]
	str	r6, [sp]
	str	r4, [sp, #4]
	bl	TI_DbgPrint
.L3:
	ldr	r3, .L27+12
	cmp	r5, r3
	beq	.L25
.L5:
	ldr	r3, .L27+20
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r3, .L27+24
	ldr	r5, [r5]
	ldr	r1, [r3]
	bl	CONTAINING_RECORD
	ldr	r6, [r0, #8]
	add	r1, r0, #4
	mov	fp, r6
	mov	r4, r0
	mov	r0, r7
	ldr	r10, [fp], #4
	bl	CommonPrefixLength
	mov	r2, r0
	mov	r0, r4
	mov	r4, r2
	bl	AddrCountPrefixBits
	mov	r9, r0
	mov	r0, fp
	ldr	fp, [r8]
	bl	A2S
	mov	r1, r4
	mov	r0, fp
	bl	TI_DbgPrint
	cmp	r4, r9
	blt	.L3
	ldr	r3, [sp]
	ldr	r1, [sp, #4]
	clz	r2, r3
	lsr	r2, r2, #5
	cmp	r4, r1
	orrgt	r2, r2, #1
	cmp	r2, #0
	beq	.L3
	ldr	r2, .L27+28
	ldr	r1, .L27+32
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r2, r2, r1
	tst	r2, r10
	beq	.L4
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L27+12
	cmp	r5, r3
	bne	.L5
.L25:
	ldr	r9, [sp]
	ldr	r1, [sp, #8]
	ldr	r0, .L27+8
	bl	TcpipReleaseSpinLock
	cmp	r9, #0
	beq	.L7
	add	r0, r9, #4
	ldr	r4, [r8]
	bl	A2S
	mov	r1, r0
	mov	r0, r4
	bl	TI_DbgPrint
.L1:
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r1, [sp, #8]
	ldr	r0, .L27+8
	bl	TcpipReleaseSpinLock
.L7:
	ldr	r0, [r8]
	ldr	r1, .L27+36
	bl	TI_DbgPrint
	mov	r9, #0
	b	.L1
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	DEBUG_ROUTER
	.word	.LC2
	.word	FIBLock
	.word	FIBListHead
	.word	.LC0
	.word	ListEntry
	.word	FIB_ENTRY
	.word	NUD_STALE
	.word	NUD_INCOMPLETE
	.word	.LC1
	.size	RouterGetRoute, .-RouterGetRoute
	.comm	NUD_STALE,4,4
	.comm	NUD_INCOMPLETE,4,4
	.comm	ListEntry,4,4
	.comm	FIB_ENTRY,4,4
	.comm	FIBLock,4,4
	.comm	FIBListHead,4,4
	.comm	DEBUG_ROUTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
