	.file	"extr_rsaenh.c_clean_up_aes_environment.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%08x\n"
	.text
	.p2align 4
	.type	clean_up_aes_environment, @function
clean_up_aes_environment:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 1
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR hProv[rip]
	call	CryptReleaseContext@PLT
	mov	ebx, eax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	r12, rax
	test	ebx, ebx
	je	.L7
.L2:
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	call	ok@PLT
	mov	r8d, DWORD PTR CRYPT_DELETEKEYSET[rip]
	mov	ecx, DWORD PTR PROV_RSA_AES[rip]
	xor	edx, edx
	mov	esi, DWORD PTR szContainer[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, hProv[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	CryptAcquireContextA@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	cmp	QWORD PTR NTE_BAD_FLAGS[rip], rax
	sete	dil
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	clean_up_aes_environment, .-clean_up_aes_environment
	.comm	szContainer,4,4
	.comm	hProv,4,4
	.comm	PROV_RSA_AES,4,4
	.comm	NTE_BAD_FLAGS,8,8
	.comm	CRYPT_DELETEKEYSET,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_rsaenh.c_clean_up_aes_environment.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_up_aes_environment, %function
clean_up_aes_environment:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L7
	mov	r1, #1
	ldr	r0, [r3]
	sub	sp, sp, #8
	bl	CryptReleaseContext
	cmp	r0, #0
	movne	r4, #0
	beq	.L6
.L2:
	bl	GetLastError
	ldr	r1, .L7+4
	mov	r2, r0
	mov	r0, r4
	bl	ok
	ldr	r2, .L7+8
	ldr	r3, .L7+12
	ldr	r1, [r2]
	ldr	r2, .L7+16
	str	r1, [sp]
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r0, .L7
	bl	CryptAcquireContextA
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L6:
	bl	GetLastError
	ldr	r3, .L7+20
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	lsr	r4, r4, #5
	b	.L2
.L8:
	.align	2
.L7:
	.word	hProv
	.word	.LC0
	.word	CRYPT_DELETEKEYSET
	.word	PROV_RSA_AES
	.word	szContainer
	.word	NTE_BAD_FLAGS
	.size	clean_up_aes_environment, .-clean_up_aes_environment
	.comm	szContainer,4,4
	.comm	hProv,4,4
	.comm	PROV_RSA_AES,4,4
	.comm	NTE_BAD_FLAGS,4,4
	.comm	CRYPT_DELETEKEYSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
