	.file	"extr_in.c_in_lltable_rtcheck.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	in_lltable_rtcheck, @function
in_lltable_rtcheck:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 264
	.cfi_def_cfa_offset 320
	mov	rsi, QWORD PTR [rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 248[rsp], rax
	xor	eax, eax
	lea	r15, 64[rsp]
	cmp	QWORD PTR AF_INET[rip], rsi
	lea	r13, 128[rsp]
	sete	dil
	lea	rbp, 192[rsp]
	mov	r14, rsp
	call	KASSERT@PLT
	mov	esi, 56
	mov	rdi, r15
	call	bzero@PLT
	mov	esi, 56
	mov	rdi, r13
	mov	DWORD PTR 72[rsp], 56
	call	bzero@PLT
	mov	esi, 56
	mov	rdi, rbp
	mov	DWORD PTR 136[rsp], 56
	call	bzero@PLT
	mov	esi, 56
	mov	rdi, r14
	mov	DWORD PTR 204[rsp], 56
	call	bzero@PLT
	mov	rax, QWORD PTR 48[rsp]
	xor	ecx, ecx
	mov	r8, r14
	mov	rdx, QWORD PTR RTAX_DST[rip]
	mov	edi, DWORD PTR 12[r12]
	mov	rsi, rbx
	mov	QWORD PTR [rax+rdx*8], r15
	mov	rdx, QWORD PTR RTAX_NETMASK[rip]
	mov	QWORD PTR [rax+rdx*8], r13
	mov	rdx, QWORD PTR RTAX_GATEWAY[rip]
	mov	QWORD PTR [rax+rdx*8], rbp
	mov	edx, DWORD PTR NHR_REF[rip]
	call	rib_lookup_info@PLT
	test	rax, rax
	jne	.L8
	mov	ebp, DWORD PTR 16[rsp]
	test	DWORD PTR RTF_GATEWAY[rip], ebp
	je	.L4
	test	DWORD PTR RTF_HOST[rip], ebp
	je	.L6
	mov	rax, QWORD PTR 32[rsp]
	test	rax, rax
	je	.L6
	mov	rcx, QWORD PTR IFT_ETHER[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L21
.L6:
	mov	rdi, r14
	call	rib_free_info@PLT
	mov	eax, DWORD PTR EINVAL[rip]
.L1:
	mov	rcx, QWORD PTR 248[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 264
	.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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edx, DWORD PTR IFF_NOARP[rip]
	or	edx, DWORD PTR IFF_STATICARP[rip]
	test	DWORD PTR 8[rax], edx
	jne	.L6
	mov	esi, DWORD PTR 40[rbx]
	mov	edi, DWORD PTR 232[rsp]
	mov	edx, 4
	call	memcmp@PLT
	test	rax, rax
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r14
	call	rib_free_info@PLT
	mov	eax, ebp
	and	eax, DWORD PTR RTF_HOST[rip]
	jne	.L11
	cmp	QWORD PTR 32[rsp], r12
	je	.L1
	mov	edx, DWORD PTR 20[rsp]
	test	DWORD PTR RTA_NETMASK[rip], edx
	je	.L8
	movsx	rsi, DWORD PTR 8[rbx]
	lea	rdx, [rbx+rsi]
	cmp	rbx, rdx
	jnb	.L1
	xor	edx, edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	add	rdx, 1
	cmp	rsi, rdx
	je	.L1
.L9:
	movzx	ecx, BYTE PTR [r15+rdx]
	xor	cl, BYTE PTR [rbx+rdx]
	test	BYTE PTR 0[r13+rdx], cl
	je	.L23
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	xor	eax, eax
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	in_lltable_rtcheck, .-in_lltable_rtcheck
	.comm	RTF_HOST,4,4
	.comm	RTF_GATEWAY,4,4
	.comm	RTA_NETMASK,4,4
	.comm	RTAX_NETMASK,8,8
	.comm	RTAX_GATEWAY,8,8
	.comm	RTAX_DST,8,8
	.comm	NHR_REF,4,4
	.comm	LOG_INFO,4,4
	.comm	INET_ADDRSTRLEN,4,4
	.comm	IFT_ETHER,8,8
	.comm	IFF_STATICARP,4,4
	.comm	IFF_NOARP,4,4
	.comm	EINVAL,4,4
	.comm	AF_INET,8,8
	.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_in.c_in_lltable_rtcheck.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	in_lltable_rtcheck, %function
in_lltable_rtcheck:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L26
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, [r2]
	mov	r6, r0
	ldr	r0, [r3]
	mov	r4, #36
	sub	r0, r0, r1
	clz	r0, r0
	mov	r5, r2
	sub	sp, sp, #160
	ldr	r3, .L26+4
	add	r10, sp, #48
	lsr	r0, r0, #5
	ldr	r3, [r3]
	str	r3, [sp, #156]
	mov	r3,#0
	add	r9, sp, #84
	bl	KASSERT
	mov	r1, r4
	mov	r0, r10
	bl	bzero
	add	r8, sp, #120
	mov	r1, r4
	mov	r0, r9
	str	r4, [sp, #52]
	add	r7, sp, #12
	bl	bzero
	mov	r1, r4
	mov	r0, r8
	str	r4, [sp, #88]
	bl	bzero
	mov	r1, r4
	mov	r0, r7
	str	r4, [sp, #128]
	bl	bzero
	ldr	r3, .L26+8
	ldr	r1, .L26+12
	ldr	r0, .L26+16
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r10, [r3, r2, lsl #2]
	ldr	r2, .L26+20
	str	r9, [r3, r1, lsl #2]
	str	r8, [r3, r0, lsl #2]
	ldr	r0, [r6, #8]
	str	r7, [sp]
	mov	r1, r5
	mov	r3, #0
	ldr	r2, [r2]
	bl	rib_lookup_info
	subs	r4, r0, #0
	bne	.L21
	ldr	r3, .L26+24
	ldr	r8, [sp, #24]
	ldr	r3, [r3]
	ldr	r9, .L26+28
	tst	r8, r3
	beq	.L4
	ldr	r3, [r9]
	tst	r8, r3
	beq	.L6
	ldr	r3, [sp, #36]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L26+32
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L6
	ldr	r1, .L26+36
	ldr	r2, .L26+40
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, [r3, #4]
	orr	r3, r2, r0
	tst	r3, r1
	bne	.L6
	mov	r2, #4
	ldr	r1, [r5, #28]
	ldr	r0, [sp, #148]
	bl	memcmp
	cmp	r0, #0
	bne	.L6
.L4:
	mov	r0, r7
	bl	rib_free_info
	ldr	r3, [r9]
	ands	r8, r8, r3
	bne	.L1
	ldr	r3, [sp, #36]
	cmp	r3, r6
	beq	.L12
	ldr	r3, .L26+44
	ldr	r2, [sp, #28]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L21
	ldr	r4, [r5, #4]
	add	r4, r5, r4
	cmp	r5, r4
	bcs	.L12
	sub	r2, r5, #1
	sub	r4, r4, #1
	add	ip, sp, #47
	add	r1, sp, #83
	b	.L9
.L24:
	cmp	r2, r4
	beq	.L23
.L9:
	ldrb	r0, [ip, #1]!	@ zero_extendqisi2
	ldrb	lr, [r2, #1]!	@ zero_extendqisi2
	ldrb	r3, [r1, #1]!	@ zero_extendqisi2
	eor	r0, r0, lr
	ands	r0, r0, r3
	beq	.L24
.L21:
	ldr	r3, .L26+48
	ldr	r4, [r3]
.L1:
	ldr	r3, .L26+4
	ldr	r2, [r3]
	ldr	r3, [sp, #156]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r4
	add	sp, sp, #160
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, r7
	bl	rib_free_info
	b	.L21
.L12:
	mov	r4, r8
	b	.L1
.L23:
	mov	r4, r0
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	AF_INET
	.word	.LC0
	.word	RTAX_DST
	.word	RTAX_NETMASK
	.word	RTAX_GATEWAY
	.word	NHR_REF
	.word	RTF_GATEWAY
	.word	RTF_HOST
	.word	IFT_ETHER
	.word	IFF_STATICARP
	.word	IFF_NOARP
	.word	RTA_NETMASK
	.word	EINVAL
	.size	in_lltable_rtcheck, .-in_lltable_rtcheck
	.comm	RTF_HOST,4,4
	.comm	RTF_GATEWAY,4,4
	.comm	RTA_NETMASK,4,4
	.comm	RTAX_NETMASK,4,4
	.comm	RTAX_GATEWAY,4,4
	.comm	RTAX_DST,4,4
	.comm	NHR_REF,4,4
	.comm	LOG_INFO,4,4
	.comm	INET_ADDRSTRLEN,4,4
	.comm	IFT_ETHER,4,4
	.comm	IFF_STATICARP,4,4
	.comm	IFF_NOARP,4,4
	.comm	EINVAL,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
