	.file	"extr_sit.c_ipip6_tunnel_locate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sit%%d"
	.text
	.p2align 4
	.type	ipip6_tunnel_locate, @function
ipip6_tunnel_locate:
.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
	.cfi_offset 15, -24
	mov	r15, rsi
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	r8, QWORD PTR 24[rsi]
	mov	rbx, QWORD PTR 32[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR IFNAMSIZ[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rsi, rax
	and	rax, -4096
	sub	rcx, rax
	and	rsi, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L37:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L37
.L3:
	and	esi, 4095
	sub	rsp, rsi
	test	rsi, rsi
	jne	.L38
.L4:
	mov	esi, DWORD PTR sit_net_id[rip]
	mov	rdi, r13
	mov	DWORD PTR -84[rbp], edx
	mov	r14, rsp
	mov	QWORD PTR -80[rbp], r8
	call	net_generic@PLT
	mov	rsi, r15
	mov	rdi, rax
	mov	QWORD PTR -72[rbp], rax
	call	__ipip6_bucket@PLT
	mov	r8, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	r12, QWORD PTR [rax]
	test	r12, r12
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12, QWORD PTR 40[r12]
	test	r12, r12
	je	.L5
.L8:
	cmp	QWORD PTR 32[r12], rbx
	jne	.L6
	cmp	QWORD PTR 24[r12], r8
	jne	.L6
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR [r15], rax
	jne	.L6
	test	edx, edx
	je	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	test	edx, edx
	je	.L35
	mov	rsi, QWORD PTR 16[r15]
	cmp	QWORD PTR [rsi], 0
	je	.L10
	mov	edx, DWORD PTR IFNAMSIZ[rip]
	mov	rdi, r14
	call	strlcpy@PLT
.L11:
	mov	edx, DWORD PTR ipip6_tunnel_setup[rip]
	mov	rsi, r14
	mov	edi, 48
	call	alloc_netdev@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L35
	mov	rsi, r13
	mov	rdi, rax
	call	dev_net_set@PLT
	mov	esi, 37
	mov	rdi, r14
	call	strchr@PLT
	test	rax, rax
	je	.L16
	mov	rsi, r14
	mov	rdi, rbx
	call	dev_alloc_name@PLT
	test	rax, rax
	js	.L15
.L16:
	mov	rdi, rbx
	call	netdev_priv@PLT
	movdqu	xmm0, XMMWORD PTR [r15]
	mov	rdi, rbx
	mov	r12, rax
	movups	XMMWORD PTR [rax], xmm0
	movdqu	xmm1, XMMWORD PTR 16[r15]
	movups	XMMWORD PTR 16[rax], xmm1
	mov	rax, QWORD PTR 32[r15]
	mov	QWORD PTR 32[r12], rax
	call	ipip6_tunnel_init@PLT
	mov	eax, DWORD PTR 8[r15]
	test	DWORD PTR SIT_ISATAP[rip], eax
	je	.L14
	mov	eax, DWORD PTR IFF_ISATAP[rip]
	or	DWORD PTR [rbx], eax
.L14:
	mov	rdi, rbx
	call	register_netdevice@PLT
	test	rax, rax
	js	.L15
	mov	rdi, rbx
	call	dev_hold@PLT
	mov	rdi, QWORD PTR -72[rbp]
	mov	rsi, r12
	call	ipip6_tunnel_link@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L39
	lea	rsp, -40[rbp]
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	sprintf@PLT
	jmp	.L11
.L38:
	or	QWORD PTR -8[rsp+rsi], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbx
	xor	r12d, r12d
	call	free_netdev@PLT
	jmp	.L1
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ipip6_tunnel_locate, .-ipip6_tunnel_locate
	.comm	sit_net_id,4,4
	.comm	ipip6_tunnel_setup,4,4
	.comm	SIT_ISATAP,4,4
	.comm	IFNAMSIZ,4,4
	.comm	IFF_ISATAP,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_sit.c_ipip6_tunnel_locate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sit%%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipip6_tunnel_locate, %function
ipip6_tunnel_locate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r6, r1
	mov	r8, r2
	ldr	r2, .L33
	ldr	r1, .L33+4
	ldr	r3, [r2]
	ldr	r1, [r1]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L33+8
	mov	r9, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r7, [r6, #12]
	ldr	r5, [r6, #16]
	bl	net_generic
	mov	r1, r6
	str	r0, [fp, #-48]
	bl	__ipip6_bucket
	ldr	r4, [r0]
	mov	r10, sp
	cmp	r4, #0
	ldr	r2, .L33
	bne	.L5
	b	.L2
.L3:
	ldr	r4, [r4, #20]
	cmp	r4, #0
	beq	.L2
.L5:
	ldr	r1, [r4, #16]
	cmp	r1, r5
	bne	.L3
	ldr	r1, [r4, #12]
	cmp	r1, r7
	bne	.L3
	ldr	r0, [r6]
	ldr	r1, [r4]
	cmp	r0, r1
	bne	.L3
	cmp	r8, #0
	beq	.L1
.L29:
	mov	r4, #0
	b	.L1
.L2:
	cmp	r8, #0
	beq	.L29
	ldr	r1, [r6, #8]
	ldr	r0, [r1]
	cmp	r0, #0
	bne	.L31
	mov	r0, r10
	ldr	r1, .L33+12
	bl	sprintf
.L8:
	ldr	r2, .L33+16
	mov	r1, r10
	mov	r0, #24
	ldr	r2, [r2]
	bl	alloc_netdev
	subs	r5, r0, #0
	beq	.L29
	mov	r1, r9
	bl	dev_net_set
	mov	r1, #37
	mov	r0, r10
	bl	strchr
	cmp	r0, #0
	beq	.L13
	mov	r1, r10
	mov	r0, r5
	bl	dev_alloc_name
	cmp	r0, #0
	blt	.L12
.L13:
	mov	r0, r5
	bl	netdev_priv
	mov	lr, r6
	mov	ip, r0
	mov	r4, r0
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	mov	r0, r5
	str	r3, [ip]
	bl	ipip6_tunnel_init
	ldr	r3, .L33+20
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L11
	ldr	r2, .L33+24
	ldr	r3, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5]
.L11:
	mov	r0, r5
	bl	register_netdevice
	cmp	r0, #0
	blt	.L12
	mov	r0, r5
	bl	dev_hold
	mov	r1, r4
	ldr	r0, [fp, #-48]
	bl	ipip6_tunnel_link
.L1:
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	mov	r0, r10
	ldr	r2, [r2]
	bl	strlcpy
	b	.L8
.L12:
	mov	r0, r5
	bl	free_netdev
	mov	r4, #0
	b	.L1
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	IFNAMSIZ
	.word	sit_net_id
	.word	.LC1
	.word	.LC0
	.word	ipip6_tunnel_setup
	.word	SIT_ISATAP
	.word	IFF_ISATAP
	.size	ipip6_tunnel_locate, .-ipip6_tunnel_locate
	.comm	sit_net_id,4,4
	.comm	ipip6_tunnel_setup,4,4
	.comm	SIT_ISATAP,4,4
	.comm	IFNAMSIZ,4,4
	.comm	IFF_ISATAP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
