	.file	"extr_net_crypto.c_wipe_crypto_connection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wipe_crypto_connection, @function
wipe_crypto_connection:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, esi
	mov	esi, ebx
	call	crypt_connection_id_not_valid@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, QWORD PTR 8[rbp]
	sal	rbx, 4
	mov	esi, 4
	add	rdi, rbx
	mov	r12d, DWORD PTR 8[rdi]
	call	sodium_memzero@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	DWORD PTR 8[rdi+rbx], r12d
	mov	r12d, DWORD PTR 0[rbp]
	test	r12d, r12d
	je	.L14
	movsx	rbx, r12d
	sal	rbx, 4
	sub	rbx, 16
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	add	rdi, 8
	sub	rbx, 16
	call	pthread_mutex_destroy@PLT
	sub	r12d, 1
	je	.L5
	mov	rdi, QWORD PTR 8[rbp]
.L4:
	add	rdi, rbx
	mov	rax, QWORD PTR CRYPTO_CONN_NO_CONNECTION[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L16
.L5:
	cmp	r12d, DWORD PTR 0[rbp]
	je	.L14
	mov	DWORD PTR 0[rbp], r12d
	mov	esi, r12d
	mov	rdi, rbp
	call	realloc_cryptoconnection@PLT
.L14:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	wipe_crypto_connection, .-wipe_crypto_connection
	.comm	CRYPTO_CONN_NO_CONNECTION,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_net_crypto.c_wipe_crypto_connection.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wipe_crypto_connection, %function
wipe_crypto_connection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	bl	crypt_connection_id_not_valid
	subs	r6, r0, #0
	bne	.L6
	ldr	r0, [r5, #4]
	mov	r1, #4
	add	r0, r0, r7, lsl #3
	ldr	r8, [r0, #4]
	bl	sodium_memzero
	ldr	r0, [r5, #4]
	ldr	r4, [r5]
	lsl	r7, r7, #3
	add	r7, r0, r7
	cmp	r4, #0
	str	r8, [r7, #4]
	beq	.L1
	ldr	r7, .L14
	b	.L3
.L13:
	bl	pthread_mutex_destroy
	subs	r4, r4, #1
	beq	.L4
	ldr	r0, [r5, #4]
.L3:
	lsl	r3, r4, #3
	sub	r3, r3, #8
	ldr	r1, [r0, r3]
	ldr	r2, [r7]
	add	r0, r0, r3
	cmp	r1, r2
	add	r0, r0, #4
	beq	.L13
.L4:
	ldr	r3, [r5]
	cmp	r4, r3
	beq	.L1
	mov	r1, r4
	mov	r0, r5
	str	r4, [r5]
	bl	realloc_cryptoconnection
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mvn	r6, #0
	b	.L1
.L15:
	.align	2
.L14:
	.word	CRYPTO_CONN_NO_CONNECTION
	.size	wipe_crypto_connection, .-wipe_crypto_connection
	.comm	CRYPTO_CONN_NO_CONNECTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
