	.file	"extr_route.c_redirect_default_route_to_vpn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s VPN gateway parameter (--route-gateway or --ifconfig) is missing"
	.align 8
.LC1:
	.string	"%s Cannot read current default gateway from system"
	.align 8
.LC2:
	.string	"%s Cannot obtain current remote host address"
	.align 8
.LC3:
	.string	"ROUTE remote_host is NOT LOCAL"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"ROUTE remote_host is LOCAL"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"ROUTE remote_host protocol differs from tunneled"
	.text
	.p2align 4
	.type	redirect_default_route_to_vpn, @function
redirect_default_route_to_vpn:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	movdqa	xmm0, XMMWORD PTR .LC6[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 40[rsp], 2960672
	movabs	rax, 8746403228958156576
	movaps	XMMWORD PTR [rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC7[rip]
	mov	QWORD PTR 32[rsp], rax
	movaps	XMMWORD PTR 16[rsp], xmm0
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	test	DWORD PTR RG_ENABLE[rip], eax
	jne	.L35
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 72
	.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
.L35:
	.cfi_restore_state
	mov	r12, rsi
	mov	esi, DWORD PTR RG_LOCAL[rip]
	mov	r13, rcx
	mov	r14d, edx
	mov	ecx, DWORD PTR 16[rdi]
	mov	rbp, r8
	and	esi, eax
	test	DWORD PTR RTSA_REMOTE_ENDPOINT[rip], ecx
	jne	.L3
	test	DWORD PTR RG_REROUTE_GW[rip], eax
	je	.L3
	mov	edi, DWORD PTR M_WARN[rip]
	mov	rdx, rsp
	lea	rsi, .LC0[rip]
	call	msg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR 8[rbx]
	and	edx, DWORD PTR RGI_ADDR_DEFINED[rip]
	or	edx, esi
	jne	.L4
	mov	rdi, QWORD PTR IPV4_INVALID_ADDR[rip]
	cmp	QWORD PTR 24[rbx], rdi
	jne	.L37
.L4:
	test	DWORD PTR RTSA_REMOTE_HOST[rip], ecx
	je	.L38
	lea	r15, 8[rbx]
	test	DWORD PTR RG_AUTO_LOCAL[rip], eax
	je	.L6
	mov	eax, DWORD PTR 32[rbx]
	cmp	DWORD PTR TLA_NONLOCAL[rip], eax
	je	.L39
	cmp	DWORD PTR TLA_LOCAL[rip], eax
	je	.L40
.L6:
	test	esi, esi
	jne	.L9
.L8:
	mov	rdi, QWORD PTR 24[rbx]
	cmp	rdi, QWORD PTR IPV4_INVALID_ADDR[rip]
	je	.L10
	mov	edx, DWORD PTR 12[rbx]
	mov	r8d, DWORD PTR ROUTE_REF_GW[rip]
	push	rbp
	.cfi_def_cfa_offset 136
	mov	r9, r15
	push	r13
	.cfi_def_cfa_offset 144
	mov	esi, DWORD PTR IPV4_NETMASK_HOST[rip]
	mov	rcx, r12
	or	r8d, r14d
	call	add_route3@PLT
	mov	eax, DWORD PTR RL_DID_LOCAL[rip]
	or	DWORD PTR 4[rbx], eax
	pop	r9
	.cfi_def_cfa_offset 136
	pop	r10
	.cfi_def_cfa_offset 128
.L9:
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	esi, DWORD PTR 12[rbx]
	lea	rdi, 40[rbx]
	mov	r8, r15
	push	rbp
	.cfi_def_cfa_offset 144
	mov	r9, r13
	mov	ecx, r14d
	mov	rdx, r12
	call	add_bypass_routes@PLT
	pop	rdi
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR [rbx]
	pop	r8
	.cfi_def_cfa_offset 128
	test	DWORD PTR RG_REROUTE_GW[rip], eax
	je	.L11
	test	DWORD PTR RG_DEF1[rip], eax
	jne	.L41
	mov	eax, DWORD PTR 8[rbx]
	test	DWORD PTR RGI_ADDR_DEFINED[rip], eax
	jne	.L42
.L13:
	mov	edx, DWORD PTR 36[rbx]
	push	rbp
	.cfi_def_cfa_offset 136
	mov	r9, r15
	mov	r8d, r14d
	push	r13
	.cfi_def_cfa_offset 144
	mov	rcx, r12
	xor	esi, esi
	xor	edi, edi
	call	add_route3@PLT
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
.L11:
	mov	eax, DWORD PTR RL_DID_REDIRECT_DEFAULT_GATEWAY[rip]
	or	DWORD PTR 4[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	edi, DWORD PTR M_WARN[rip]
	mov	rdx, rsp
	lea	rsi, .LC2[rip]
	call	msg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	edi, DWORD PTR M_WARN[rip]
	mov	rdx, rsp
	lea	rsi, .LC1[rip]
	call	msg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edx, DWORD PTR 12[rbx]
	mov	r8d, DWORD PTR ROUTE_REF_GW[rip]
	push	rbp
	.cfi_def_cfa_offset 136
	mov	rcx, r12
	push	r13
	.cfi_def_cfa_offset 144
	xor	esi, esi
	mov	r9, r15
	xor	edi, edi
	or	r8d, r14d
	call	del_route3@PLT
	pop	rcx
	.cfi_def_cfa_offset 136
	pop	rsi
	.cfi_def_cfa_offset 128
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR D_ROUTE[rip]
	lea	rsi, .LC5[rip]
	call	dmsg@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edx, DWORD PTR 36[rbx]
	push	rbp
	.cfi_def_cfa_offset 136
	mov	r9, r15
	mov	r8d, r14d
	push	r13
	.cfi_def_cfa_offset 144
	mov	rcx, r12
	mov	esi, -2147483648
	xor	edi, edi
	call	add_route3@PLT
	mov	edx, DWORD PTR 36[rbx]
	push	rbp
	.cfi_def_cfa_offset 152
	mov	r9, r15
	push	r13
	.cfi_def_cfa_offset 160
	mov	r8d, r14d
	mov	rcx, r12
	mov	esi, -2147483648
	mov	edi, -2147483648
	call	add_route3@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 128
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L39:
	mov	edi, DWORD PTR D_ROUTE[rip]
	lea	rsi, .LC3[rip]
	call	dmsg@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edi, DWORD PTR D_ROUTE[rip]
	lea	rsi, .LC4[rip]
	call	dmsg@PLT
	jmp	.L9
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	redirect_default_route_to_vpn, .-redirect_default_route_to_vpn
	.comm	TLA_NONLOCAL,4,4
	.comm	TLA_LOCAL,4,4
	.comm	RTSA_REMOTE_HOST,4,4
	.comm	RTSA_REMOTE_ENDPOINT,4,4
	.comm	ROUTE_REF_GW,4,4
	.comm	RL_DID_REDIRECT_DEFAULT_GATEWAY,4,4
	.comm	RL_DID_LOCAL,4,4
	.comm	RG_REROUTE_GW,4,4
	.comm	RG_LOCAL,4,4
	.comm	RG_ENABLE,4,4
	.comm	RG_DEF1,4,4
	.comm	RG_AUTO_LOCAL,4,4
	.comm	RGI_ADDR_DEFINED,4,4
	.comm	M_WARN,4,4
	.comm	IPV4_NETMASK_HOST,4,4
	.comm	IPV4_INVALID_ADDR,8,8
	.comm	D_ROUTE,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC6:
	.quad	7959303351090564942
	.quad	2337214414117954145
	.align 16
.LC7:
	.quad	8386658473162859890
	.quad	8389209267074589728
	.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_redirect_default_route_to_vpn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"%s VPN gateway parameter (--route-gateway or --ifco"
	.ascii	"nfig) is missing\000"
	.align	2
.LC2:
	.ascii	"%s Cannot read current default gateway from system\000"
	.align	2
.LC3:
	.ascii	"%s Cannot obtain current remote host address\000"
	.align	2
.LC4:
	.ascii	"ROUTE remote_host is NOT LOCAL\000"
	.align	2
.LC5:
	.ascii	"ROUTE remote_host is LOCAL\000"
	.align	2
.LC6:
	.ascii	"ROUTE remote_host protocol differs from tunneled\000"
	.align	2
.LC0:
	.ascii	"NOTE: unable to redirect default gateway --\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	redirect_default_route_to_vpn, %function
redirect_default_route_to_vpn:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	lr, .L44
	sub	sp, sp, #64
	add	ip, sp, #16
	mov	r7, r1
	mov	r6, r2
	mov	r5, r3
	subs	r4, r0, #0
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	ldr	r3, .L44+4
	ldr	r8, [sp, #96]
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	stm	ip, {r0, r1, r2}
	beq	.L1
	ldr	r3, .L44+8
	ldr	r0, [r4]
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L36
.L1:
	ldr	r3, .L44+4
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L36:
	ldr	r2, .L44+12
	ldr	r3, .L44+16
	ldr	r2, [r2]
	ldr	r1, [r4, #16]
	ldr	r3, [r3]
	tst	r1, r2
	and	r3, r3, r0
	bne	.L3
	ldr	r2, .L44+20
	ldr	r2, [r2]
	tst	r0, r2
	beq	.L3
	ldr	r3, .L44+24
	ldr	r1, .L44+28
	ldr	r0, [r3]
	add	r2, sp, #16
	bl	msg
	b	.L1
.L3:
	ldr	r9, .L44+32
	ldr	r2, [r4, #8]
	ldr	ip, [r9]
	and	r2, r2, ip
	orrs	r2, r2, r3
	bne	.L4
	ldr	r2, .L44+36
	ldr	ip, [r4, #20]
	ldr	r2, [r2]
	cmp	ip, r2
	bne	.L38
.L4:
	ldr	r2, .L44+40
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L39
	ldr	r2, .L44+44
	add	r10, r4, #8
	ldr	r2, [r2]
	tst	r0, r2
	beq	.L6
	ldr	r1, .L44+48
	ldr	r2, [r4, #24]
	ldr	r1, [r1]
	cmp	r1, r2
	beq	.L40
	ldr	r1, .L44+52
	ldr	r1, [r1]
	cmp	r1, r2
	beq	.L41
.L6:
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, .L44+36
	ldr	r0, [r4, #20]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L10
	ldr	r3, .L44+56
	ldr	r2, .L44+60
	ldr	r3, [r3]
	str	r8, [sp, #12]
	orr	r3, r6, r3
	stm	sp, {r3, r10}
	str	r5, [sp, #8]
	mov	r3, r7
	ldr	r1, [r2]
	ldr	r2, [r4, #12]
	bl	add_route3
	ldr	r2, .L44+64
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #4]
.L9:
	stmib	sp, {r5, r8}
	str	r10, [sp]
	mov	r3, r6
	ldr	r1, [r4, #12]
	mov	r2, r7
	add	r0, r4, #32
	bl	add_bypass_routes
	ldr	r3, .L44+20
	ldr	r1, [r4]
	ldr	r3, [r3]
	tst	r1, r3
	beq	.L11
	ldr	r3, .L44+68
	ldr	r3, [r3]
	ands	r1, r1, r3
	bne	.L42
	ldr	r3, [r9]
	ldr	r2, [r4, #8]
	tst	r2, r3
	bne	.L43
.L13:
	mov	r1, #0
.L34:
	stm	sp, {r6, r10}
	str	r8, [sp, #12]
	str	r5, [sp, #8]
	mov	r3, r7
	mov	r0, r1
	ldr	r2, [r4, #28]
	bl	add_route3
.L11:
	ldr	r2, .L44+72
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #4]
	b	.L1
.L39:
	ldr	r3, .L44+24
	ldr	r1, .L44+76
	ldr	r0, [r3]
	add	r2, sp, #16
	bl	msg
	b	.L1
.L38:
	ldr	r3, .L44+24
	ldr	r1, .L44+80
	ldr	r0, [r3]
	add	r2, sp, #16
	bl	msg
	b	.L1
.L43:
	ldr	r3, .L44+56
	str	r8, [sp, #12]
	ldr	r3, [r3]
	str	r5, [sp, #8]
	orr	r3, r6, r3
	stm	sp, {r3, r10}
	mov	r0, r1
	mov	r3, r7
	ldr	r2, [r4, #12]
	bl	del_route3
	b	.L13
.L10:
	ldr	r3, .L44+84
	ldr	r1, .L44+88
	ldr	r0, [r3]
	bl	dmsg
	b	.L9
.L42:
	stm	sp, {r6, r10}
	str	r8, [sp, #12]
	str	r5, [sp, #8]
	mov	r1, #-2147483648
	mov	r3, r7
	mov	r0, #0
	ldr	r2, [r4, #28]
	bl	add_route3
	mov	r1, #-2147483648
	b	.L34
.L40:
	ldr	r3, .L44+84
	ldr	r1, .L44+92
	ldr	r0, [r3]
	bl	dmsg
	b	.L8
.L41:
	ldr	r3, .L44+84
	ldr	r1, .L44+96
	ldr	r0, [r3]
	bl	dmsg
	b	.L9
.L37:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC0
	.word	.LC7
	.word	RG_ENABLE
	.word	RTSA_REMOTE_ENDPOINT
	.word	RG_LOCAL
	.word	RG_REROUTE_GW
	.word	M_WARN
	.word	.LC1
	.word	RGI_ADDR_DEFINED
	.word	IPV4_INVALID_ADDR
	.word	RTSA_REMOTE_HOST
	.word	RG_AUTO_LOCAL
	.word	TLA_NONLOCAL
	.word	TLA_LOCAL
	.word	ROUTE_REF_GW
	.word	IPV4_NETMASK_HOST
	.word	RL_DID_LOCAL
	.word	RG_DEF1
	.word	RL_DID_REDIRECT_DEFAULT_GATEWAY
	.word	.LC3
	.word	.LC2
	.word	D_ROUTE
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	redirect_default_route_to_vpn, .-redirect_default_route_to_vpn
	.comm	TLA_NONLOCAL,4,4
	.comm	TLA_LOCAL,4,4
	.comm	RTSA_REMOTE_HOST,4,4
	.comm	RTSA_REMOTE_ENDPOINT,4,4
	.comm	ROUTE_REF_GW,4,4
	.comm	RL_DID_REDIRECT_DEFAULT_GATEWAY,4,4
	.comm	RL_DID_LOCAL,4,4
	.comm	RG_REROUTE_GW,4,4
	.comm	RG_LOCAL,4,4
	.comm	RG_ENABLE,4,4
	.comm	RG_DEF1,4,4
	.comm	RG_AUTO_LOCAL,4,4
	.comm	RGI_ADDR_DEFINED,4,4
	.comm	M_WARN,4,4
	.comm	IPV4_NETMASK_HOST,4,4
	.comm	IPV4_INVALID_ADDR,4,4
	.comm	D_ROUTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
