	.file	"extr_table.c_fix_kern.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fix_kern, @function
fix_kern:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR age_timer[rip]
	mov	esi, DWORD PTR walk_kern[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	edi, DWORD PTR rhead[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	DWORD PTR need_kern[rip], eax
	call	rn_walktree@PLT
	mov	edx, DWORD PTR kern_out[rip]
	xor	esi, esi
	xor	edi, edi
	call	ag_flush@PLT
	mov	eax, DWORD PTR KHASH_SIZE[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR khash_bins[rip]
	lea	r12, [rax+rbx*8]
.L35:
	mov	rbp, QWORD PTR [r12]
	test	rbp, rbp
	je	.L38
.L3:
	mov	ecx, DWORD PTR 0[rbp]
	test	DWORD PTR KS_STATIC[rip], ecx
	jne	.L39
	mov	rsi, QWORD PTR 8[rbp]
	cmp	rsi, QWORD PTR now[rip]
	jg	.L40
	test	DWORD PTR KS_DELETE[rip], ecx
	je	.L8
	test	DWORD PTR KS_DYNAMIC[rip], ecx
	je	.L41
.L8:
	test	DWORD PTR KS_DEL_ADD[rip], ecx
	jne	.L42
.L9:
	mov	eax, DWORD PTR KS_ADD[rip]
	test	eax, ecx
	je	.L10
	mov	edx, DWORD PTR KS_GATEWAY[rip]
	or	edx, DWORD PTR KS_DYNAMIC[rip]
	and	edx, ecx
	mov	esi, DWORD PTR RTM_ADD[rip]
	cmovne	edx, DWORD PTR RTF_GATEWAY[rip]
.L36:
	mov	rdi, rbp
	call	kern_ioctl@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR KS_ADD[rip]
	mov	edx, DWORD PTR KS_CHANGE[rip]
.L12:
	or	edx, eax
	or	edx, DWORD PTR KS_DEL_ADD[rip]
	lea	r12, 16[rbp]
	not	edx
	and	edx, ecx
	or	edx, DWORD PTR KS_DELETE[rip]
	mov	DWORD PTR 0[rbp], edx
	mov	rbp, QWORD PTR [r12]
	test	rbp, rbp
	jne	.L3
.L38:
	add	rbx, 1
	cmp	DWORD PTR KHASH_SIZE[rip], ebx
	jg	.L2
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR KS_CHANGE[rip]
	test	edx, ecx
	je	.L12
	mov	edx, DWORD PTR KS_GATEWAY[rip]
	or	edx, DWORD PTR KS_DYNAMIC[rip]
	and	edx, ecx
	mov	esi, DWORD PTR RTM_CHANGE[rip]
	cmovne	edx, DWORD PTR RTF_GATEWAY[rip]
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L39:
	xor	esi, esi
	mov	rdi, rbp
	lea	r12, 16[rbp]
	call	kern_check_static@PLT
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L42:
	mov	esi, DWORD PTR RTM_DELETE[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	kern_ioctl@PLT
	mov	ecx, DWORD PTR 0[rbp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edi, DWORD PTR need_kern[rip]
	lea	r12, 16[rbp]
	call	LIM_SEC@PLT
	mov	eax, DWORD PTR KS_DELETE[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L41:
	mov	esi, DWORD PTR RTM_DELETE[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	kern_ioctl@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	QWORD PTR [r12], rax
	call	free@PLT
	jmp	.L35
	.cfi_endproc
.LFE0:
	.size	fix_kern, .-fix_kern
	.comm	walk_kern,4,4
	.comm	rhead,4,4
	.comm	now,8,8
	.comm	need_kern,4,4
	.comm	khash_bins,8,8
	.comm	kern_out,4,4
	.comm	age_timer,4,4
	.comm	RTM_DELETE,4,4
	.comm	RTM_CHANGE,4,4
	.comm	RTM_ADD,4,4
	.comm	RTF_GATEWAY,4,4
	.comm	KS_STATIC,4,4
	.comm	KS_GATEWAY,4,4
	.comm	KS_DYNAMIC,4,4
	.comm	KS_DEL_ADD,4,4
	.comm	KS_DELETE,4,4
	.comm	KS_CHANGE,4,4
	.comm	KS_ADD,4,4
	.comm	KHASH_SIZE,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_table.c_fix_kern.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fix_kern, %function
fix_kern:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L43
	ldr	r2, .L43+4
	ldr	r1, .L43+8
	ldr	r3, [r3]
	ldr	ip, .L43+12
	ldr	r1, [r1]
	ldr	r0, [r2]
	sub	sp, sp, #12
	mov	r2, #0
	str	r3, [ip]
	bl	rn_walktree
	mov	r1, #0
	ldr	r3, .L43+16
	mov	r0, r1
	ldr	r2, [r3]
	bl	ag_flush
	ldr	r3, .L43+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L1
	mov	r3, #0
	mov	r9, r3
	ldr	r8, .L43+24
	ldr	r10, .L43+28
	ldr	r6, .L43+32
	ldr	fp, .L43+36
.L2:
	ldr	r3, .L43+40
	ldr	r3, [r3]
	ldr	r4, [r3, r9, lsl #2]
	add	r3, r3, r9, lsl #2
	cmp	r4, #0
	beq	.L14
	str	r9, [sp, #4]
	ldr	r5, .L43+44
	mov	r9, r3
	ldr	r7, .L43+48
	b	.L3
.L42:
	ldr	r3, .L43+52
	ldr	r2, .L43+56
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L43+60
	orr	r2, r2, r1
	ands	r2, r2, r0
	ldr	r1, [r3]
	beq	.L13
.L35:
	ldr	r3, .L43+64
	ldr	r2, [r3]
.L13:
	mov	r0, r4
	bl	kern_ioctl
	ldr	r0, [r4]
	ldr	r2, [r5]
	ldr	r1, [r7]
.L12:
	mov	r9, r4
	ldr	ip, [fp]
	orr	r2, r2, r1
	orr	r2, r2, ip
	ldr	r1, [r6]
	bic	r0, r0, r2
	orr	r0, r0, r1
	str	r0, [r9], #8
.L6:
	ldr	r4, [r9]
	cmp	r4, #0
	beq	.L37
.L3:
	ldr	r0, [r4]
	ldr	r2, [r8]
	tst	r0, r2
	bne	.L38
	ldr	r1, [r4, #4]
	ldr	r2, [r10]
	cmp	r1, r2
	bgt	.L39
	ldr	r2, [r6]
	tst	r0, r2
	beq	.L8
	ldr	r2, .L43+52
	ldr	r2, [r2]
	ands	r2, r0, r2
	beq	.L40
.L8:
	ldr	r3, [fp]
	tst	r0, r3
	bne	.L41
.L9:
	ldr	r2, [r5]
	tst	r2, r0
	bne	.L42
	ldr	r1, [r7]
	tst	r1, r0
	beq	.L12
	ldr	r2, .L43+56
	ldr	r3, .L43+52
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, .L43+68
	orr	r2, r2, r3
	ands	r2, r2, r0
	ldr	r1, [r1]
	beq	.L13
	b	.L35
.L38:
	mov	r0, r4
	mov	r1, #0
	add	r9, r4, #8
	bl	kern_check_static
	ldr	r4, [r9]
	cmp	r4, #0
	bne	.L3
.L37:
	ldr	r9, [sp, #4]
.L14:
	ldr	r3, .L43+20
	add	r9, r9, #1
	ldr	r3, [r3]
	cmp	r3, r9
	bgt	.L2
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	ldr	r3, .L43+72
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r3]
	bl	kern_ioctl
	ldr	r0, [r4]
	b	.L9
.L39:
	mov	r9, r4
	ldr	r3, .L43+12
	ldr	r0, [r3]
	bl	LIM_SEC
	ldr	r2, [r4]
	ldr	r1, [r6]
	orr	r2, r2, r1
	str	r2, [r9], #8
	b	.L6
.L40:
	ldr	r1, .L43+72
	mov	r0, r4
	ldr	r1, [r1]
	bl	kern_ioctl
	ldr	r2, [r4, #8]
	mov	r0, r4
	str	r2, [r9]
	bl	free
	b	.L6
.L44:
	.align	2
.L43:
	.word	age_timer
	.word	rhead
	.word	walk_kern
	.word	need_kern
	.word	kern_out
	.word	KHASH_SIZE
	.word	KS_STATIC
	.word	now
	.word	KS_DELETE
	.word	KS_DEL_ADD
	.word	khash_bins
	.word	KS_ADD
	.word	KS_CHANGE
	.word	KS_DYNAMIC
	.word	KS_GATEWAY
	.word	RTM_ADD
	.word	RTF_GATEWAY
	.word	RTM_CHANGE
	.word	RTM_DELETE
	.size	fix_kern, .-fix_kern
	.comm	walk_kern,4,4
	.comm	rhead,4,4
	.comm	now,4,4
	.comm	need_kern,4,4
	.comm	khash_bins,4,4
	.comm	kern_out,4,4
	.comm	age_timer,4,4
	.comm	RTM_DELETE,4,4
	.comm	RTM_CHANGE,4,4
	.comm	RTM_ADD,4,4
	.comm	RTF_GATEWAY,4,4
	.comm	KS_STATIC,4,4
	.comm	KS_GATEWAY,4,4
	.comm	KS_DYNAMIC,4,4
	.comm	KS_DEL_ADD,4,4
	.comm	KS_DELETE,4,4
	.comm	KS_CHANGE,4,4
	.comm	KS_ADD,4,4
	.comm	KHASH_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
