	.file	"extr_pn_netlink.c_route_doit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	route_doit, @function
route_doit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	sock_net@PLT
	mov	rcx, rsp
	mov	r13, rax
	mov	eax, DWORD PTR RTA_MAX[rip]
	add	eax, 1
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L25:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L25
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L26
.L4:
	mov	esi, DWORD PTR CAP_NET_ADMIN[rip]
	mov	rdi, r14
	mov	r15, rsp
	call	netlink_capable@PLT
	test	eax, eax
	jne	.L5
.L22:
	mov	r12d, DWORD PTR EPERM[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR CAP_SYS_ADMIN[rip]
	mov	rdi, r14
	call	netlink_capable@PLT
	test	eax, eax
	je	.L22
	xor	eax, eax
	call	ASSERT_RTNL@PLT
	mov	r9, r12
	mov	rdx, r15
	mov	esi, 16
	mov	r8d, DWORD PTR rtm_phonet_policy[rip]
	mov	ecx, DWORD PTR RTA_MAX[rip]
	mov	rdi, rbx
	call	nlmsg_parse_deprecated@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, rbx
	call	nlmsg_data@PLT
	mov	rcx, QWORD PTR RT_TABLE_MAIN[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L23
	mov	rcx, QWORD PTR RTN_UNICAST[rip]
	cmp	QWORD PTR 8[rax], rcx
	jne	.L23
	mov	rax, QWORD PTR RTA_DST[rip]
	mov	rdi, QWORD PTR [r15+rax*8]
	test	rdi, rdi
	je	.L23
	mov	rax, QWORD PTR RTA_OIF[rip]
	cmp	QWORD PTR [r15+rax*8], 0
	je	.L23
	call	nla_get_u8@PLT
	mov	r14d, eax
	test	al, 3
	jne	.L23
	mov	rax, QWORD PTR RTA_OIF[rip]
	mov	rdi, QWORD PTR [r15+rax*8]
	call	nla_get_u32@PLT
	mov	rdi, r13
	mov	esi, eax
	call	__dev_get_by_index@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	r13, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR RTM_NEWROUTE[rip]
	mov	esi, r14d
	mov	rdi, r13
	cmp	QWORD PTR [rbx], rax
	je	.L28
	call	phonet_route_del@PLT
	mov	r12d, eax
.L13:
	test	r12d, r12d
	jne	.L1
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r14d
	mov	rsi, r13
	call	rtm_phonet_notify@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
.L28:
	call	phonet_route_add@PLT
	mov	r12d, eax
	jmp	.L13
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	route_doit, .-route_doit
	.comm	rtm_phonet_policy,4,4
	.comm	RT_TABLE_MAIN,8,8
	.comm	RTN_UNICAST,8,8
	.comm	RTM_NEWROUTE,8,8
	.comm	RTA_OIF,8,8
	.comm	RTA_MAX,4,4
	.comm	RTA_DST,8,8
	.comm	EPERM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	CAP_SYS_ADMIN,4,4
	.comm	CAP_NET_ADMIN,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_pn_netlink.c_route_doit.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	route_doit, %function
route_doit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	ldr	r3, .L25
	mov	r7, r0
	ldr	r0, [r0]
	mov	r4, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	sock_net
	ldr	r6, .L25+4
	ldr	r2, .L25+8
	ldr	r3, [r6]
	mov	r8, r0
	lsl	r3, r3, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	mov	r0, r7
	ldr	r1, [r2]
	sub	sp, sp, r3
	bl	netlink_capable
	cmp	r0, #0
	bne	.L2
.L19:
	ldr	r3, .L25+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r5
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L2:
	ldr	r3, .L25+16
	mov	r0, r7
	ldr	r1, [r3]
	bl	netlink_capable
	cmp	r0, #0
	beq	.L19
	bl	ASSERT_RTNL
	ldr	r3, .L25+20
	str	r5, [sp, #4]
	ldr	r2, [r3]
	add	r9, sp, #8
	ldr	r3, [r6]
	mov	r1, #8
	str	r2, [sp]
	mov	r0, r4
	mov	r2, r9
	bl	nlmsg_parse_deprecated
	subs	r5, r0, #0
	blt	.L1
	mov	r0, r4
	bl	nlmsg_data
	ldr	r3, .L25+24
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L20
	ldr	r3, .L25+28
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L20
	ldr	r3, .L25+32
	ldr	r3, [r3]
	ldr	r0, [r9, r3, lsl #2]
	cmp	r0, #0
	beq	.L20
	ldr	r5, .L25+36
	ldr	r3, [r5]
	ldr	r3, [r9, r3, lsl #2]
	cmp	r3, #0
	beq	.L20
	bl	nla_get_u8
	tst	r0, #3
	mov	r6, r0
	bne	.L20
	ldr	r3, [r5]
	ldr	r0, [r9, r3, lsl #2]
	bl	nla_get_u32
	mov	r1, r0
	mov	r0, r8
	bl	__dev_get_by_index
	subs	r7, r0, #0
	beq	.L23
	ldr	r3, .L25+40
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r1, r6
	cmp	r2, r3
	mov	r0, r7
	beq	.L24
	bl	phonet_route_del
	mov	r5, r0
.L10:
	cmp	r5, #0
	bne	.L1
	mov	r2, r6
	mov	r1, r7
	ldr	r0, [r4]
	bl	rtm_phonet_notify
	b	.L1
.L20:
	ldr	r3, .L25+44
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L24:
	bl	phonet_route_add
	mov	r5, r0
	b	.L10
.L23:
	ldr	r3, .L25+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L22:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	RTA_MAX
	.word	CAP_NET_ADMIN
	.word	EPERM
	.word	CAP_SYS_ADMIN
	.word	rtm_phonet_policy
	.word	RT_TABLE_MAIN
	.word	RTN_UNICAST
	.word	RTA_DST
	.word	RTA_OIF
	.word	RTM_NEWROUTE
	.word	EINVAL
	.word	ENODEV
	.size	route_doit, .-route_doit
	.comm	rtm_phonet_policy,4,4
	.comm	RT_TABLE_MAIN,4,4
	.comm	RTN_UNICAST,4,4
	.comm	RTM_NEWROUTE,4,4
	.comm	RTA_OIF,4,4
	.comm	RTA_MAX,4,4
	.comm	RTA_DST,4,4
	.comm	EPERM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	CAP_SYS_ADMIN,4,4
	.comm	CAP_NET_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
