	.file	"extr_Proto_L2TP.c_SendL2TPControlPacket.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SendL2TPControlPacket
	.type	SendL2TPControlPacket, @function
SendL2TPControlPacket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	test	rsi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	sete	cl
	test	rbp, rbp
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sete	al
	or	cl, al
	jne	.L1
	mov	r12, rdi
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR 20[rsi]
	mov	DWORD PTR 0[rbp], 1
	mov	rdi, rbp
	mov	rbx, rsi
	mov	DWORD PTR 16[rbp], edx
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR 16[rsi]
	mov	DWORD PTR 4[rbp], eax
	add	eax, 1
	mov	DWORD PTR 16[rsi], eax
	mov	rax, QWORD PTR 8[rsi]
	add	rax, 1
	mov	QWORD PTR 8[rbp], rax
	call	BuildL2TPPacketData@PLT
	mov	edi, 24
	mov	r14, rax
	call	ZeroMalloc@PLT
	mov	rsi, rbx
	mov	rdi, r12
	mov	r13, rax
	mov	QWORD PTR 16[rax], r14
	mov	eax, DWORD PTR 4[rbp]
	mov	rdx, r13
	mov	DWORD PTR 8[r13], eax
	mov	rax, QWORD PTR L2TP_PACKET_RESEND_INTERVAL[rip]
	add	rax, QWORD PTR [r12]
	mov	QWORD PTR 0[r13], rax
	call	SendL2TPControlPacketMain@PLT
	mov	rsi, QWORD PTR 0[r13]
	mov	rdi, r12
	call	L2TPAddInterrupt@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	Add@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	SendL2TPControlPacket, .-SendL2TPControlPacket
	.comm	L2TP_PACKET_RESEND_INTERVAL,8,8
	.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_Proto_L2TP.c_SendL2TPControlPacket.c"
	.text
	.align	2
	.global	SendL2TPControlPacket
	.syntax unified
	.arm
	.fpu softvfp
	.type	SendL2TPControlPacket, %function
SendL2TPControlPacket:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	ip, r3
	cmp	r1, #0
	lsr	ip, ip, #5
	moveq	ip, #1
	cmp	r0, #0
	moveq	ip, #1
	cmp	ip, #0
	bxne	lr
	push	{r4, r5, r6, r7, r8, lr}
	mov	ip, #1
	mov	r4, r3
	mov	r6, r0
	ldr	r3, [r1, #4]
	ldr	r0, [r1, #8]
	ldr	lr, [r1, #12]
	add	r3, r3, ip
	str	ip, [r4]
	add	ip, r0, ip
	str	lr, [r4, #16]
	str	r2, [r4, #12]
	str	r0, [r4, #4]
	str	ip, [r1, #8]
	mov	r0, r4
	str	r3, [r4, #8]
	mov	r7, r1
	bl	BuildL2TPPacketData
	mov	r8, r0
	mov	r0, #12
	bl	ZeroMalloc
	mov	r5, r0
	ldr	r2, .L7
	ldr	r3, [r6]
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	add	r3, r3, r1
	stmib	r0, {r2, r8}
	mov	r1, r7
	mov	r2, r0
	str	r3, [r0]
	mov	r0, r6
	bl	SendL2TPControlPacketMain
	ldr	r1, [r5]
	mov	r0, r6
	bl	L2TPAddInterrupt
	mov	r1, r5
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, lr}
	b	Add
.L8:
	.align	2
.L7:
	.word	L2TP_PACKET_RESEND_INTERVAL
	.size	SendL2TPControlPacket, .-SendL2TPControlPacket
	.comm	L2TP_PACKET_RESEND_INTERVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
