	.file	"extr_tun.c_tun_net_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tun_net_init, @function
tun_net_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	netdev_priv@PLT
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR TUN_TYPE_MASK[rip]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L6
	lea	rax, tap_netdev_ops[rip]
	mov	rdi, rbx
	mov	QWORD PTR 32[rbx], rax
	call	ether_setup@PLT
	mov	eax, DWORD PTR IFF_TX_SKB_SHARING[rip]
	mov	rdi, rbx
	not	eax
	and	eax, DWORD PTR 28[rbx]
	or	eax, DWORD PTR IFF_LIVE_ADDR_CHANGE[rip]
	mov	DWORD PTR 28[rbx], eax
	call	eth_hw_addr_random@PLT
.L6:
	mov	rax, QWORD PTR 8[rbx]
.L4:
	mov	rcx, QWORD PTR MAX_MTU[rip]
	mov	edx, DWORD PTR MIN_MTU[rip]
	sub	rcx, rax
	mov	DWORD PTR 24[rbx], edx
	mov	QWORD PTR 16[rbx], rcx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rax, tun_netdev_ops[rip]
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR 32[rbx], rax
	mov	eax, DWORD PTR ARPHRD_NONE[rip]
	mov	DWORD PTR 44[rbx], 0
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR IFF_POINTOPOINT[rip]
	or	eax, DWORD PTR IFF_NOARP[rip]
	or	eax, DWORD PTR IFF_MULTICAST[rip]
	mov	DWORD PTR [rbx], 1500
	mov	DWORD PTR 4[rbx], eax
	xor	eax, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	tun_net_init, .-tun_net_init
	.comm	tun_netdev_ops,4,4
	.comm	tap_netdev_ops,4,4
	.comm	TUN_TYPE_MASK,4,4
	.comm	MIN_MTU,4,4
	.comm	MAX_MTU,8,8
	.comm	IFF_TX_SKB_SHARING,4,4
	.comm	IFF_POINTOPOINT,4,4
	.comm	IFF_NOARP,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_LIVE_ADDR_CHANGE,4,4
	.comm	ARPHRD_NONE,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_tun.c_tun_net_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tun_net_init, %function
tun_net_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	netdev_priv
	ldr	r2, .L8
	ldr	r3, [r0]
	ldr	r2, [r2]
	and	r3, r3, r2
	cmp	r3, #128
	beq	.L2
	cmp	r3, #129
	bne	.L6
	ldr	r3, .L8+4
	mov	r0, r4
	str	r3, [r4, #24]
	bl	ether_setup
	ldr	r3, .L8+8
	ldr	r2, .L8+12
	ldr	r1, [r3]
	ldr	r3, [r4, #20]
	ldr	r2, [r2]
	bic	r3, r3, r1
	orr	r3, r3, r2
	mov	r0, r4
	str	r3, [r4, #20]
	bl	eth_hw_addr_random
.L6:
	ldr	r2, [r4, #8]
.L4:
	ldr	r3, .L8+16
	ldr	r1, .L8+20
	ldr	r3, [r3]
	ldr	r1, [r1]
	sub	r3, r3, r2
	str	r3, [r4, #12]
	str	r1, [r4, #16]
	pop	{r4, pc}
.L2:
	mov	r3, #0
	ldr	r0, .L8+24
	ldr	r2, .L8+28
	ldr	r1, .L8+32
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, .L8+36
	orr	r2, r2, ip
	orr	r2, r2, r1
	ldr	ip, [r0]
	ldr	r1, .L8+40
	ldr	r0, .L8+44
	str	r2, [r4, #4]
	str	ip, [r4, #28]
	mov	r2, r3
	str	r3, [r4, #8]
	str	r3, [r4, #32]
	str	r0, [r4, #24]
	str	r1, [r4]
	b	.L4
.L9:
	.align	2
.L8:
	.word	TUN_TYPE_MASK
	.word	tap_netdev_ops
	.word	IFF_TX_SKB_SHARING
	.word	IFF_LIVE_ADDR_CHANGE
	.word	MAX_MTU
	.word	MIN_MTU
	.word	IFF_NOARP
	.word	IFF_POINTOPOINT
	.word	IFF_MULTICAST
	.word	ARPHRD_NONE
	.word	1500
	.word	tun_netdev_ops
	.size	tun_net_init, .-tun_net_init
	.comm	tun_netdev_ops,4,4
	.comm	tap_netdev_ops,4,4
	.comm	TUN_TYPE_MASK,4,4
	.comm	MIN_MTU,4,4
	.comm	MAX_MTU,4,4
	.comm	IFF_TX_SKB_SHARING,4,4
	.comm	IFF_POINTOPOINT,4,4
	.comm	IFF_NOARP,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_LIVE_ADDR_CHANGE,4,4
	.comm	ARPHRD_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
