	.file	"extr_Proto_IKE.c_IPsecSendUdpPacket.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	IPsecSendUdpPacket
	.type	IPsecSendUdpPacket, @function
IPsecSendUdpPacket:
.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, 4096
	.cfi_def_cfa_offset 4152
	or	QWORD PTR [rsp], 0
	sub	rsp, 2344
	.cfi_def_cfa_offset 6496
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 6424[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rbp, rsi
	test	rsi, rsi
	je	.L1
	mov	r14, r8
	test	r8, r8
	je	.L1
	mov	r13d, r9d
	test	r9d, r9d
	je	.L1
	lea	ebx, 32[r9]
	mov	DWORD PTR 4[rsp], 1
	mov	r12, rdi
	lea	r15, 16[rsp]
	cmp	ebx, 6400
	ja	.L17
.L7:
	mov	edi, edx
	mov	DWORD PTR 8[rsp], ecx
	call	Endian16@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	QWORD PTR 24[r15], rax
	mov	edi, ecx
	call	Endian16@PLT
	mov	edi, ebx
	mov	QWORD PTR 16[r15], rax
	call	Endian16@PLT
	mov	QWORD PTR [r15], 0
	mov	edx, r13d
	mov	rsi, r14
	mov	QWORD PTR 8[r15], rax
	lea	rdi, 128[r15]
	call	Copy@PLT
	lea	rdi, 36[rbp]
	call	IsIP6@PLT
	test	rax, rax
	jne	.L18
.L8:
	mov	r8d, DWORD PTR IP_PROTO_UDP[rip]
	mov	ecx, ebx
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r12
	call	IPsecSendPacketByIkeClient@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L19
.L1:
	mov	rax, QWORD PTR 6424[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 6440
	.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
.L19:
	.cfi_restore_state
	mov	rdi, r15
	call	Free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR 32[rbp]
	call	IsIPsecSaTunnelMode@PLT
	test	eax, eax
	jne	.L9
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	xor	r9d, r9d
	mov	r8d, ebx
	mov	edx, DWORD PTR IP_PROTO_UDP[rip]
	mov	rcx, r15
	call	CalcChecksumForIPv6@PLT
	mov	QWORD PTR [r15], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, ebx
	mov	DWORD PTR 12[rsp], ecx
	mov	DWORD PTR 8[rsp], edx
	call	Malloc@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 8[rsp]
	mov	DWORD PTR 4[rsp], 0
	mov	r15, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR IP_PROTO_UDP[rip]
	xor	r9d, r9d
	mov	r8d, ebx
	mov	rsi, QWORD PTR 0[rbp]
	mov	rcx, r15
	call	CalcChecksumForIPv6@PLT
	mov	QWORD PTR [r15], rax
	jmp	.L8
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	IPsecSendUdpPacket, .-IPsecSendUdpPacket
	.comm	IP_PROTO_UDP,4,4
	.comm	IPSEC_PORT_L2TP,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_Proto_IKE.c_IPsecSendUdpPacket.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	IPsecSendUdpPacket
	.syntax unified
	.arm
	.fpu softvfp
	.type	IPsecSendUdpPacket, %function
IPsecSendUdpPacket:
	@ args = 8, pretend = 0, frame = 6408
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #6400
	sub	sp, sp, #20
	mov	r7, r2
	mov	r9, r3
	ldr	r2, .L19
	add	r3, sp, #6400
	ldr	r2, [r2]
	str	r2, [r3, #12]
	mov	r2,#0
	cmp	r1, #0
	cmpne	r0, #0
	add	r3, r3, #12
	add	r3, sp, #6400
	add	r3, r3, #56
	ldr	fp, [r3]
	beq	.L1
	add	r3, sp, #6400
	add	r3, r3, #60
	ldr	r3, [r3]
	cmp	fp, #0
	clz	ip, r3
	lsr	ip, ip, #5
	movne	r4, ip
	moveq	r4, #1
	cmp	r4, #0
	bne	.L1
	add	r3, sp, #6400
	add	r3, r3, #60
	ldr	r3, [r3]
	mov	r6, r0
	add	r10, r3, #16
	cmp	r10, #6400
	mov	r5, r1
	movls	r4, #1
	addls	r8, sp, #12
	bhi	.L16
.L6:
	mov	r0, r7
	bl	Endian16
	mov	r2, r0
	mov	r0, r9
	str	r2, [r8, #12]
	bl	Endian16
	mov	r3, r0
	mov	r0, r10
	str	r3, [r8, #8]
	bl	Endian16
	mov	r7, #0
	mov	r3, r8
	add	r2, sp, #6400
	str	r0, [r8, #4]
	add	r2, r2, #60
	str	r7, [r3], #64
	mov	r1, fp
	mov	r0, r3
	ldr	r2, [r2]
	bl	Copy
	add	r0, r5, #20
	bl	IsIP6
	cmp	r0, r7
	bne	.L13
	ldr	r9, .L19+4
.L7:
	ldr	r2, [r9]
	mov	r3, r10
	str	r2, [sp]
	mov	r1, r5
	mov	r0, r6
	mov	r2, r8
	bl	IPsecSendPacketByIkeClient
	cmp	r4, #0
	beq	.L17
.L1:
	add	r3, sp, #6400
	ldr	r2, .L19
	add	r3, r3, #12
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L18
	add	sp, sp, #6400
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r0, r8
	bl	Free
	b	.L1
.L13:
	ldr	r0, [r5, #16]
	bl	IsIPsecSaTunnelMode
	cmp	r0, #0
	ldr	r9, .L19+4
	bne	.L8
	str	r0, [sp, #4]
	str	r10, [sp]
	mov	r3, r8
	ldr	r2, [r9]
	ldr	r1, [r5, #8]
	ldr	r0, [r5, #12]
	bl	CalcChecksumForIPv6
	str	r0, [r8]
	b	.L7
.L16:
	mov	r0, r10
	bl	Malloc
	mov	r8, r0
	b	.L6
.L8:
	str	r7, [sp, #4]
	str	r10, [sp]
	mov	r3, r8
	ldr	r2, [r9]
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	bl	CalcChecksumForIPv6
	str	r0, [r8]
	b	.L7
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	IP_PROTO_UDP
	.size	IPsecSendUdpPacket, .-IPsecSendUdpPacket
	.comm	IP_PROTO_UDP,4,4
	.comm	IPSEC_PORT_L2TP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
