	.file	"extr_safexcel.c_safexcel_handle_result_descriptor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to handle result (%d)\n"
	.text
	.p2align 4
	.type	safexcel_handle_result_descriptor, @function
safexcel_handle_result_descriptor:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rax, 32[rsp]
	mov	DWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, r12d
	mov	rdi, rbx
	call	EIP197_HIA_RDR@PLT
	add	rax, QWORD PTR EIP197_HIA_xDR_PROC_COUNT[rip]
	mov	rdi, rax
	call	readl@PLT
	mov	ecx, DWORD PTR EIP197_xDR_PROC_xD_PKT_OFFSET[rip]
	mov	edx, DWORD PTR EIP197_xDR_PROC_xD_PKT_MASK[rip]
	sar	eax, cl
	and	eax, edx
	mov	DWORD PTR 12[rsp], eax
	je	.L3
	jle	.L4
	xor	r13d, r13d
	xor	ebp, ebp
	lea	r14, 36[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	add	DWORD PTR 24[rsp], 1
	add	r13d, edx
	add	ebp, 1
	cmp	DWORD PTR 12[rsp], ebp
	je	.L19
.L8:
	mov	esi, r12d
	mov	rdi, rbx
	call	safexcel_rdr_req_get@PLT
	mov	edi, DWORD PTR 8[rax]
	mov	r15, rax
	call	crypto_tfm_ctx@PLT
	mov	rdx, r15
	mov	r8, QWORD PTR 16[rsp]
	mov	rcx, r14
	mov	esi, r12d
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	mov	edx, eax
	test	eax, eax
	js	.L20
	mov	eax, DWORD PTR 36[rsp]
	test	eax, eax
	je	.L7
	xor	eax, eax
	mov	DWORD PTR 28[rsp], edx
	call	local_bh_disable@PLT
	mov	esi, DWORD PTR 32[rsp]
	mov	rdi, r15
	call	[QWORD PTR [r15]]
	xor	eax, eax
	call	local_bh_enable@PLT
	mov	edx, DWORD PTR 28[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	test	ebp, ebp
	jne	.L6
.L17:
	mov	edx, DWORD PTR EIP197_xDR_PROC_xD_PKT_MASK[rip]
.L4:
	cmp	DWORD PTR 12[rsp], edx
	je	.L2
.L3:
	mov	rdi, QWORD PTR [rbx]
	movsx	rbp, r12d
	sal	rbp, 4
	add	rdi, rbp
	add	rdi, 4
	call	spin_lock_bh@PLT
	mov	rdx, QWORD PTR [rbx]
	movsx	rax, DWORD PTR 24[rsp]
	mov	esi, r12d
	mov	rdi, rbx
	add	rdx, rbp
	sub	QWORD PTR 8[rdx], rax
	call	safexcel_try_push_requests@PLT
	add	rbp, QWORD PTR [rbx]
	cmp	QWORD PTR 8[rbp], 0
	je	.L21
.L9:
	lea	rdi, 4[rbp]
	call	spin_unlock_bh@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 56
	.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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	ebp, DWORD PTR 12[rsp]
.L6:
	mov	esi, r12d
	mov	rdi, rbx
	call	EIP197_HIA_RDR@PLT
	mov	edi, ebp
	add	rax, QWORD PTR EIP197_HIA_xDR_PROC_COUNT[rip]
	mov	r14, rax
	call	EIP197_xDR_PROC_xD_PKT@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	ebp, eax
	imul	edi, r13d
	call	EIP197_xDR_PROC_xD_COUNT@PLT
	mov	edi, ebp
	mov	rsi, r14
	or	edi, eax
	call	writel@PLT
	jmp	.L17
.L21:
	mov	DWORD PTR 0[rbp], 0
	jmp	.L9
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	safexcel_handle_result_descriptor, .-safexcel_handle_result_descriptor
	.comm	EIP197_xDR_PROC_xD_PKT_OFFSET,4,4
	.comm	EIP197_xDR_PROC_xD_PKT_MASK,4,4
	.comm	EIP197_HIA_xDR_PROC_COUNT,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_safexcel.c_safexcel_handle_result_descriptor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to handle result (%d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	safexcel_handle_result_descriptor, %function
safexcel_handle_result_descriptor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L25
	sub	sp, sp, #28
	mov	r5, r0
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r9, #0
.L2:
	mov	r1, r6
	mov	r0, r5
	bl	EIP197_HIA_RDR
	ldr	r3, .L25+4
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	and	r10, r3, r0, asr r2
	cmp	r10, #0
	beq	.L3
	ble	.L4
	mov	r8, #0
	mov	r7, r8
	b	.L8
.L7:
	add	r7, r7, #1
	cmp	r10, r7
	add	r8, r8, fp
	add	r9, r9, #1
	beq	.L22
.L8:
	mov	r1, r6
	mov	r0, r5
	bl	safexcel_rdr_req_get
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	crypto_tfm_ctx
	add	r3, sp, #12
	str	r3, [sp]
	ldr	fp, [r0]
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	add	r3, sp, #16
	blx	fp
	subs	fp, r0, #0
	blt	.L23
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L7
	bl	local_bh_disable
	ldr	r3, [r4]
	ldr	r1, [sp, #12]
	mov	r0, r4
	blx	r3
	bl	local_bh_enable
	b	.L7
.L23:
	mov	r2, fp
	ldr	r1, .L25+16
	ldr	r0, [r5, #8]
	bl	dev_err
	cmp	r7, #0
	bne	.L6
.L20:
	ldr	r3, .L25+12
	ldr	r3, [r3]
.L4:
	cmp	r10, r3
	beq	.L2
.L3:
	ldr	r0, [r5]
	add	r4, r6, r6, lsl #1
	add	r0, r0, r4, lsl #2
	add	r0, r0, #4
	bl	spin_lock_bh
	ldr	r3, [r5]
	lsl	r4, r4, #2
	add	r3, r3, r4
	ldr	r2, [r3, #8]
	mov	r1, r6
	sub	r9, r2, r9
	str	r9, [r3, #8]
	mov	r0, r5
	bl	safexcel_try_push_requests
	ldr	r3, [r5]
	add	r0, r3, r4
	ldr	r2, [r0, #8]
	add	r0, r0, #4
	cmp	r2, #0
	streq	r2, [r3, r4]
	bl	spin_unlock_bh
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r7, r10
.L6:
	mov	r0, r7
	bl	EIP197_xDR_PROC_xD_PKT
	ldr	r3, [r5, #4]
	mov	r4, r0
	mul	r0, r3, r8
	bl	EIP197_xDR_PROC_xD_COUNT
	mov	r3, r0
	mov	r1, r6
	mov	r0, r5
	orr	r4, r4, r3
	bl	EIP197_HIA_RDR
	mov	r1, r0
	ldr	r3, .L25+4
	mov	r0, r4
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	writel
	b	.L20
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	EIP197_HIA_xDR_PROC_COUNT
	.word	EIP197_xDR_PROC_xD_PKT_OFFSET
	.word	EIP197_xDR_PROC_xD_PKT_MASK
	.word	.LC0
	.size	safexcel_handle_result_descriptor, .-safexcel_handle_result_descriptor
	.comm	EIP197_xDR_PROC_xD_PKT_OFFSET,4,4
	.comm	EIP197_xDR_PROC_xD_PKT_MASK,4,4
	.comm	EIP197_HIA_xDR_PROC_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
