	.file	"extr_aes-unwrap.c_aes_unwrap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	aes_unwrap
	.type	aes_unwrap, @function
aes_unwrap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	mov	edx, 8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	mov	rsi, r13
	sub	rsp, 152
	.cfi_def_cfa_offset 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	lea	r12, 32[rsp]
	mov	rdi, r12
	call	os_memcpy@PLT
	mov	DWORD PTR 16[rsp], ebx
	sal	ebx, 3
	lea	rsi, 32[r13]
	mov	rdi, rbp
	mov	edx, ebx
	call	os_memcpy@PLT
	mov	esi, 16
	mov	rdi, r14
	call	aes_decrypt_init@PLT
	test	rax, rax
	je	.L2
	sub	ebx, 8
	lea	r14, 64[rsp]
	lea	r13, 96[rsp]
	mov	r15, rax
	movsx	rbx, ebx
	mov	DWORD PTR 20[rsp], 6
	lea	rax, 0[rbp+rbx*4]
	mov	ebx, DWORD PTR 16[rsp]
	mov	QWORD PTR 24[rsp], rax
	lea	eax, [rbx+rbx*4]
	mov	DWORD PTR 12[rsp], eax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 16[rsp]
	test	eax, eax
	jle	.L3
	mov	ebp, DWORD PTR 12[rsp]
	mov	rbx, QWORD PTR 24[rsp]
	add	ebp, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, 8
	mov	rsi, r12
	mov	rdi, r14
	call	os_memcpy@PLT
	mov	rsi, rbx
	mov	edx, 8
	mov	rdi, r13
	xor	DWORD PTR 92[rsp], ebp
	sub	ebp, 1
	call	os_memcpy@PLT
	mov	rdx, r14
	mov	rsi, r14
	mov	rdi, r15
	call	aes_decrypt@PLT
	mov	edx, 8
	mov	rsi, r14
	mov	rdi, r12
	call	os_memcpy@PLT
	mov	rdi, rbx
	mov	edx, 8
	mov	rsi, r13
	call	os_memcpy@PLT
	sub	rbx, 32
	cmp	ebp, DWORD PTR 12[rsp]
	jne	.L4
.L3:
	mov	ecx, DWORD PTR 16[rsp]
	sub	DWORD PTR 12[rsp], ecx
	sub	DWORD PTR 20[rsp], 1
	jne	.L5
	mov	rdi, r15
	call	aes_decrypt_deinit@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	DWORD PTR [r12], 166
	jne	.L2
	add	r12, 4
	cmp	r12, r14
	jne	.L6
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 136[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aes_unwrap, .-aes_unwrap
	.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_aes-unwrap.c_aes_unwrap.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	aes_unwrap
	.syntax unified
	.arm
	.fpu softvfp
	.type	aes_unwrap, %function
aes_unwrap:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	r9, r1
	mov	fp, r3
	mov	r5, r0
	sub	sp, sp, #108
	ldr	r3, .L18
	mov	r1, r2
	add	r0, sp, #4
	mov	r2, #8
	ldr	r3, [r3]
	str	r3, [sp, #100]
	mov	r3,#0
	bl	os_memcpy
	add	r1, r4, #32
	lsl	r2, r9, #3
	mov	r0, fp
	bl	os_memcpy
	mov	r0, r5
	mov	r1, #16
	bl	aes_decrypt_init
	subs	r8, r0, #0
	beq	.L2
	mov	r10, #6
	sub	r3, r9, #1
	add	fp, fp, r3, lsl #5
	add	r7, r9, r9, lsl #2
	add	r4, sp, #36
.L5:
	cmp	r9, #0
	ble	.L3
	mov	r6, fp
	add	r5, r7, r9
.L4:
	mov	r2, #8
	add	r1, sp, #4
	mov	r0, r4
	bl	os_memcpy
	ldr	r3, [sp, #64]
	mov	r1, r6
	eor	r3, r3, r5
	mov	r2, #8
	add	r0, sp, #68
	str	r3, [sp, #64]
	bl	os_memcpy
	mov	r2, r4
	mov	r1, r4
	mov	r0, r8
	bl	aes_decrypt
	mov	r2, #8
	mov	r1, r4
	add	r0, sp, #4
	bl	os_memcpy
	sub	r5, r5, #1
	mov	r0, r6
	mov	r2, #8
	add	r1, sp, #68
	bl	os_memcpy
	cmp	r5, r7
	sub	r6, r6, #32
	bne	.L4
.L3:
	subs	r10, r10, #1
	sub	r7, r7, r9
	bne	.L5
	mov	r0, r8
	bl	aes_decrypt_deinit
	add	r3, sp, #4
.L6:
	ldr	r2, [r3], #4
	cmp	r2, #166
	bne	.L2
	cmp	r3, r4
	bne	.L6
	mov	r0, #0
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mvn	r0, #0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	aes_unwrap, .-aes_unwrap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
