	.file	"extr_forward.c_encrypt_sign.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	encrypt_sign
	.type	encrypt_sign, @function
encrypt_sign:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	add	rdi, 44
	lea	r12, 8[rbx]
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR 28[rdi]
	mov	rbp, QWORD PTR -28[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	FRAME_HEADROOM@PLT
	lea	r14, 4[r13]
	mov	esi, eax
	mov	rdi, r14
	call	buf_init@PLT
	mov	edi, eax
	call	ASSERT@PLT
	mov	rdi, QWORD PTR 32[rbx]
	test	rdi, rdi
	je	.L2
	mov	rdx, rsp
	mov	rsi, r12
	call	tls_pre_encrypt@PLT
	cmp	QWORD PTR 8[rbx], 0
	jle	.L13
	mov	rdi, QWORD PTR 32[rbx]
	cmp	QWORD PTR [rdi], 0
	jne	.L15
.L13:
	mov	rdx, QWORD PTR [rsp]
.L4:
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, r12
	call	openvpn_encrypt@PLT
	mov	rdi, QWORD PTR 32[rbx]
	test	rdi, rdi
	je	.L6
	cmp	QWORD PTR 8[rbx], 0
	jle	.L7
	cmp	QWORD PTR [rdi], 0
	je	.L16
.L7:
	mov	rsi, r12
	call	tls_post_encrypt@PLT
.L6:
	mov	rdi, rbx
	call	get_link_socket_info@PLT
	lea	rdx, 28[rbx]
	mov	rdi, r12
	mov	esi, eax
	call	link_socket_get_outgoing_addr@PLT
	lea	rsi, 24[rbx]
	mov	rcx, r13
	mov	rdx, r12
	mov	rdi, rbp
	call	buffer_turnover@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdx, 40[rbx]
	mov	QWORD PTR [rsp], rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, r12
	call	tls_prepend_opcode_v1@PLT
	mov	rdi, QWORD PTR 32[rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, r14
	call	tls_prepend_opcode_v2@PLT
	jmp	.L13
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	encrypt_sign, .-encrypt_sign
	.comm	CAS_SUCCEEDED,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_forward.c_encrypt_sign.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encrypt_sign
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypt_sign, %function
encrypt_sign:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r3, #0
	mov	r4, r0
	ldr	r2, .L21
	sub	sp, sp, #8
	ldr	r6, [r0, #44]
	add	r0, r0, #28
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r8, [r4, #8]
	str	r3, [sp]
	bl	FRAME_HEADROOM
	add	r7, r6, #4
	mov	r1, r0
	mov	r0, r7
	bl	buf_init
	bl	ASSERT
	ldr	r0, [r4, #20]
	add	r5, r4, #4
	cmp	r0, #0
	addeq	r2, r4, #24
	streq	r2, [sp]
	beq	.L4
	mov	r2, sp
	mov	r1, r5
	bl	tls_pre_encrypt
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L16
	ldr	r0, [r4, #20]
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L18
.L16:
	ldr	r2, [sp]
.L4:
	mov	r0, r5
	ldr	r1, [r6, #4]
	bl	openvpn_encrypt
	ldr	r0, [r4, #20]
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L7
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L19
.L7:
	mov	r1, r5
	bl	tls_post_encrypt
.L6:
	mov	r0, r4
	bl	get_link_socket_info
	add	r2, r4, #16
	mov	r1, r0
	mov	r0, r5
	bl	link_socket_get_outgoing_addr
	mov	r3, r6
	mov	r2, r5
	mov	r0, r8
	add	r1, r4, #12
	bl	buffer_turnover
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r1, r5
	bl	tls_prepend_opcode_v1
	ldr	r0, [r4, #20]
	b	.L7
.L18:
	mov	r1, r7
	bl	tls_prepend_opcode_v2
	b	.L16
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.size	encrypt_sign, .-encrypt_sign
	.comm	CAS_SUCCEEDED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
