	.file	"extr_kull_m_crypto.c_kull_m_crypto_DeriveKeyRaw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kull_m_crypto_DeriveKeyRaw
	.type	kull_m_crypto_DeriveKeyRaw, @function
kull_m_crypto_DeriveKeyRaw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 1160
	.cfi_def_cfa_offset 1216
	mov	QWORD PTR [rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1144[rsp], rax
	xor	eax, eax
	cmp	rdx, r8
	jl	.L2
	mov	rdx, r8
	mov	rdi, rcx
	mov	r12d, 1
	call	RtlCopyMemory@PLT
.L1:
	mov	rax, QWORD PTR 1144[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 1160
	.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	rbp, 16[rsp]
	mov	rbx, rdx
	mov	esi, 256
	mov	r13d, edi
	mov	edx, 54
	mov	rdi, rbp
	lea	r14, 272[rsp]
	call	RtlFillMemory@PLT
	mov	edx, 92
	mov	esi, 256
	mov	rdi, r14
	call	RtlFillMemory@PLT
	test	rbx, rbx
	jle	.L4
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR [r12+rax*4]
	xor	DWORD PTR 0[rbp+rax*4], edx
	xor	DWORD PTR [r14+rax*4], edx
	add	rax, 1
	cmp	rbx, rax
	jne	.L5
.L4:
	mov	r8, rbx
	mov	edx, 256
	mov	rsi, rbp
	mov	edi, r13d
	lea	r10, 528[rsp]
	mov	rcx, r10
	mov	QWORD PTR 8[rsp], r10
	call	kull_m_crypto_hash@PLT
	mov	r10, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r12d, eax
	je	.L1
	lea	rcx, [r10+rbx*4]
	mov	r8, rbx
	mov	edx, 256
	mov	rsi, r14
	mov	edi, r13d
	call	kull_m_crypto_hash@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	lea	esi, [rbx+rbx]
	mov	rdi, r15
	call	min@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	rdx, rax
	mov	rsi, r10
	call	RtlCopyMemory@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kull_m_crypto_DeriveKeyRaw, .-kull_m_crypto_DeriveKeyRaw
	.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_crypto.c_kull_m_crypto_DeriveKeyRaw.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kull_m_crypto_DeriveKeyRaw
	.syntax unified
	.arm
	.fpu softvfp
	.type	kull_m_crypto_DeriveKeyRaw, %function
kull_m_crypto_DeriveKeyRaw:
	@ args = 4, pretend = 0, frame = 1128
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #1136
	ldr	r8, [sp, #1160]
	mov	r7, r3
	ldr	r3, .L17
	cmp	r2, r8
	ldr	r3, [r3]
	str	r3, [sp, #1132]
	mov	r3,#0
	blt	.L2
	mov	r2, r8
	mov	r0, r7
	bl	RtlCopyMemory
	mov	r4, #1
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #1132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #1136
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r2
	mov	r6, r0
	mov	r2, #54
	mov	r4, r1
	add	r0, sp, #12
	mov	r1, #256
	bl	RtlFillMemory
	mov	r2, #92
	mov	r1, #256
	add	r0, sp, #268
	bl	RtlFillMemory
	cmp	r5, #0
	ble	.L4
	sub	r1, r4, #4
	add	r4, r1, r5, lsl #2
	add	r0, sp, #8
	add	r2, sp, #264
.L5:
	ldr	lr, [r1, #4]!
	ldr	r3, [r0, #4]!
	ldr	ip, [r2, #4]!
	eor	r3, r3, lr
	eor	ip, ip, lr
	cmp	r1, r4
	str	r3, [r0]
	str	ip, [r2]
	bne	.L5
.L4:
	mov	r2, #256
	mov	r0, r6
	str	r5, [sp]
	add	r1, sp, #12
	add	r3, sp, #524
	bl	kull_m_crypto_hash
	subs	r4, r0, #0
	beq	.L1
	add	r3, sp, #524
	mov	r0, r6
	mov	r2, #256
	str	r5, [sp]
	add	r1, sp, #268
	add	r3, r3, r5, lsl #2
	bl	kull_m_crypto_hash
	subs	r4, r0, #0
	beq	.L1
	lsl	r1, r5, #1
	mov	r0, r8
	bl	min
	add	r1, sp, #524
	mov	r2, r0
	mov	r0, r7
	bl	RtlCopyMemory
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	kull_m_crypto_DeriveKeyRaw, .-kull_m_crypto_DeriveKeyRaw
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
