	.file	"extr_kull_m_dpapi.c_kull_m_dpapi_unprotect_raw_or_blob.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kull_m_dpapi_unprotect_raw_or_blob
	.type	kull_m_dpapi_unprotect_raw_or_blob, @function
kull_m_dpapi_unprotect_raw_or_blob:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	mov	rdx, r8
	mov	r8, r9
	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, 136
	.cfi_def_cfa_offset 192
	mov	r12d, DWORD PTR FALSE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	movsx	rax, edi
	cmp	QWORD PTR 216[rsp], 0
	mov	QWORD PTR 16[rsp], rsi
	mov	QWORD PTR 24[rsp], rax
	movsx	rax, ecx
	mov	r14, QWORD PTR 200[rsp]
	mov	QWORD PTR 48[rsp], rdx
	mov	rbx, QWORD PTR 208[rsp]
	mov	QWORD PTR 8[rsp], rdx
	mov	QWORD PTR 56[rsp], rax
	movaps	XMMWORD PTR 32[rsp], xmm0
	movaps	XMMWORD PTR 64[rsp], xmm0
	je	.L2
	cmp	QWORD PTR 224[rsp], 0
	je	.L2
	mov	r15, rcx
	call	kull_m_dpapi_blob_create@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	push	rbx
	.cfi_def_cfa_offset 200
	mov	rcx, r15
	mov	rdi, rax
	push	r14
	.cfi_def_cfa_offset 208
	mov	rdx, QWORD PTR 24[rsp]
	mov	r9d, DWORD PTR 248[rsp]
	mov	rsi, QWORD PTR 232[rsp]
	mov	r8, rdx
	mov	rdx, QWORD PTR 240[rsp]
	call	kull_m_dpapi_unprotect_blob@PLT
	pop	rcx
	.cfi_def_cfa_offset 200
	pop	rsi
	.cfi_def_cfa_offset 192
	mov	r12d, eax
	test	r13, r13
	je	.L6
	test	eax, eax
	je	.L6
	cmp	QWORD PTR 8[rbp], 0
	je	.L6
	mov	rsi, QWORD PTR 0[rbp]
	test	rsi, rsi
	je	.L6
	mov	edi, DWORD PTR LPTR[rip]
	call	LocalAlloc@PLT
	mov	QWORD PTR 0[r13], rax
	test	rax, rax
	je	.L6
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 0[rbp]
	mov	rdi, rax
	call	RtlCopyMemory@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	kull_m_dpapi_blob_delete@PLT
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	lea	rdx, 48[rsp]
	lea	rdi, 16[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	xor	ecx, ecx
	lea	rax, 88[rsp]
	mov	rsi, r13
	push	rax
	.cfi_def_cfa_offset 208
	mov	r9, QWORD PTR 208[rsp]
	call	CryptUnprotectData@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 200
	pop	rdx
	.cfi_def_cfa_offset 192
	test	r12d, r12d
	je	.L1
	mov	rsi, QWORD PTR 88[rsp]
	mov	edi, DWORD PTR LPTR[rip]
	mov	QWORD PTR [rbx], rsi
	call	LocalAlloc@PLT
	mov	QWORD PTR [r14], rax
	test	rax, rax
	jne	.L37
.L8:
	mov	rdi, QWORD PTR 80[rsp]
	call	LocalFree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, rax
	call	RtlCopyMemory@PLT
	jmp	.L8
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kull_m_dpapi_unprotect_raw_or_blob, .-kull_m_dpapi_unprotect_raw_or_blob
	.comm	LPTR,4,4
	.comm	FALSE,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_kull_m_dpapi.c_kull_m_dpapi_unprotect_raw_or_blob.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kull_m_dpapi_unprotect_raw_or_blob
	.syntax unified
	.arm
	.fpu softvfp
	.type	kull_m_dpapi_unprotect_raw_or_blob, %function
kull_m_dpapi_unprotect_raw_or_blob:
	@ args = 32, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #76
	ldr	r8, [sp, #136]
	ldr	r7, [sp, #132]
	subs	lr, r8, #0
	movne	lr, #1
	cmp	r7, #0
	mov	ip, #0
	moveq	lr, #0
	str	r3, [sp, #40]
	mov	r9, r3
	ldr	r3, .L32
	str	r1, [sp, #20]
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	ldr	r4, .L32+4
	ldr	r3, [sp, #112]
	cmp	lr, ip
	mov	r5, r2
	ldr	r4, [r4]
	ldr	r2, [sp, #116]
	ldr	fp, [sp, #124]
	ldr	r10, [sp, #128]
	str	r0, [sp, #24]
	str	ip, [sp, #28]
	str	ip, [sp, #44]
	str	ip, [sp, #32]
	str	ip, [sp, #48]
	str	r3, [sp, #36]
	beq	.L2
	bl	kull_m_dpapi_blob_create
	subs	r6, r0, #0
	beq	.L1
	ldr	r3, [sp, #140]
	mov	r2, r8
	str	r3, [sp, #4]
	ldr	r3, [sp, #112]
	mov	r1, r7
	str	r3, [sp]
	str	r10, [sp, #12]
	mov	r3, r9
	str	fp, [sp, #8]
	bl	kull_m_dpapi_unprotect_blob
	cmp	r5, #0
	cmpne	r0, #0
	mov	r4, r0
	bne	.L29
.L5:
	mov	r0, r6
	bl	kull_m_dpapi_blob_delete
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r4
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [sp, #120]
	add	r0, sp, #52
	stm	sp, {r2, r3}
	str	r0, [sp, #8]
	mov	r3, lr
	mov	r1, r5
	add	r2, sp, #36
	add	r0, sp, #20
	bl	CryptUnprotectData
	subs	r4, r0, #0
	beq	.L1
	ldr	r1, [sp, #56]
	ldr	r3, .L32+8
	str	r1, [r10]
	ldr	r0, [r3]
	bl	LocalAlloc
	cmp	r0, #0
	str	r0, [fp]
	bne	.L31
.L7:
	ldr	r0, [sp, #52]
	bl	LocalFree
	b	.L1
.L29:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L5
	ldr	r1, [r6]
	cmp	r1, #0
	beq	.L5
	ldr	r3, .L32+8
	ldr	r0, [r3]
	bl	LocalAlloc
	cmp	r0, #0
	str	r0, [r5]
	beq	.L5
	ldr	r2, [r6]
	ldr	r1, [r6, #4]
	bl	RtlCopyMemory
	b	.L5
.L31:
	ldr	r2, [r10]
	ldr	r1, [sp, #52]
	bl	RtlCopyMemory
	b	.L7
.L30:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	FALSE
	.word	LPTR
	.size	kull_m_dpapi_unprotect_raw_or_blob, .-kull_m_dpapi_unprotect_raw_or_blob
	.comm	LPTR,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
