	.file	"extr_route.c_rt6_get_dflt_router.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rt6_get_dflt_router
	.type	rt6_get_dflt_router, @function
rt6_get_dflt_router:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR RT6_TABLE_DFLT[rip]
	call	dev_net@PLT
	mov	edi, eax
	mov	esi, r12d
	call	fib6_get_table@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	mov	r13, rax
	call	write_lock_bh@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r12, QWORD PTR 8[r12]
	test	r12, r12
	je	.L3
	cmp	QWORD PTR 24[r12], rbx
	jne	.L17
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR RTF_ADDRCONF[rip]
	or	eax, DWORD PTR RTF_DEFAULT[rip]
	and	edx, eax
	cmp	eax, edx
	jne	.L17
	lea	rdi, 16[r12]
	mov	rsi, rbp
	call	ipv6_addr_equal@PLT
	test	rax, rax
	je	.L17
	lea	rdi, 8[r12]
	call	dst_hold@PLT
	mov	rdi, r13
	call	write_unlock_bh@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r13
	xor	r12d, r12d
	call	write_unlock_bh@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rt6_get_dflt_router, .-rt6_get_dflt_router
	.comm	RTF_DEFAULT,4,4
	.comm	RTF_ADDRCONF,4,4
	.comm	RT6_TABLE_DFLT,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_route.c_rt6_get_dflt_router.c"
	.text
	.align	2
	.global	rt6_get_dflt_router
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt6_get_dflt_router, %function
rt6_get_dflt_router:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	bl	dev_net
	ldr	r3, .L18
	ldr	r1, [r3]
	bl	fib6_get_table
	subs	r4, r0, #0
	beq	.L1
	bl	write_lock_bh
	mov	r7, r4
	ldr	r4, [r4, #4]
	cmp	r4, #0
	beq	.L3
	ldr	r9, .L18+4
	ldr	r8, .L18+8
	b	.L5
.L6:
	ldr	r4, [r4, #4]
	cmp	r4, #0
	beq	.L3
.L5:
	ldr	r3, [r4, #12]
	cmp	r3, r5
	bne	.L6
	ldr	r3, [r9]
	ldr	r1, [r8]
	ldr	r2, [r4]
	orr	r3, r3, r1
	bics	r3, r3, r2
	bne	.L6
	mov	r1, r6
	add	r0, r4, #8
	bl	ipv6_addr_equal
	cmp	r0, #0
	beq	.L6
	add	r0, r4, #4
	bl	dst_hold
	mov	r0, r7
	bl	write_unlock_bh
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r4, #0
	mov	r0, r7
	bl	write_unlock_bh
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	.align	2
.L18:
	.word	RT6_TABLE_DFLT
	.word	RTF_ADDRCONF
	.word	RTF_DEFAULT
	.size	rt6_get_dflt_router, .-rt6_get_dflt_router
	.comm	RTF_DEFAULT,4,4
	.comm	RTF_ADDRCONF,4,4
	.comm	RT6_TABLE_DFLT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
