	.file	"extr_cptvf_reqmanager.c_process_pending_queue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DMA Fault"
.LC1:
	.string	"Software error"
.LC2:
	.string	"Pending Entry post arg NULL\n"
.LC3:
	.string	"Request failed with %s\n"
.LC4:
	.string	"Request timed out"
	.text
	.p2align 4
	.type	process_pending_queue, @function
process_pending_queue:
.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
	mov	r13d, edx
	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, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR 24[rsp], rdi
	mov	QWORD PTR 16[rsp], rax
	movsx	rax, edx
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR [rsi]
	lea	rbx, [rax+rdx*8]
	lea	rax, 12[rbx]
	lea	rbp, 8[rbx]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	rcx, QWORD PTR [rbx]
	xor	edi, edi
	sal	rcx, 5
	add	rcx, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR [rcx]
	mov	r14, rcx
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L14
	mov	r15, QWORD PTR 16[r14]
	xor	edi, edi
	test	r15, r15
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L17
	mov	rax, QWORD PTR 24[r14]
	movzx	edx, BYTE PTR [rax]
	cmp	BYTE PTR CPT_COMP_E_FAULT[rip], dl
	je	.L9
	cmp	BYTE PTR CPT_COMP_E_SWERR[rip], dl
	je	.L18
	cmp	BYTE PTR COMPLETION_CODE_INIT[rip], dl
	je	.L19
.L8:
	mov	QWORD PTR 24[r14], 0
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR [r14], 0
	mov	QWORD PTR 16[r14], 0
	mov	BYTE PTR 7[rsp], dl
	call	atomic64_dec@PLT
	mov	esi, r13d
	mov	rdi, r12
	call	pending_queue_inc_front@PLT
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	mov	edi, DWORD PTR 16[r15]
	mov	rsi, r15
	call	do_post_process@PLT
	mov	esi, DWORD PTR 4[r14]
	movzx	edi, BYTE PTR 7[rsp]
	call	[QWORD PTR 8[r14]]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, DWORD PTR CPT_COMMAND_TIMEOUT[rip]
	imul	esi, DWORD PTR HZ[rip]
	mov	BYTE PTR 7[rsp], dl
	mov	rdi, QWORD PTR jiffies[rip]
	movsx	rsi, esi
	add	rsi, QWORD PTR 24[r15]
	call	time_after_eq@PLT
	movzx	edx, BYTE PTR 7[rsp]
	test	rax, rax
	je	.L8
	mov	rdi, QWORD PTR 16[rsp]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 16[rsp]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, r12
	mov	esi, r13d
	call	pending_queue_inc_front@PLT
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdx, .LC0[rip]
.L6:
	mov	rdi, QWORD PTR 16[rsp]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
.L15:
	mov	QWORD PTR 24[r14], 0
	lea	rdi, 12[rbx]
	mov	DWORD PTR [r14], 0
	call	atomic64_dec@PLT
	mov	QWORD PTR 16[r14], 0
	mov	esi, r13d
	mov	rdi, r12
	call	pending_queue_inc_front@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r15
	call	do_request_cleanup@PLT
.L14:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	spin_unlock_bh@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	rdx, .LC1[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	process_pending_queue, .-process_pending_queue
	.comm	jiffies,8,8
	.comm	TIME_IN_RESET_COUNT,8,8
	.comm	HZ,4,4
	.comm	CPT_COMP_E_SWERR,1,1
	.comm	CPT_COMP_E_FAULT,1,1
	.comm	CPT_COMMAND_TIMEOUT,4,4
	.comm	COMPLETION_CODE_INIT,1,1
	.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_cptvf_reqmanager.c_process_pending_queue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Software error\000"
	.align	2
.LC1:
	.ascii	"DMA Fault\000"
	.align	2
.LC2:
	.ascii	"Pending Entry post arg NULL\012\000"
	.align	2
.LC3:
	.ascii	"Request failed with %s\012\000"
	.align	2
.LC4:
	.ascii	"Request timed out\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_pending_queue, %function
process_pending_queue:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r1
	ldr	r7, [r1]
	ldr	r3, [r0]
	sub	sp, sp, #20
	add	r7, r7, r2, lsl #4
	str	r2, [sp]
	str	r0, [sp, #12]
	str	r3, [sp, #8]
	add	r9, r7, #4
.L2:
	mov	r0, r9
	bl	spin_lock_bh
	ldr	r4, [r7]
	ldr	r6, [r7, #12]
	add	r4, r4, r4, lsl #2
	ldr	r0, [r6, r4, lsl #2]
	add	r5, r6, r4, lsl #2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L16
	ldr	r8, [r5, #12]
	clz	r0, r8
	lsr	r0, r0, #5
	bl	unlikely
	subs	r3, r0, #0
	bne	.L19
	ldr	r2, [r5, #16]
	ldr	r1, .L22
	ldrb	fp, [r2]	@ zero_extendqisi2
	ldrb	r1, [r1]	@ zero_extendqisi2
	cmp	r1, fp
	beq	.L6
	ldr	r2, .L22+4
	ldrb	r1, [r2]	@ zero_extendqisi2
	cmp	r1, fp
	beq	.L20
	ldr	r2, .L22+8
	ldrb	r1, [r2]	@ zero_extendqisi2
	cmp	r1, fp
	beq	.L21
.L9:
	mov	r3, #0
	add	r0, r7, #8
	str	r3, [r5, #16]
	str	r3, [r6, r4, lsl #2]
	str	r3, [r5, #12]
	bl	atomic64_dec
	ldr	r1, [sp]
	mov	r0, r10
	bl	pending_queue_inc_front
	mov	r0, r9
	bl	spin_unlock_bh
	mov	r1, r8
	ldr	r0, [r8, #8]
	bl	do_post_process
	ldmib	r5, {r1, r3}
	mov	r0, fp
	blx	r3
	b	.L2
.L21:
	str	r3, [sp, #4]
	ldr	r3, .L22+12
	ldr	ip, [r8, #12]
	ldr	r1, [r3]
	ldr	r3, .L22+16
	ldr	lr, [r3]
	ldr	r3, .L22+20
	mla	r1, lr, r1, ip
	ldr	r0, [r3]
	bl	time_after_eq
	cmp	r0, #0
	beq	.L9
	ldr	r1, .L22+24
	ldr	r0, [sp, #8]
	bl	dev_err
	ldr	r2, [sp, #4]
	add	r0, r7, #8
	str	r2, [r5, #16]
	str	r2, [r5]
	bl	atomic64_dec
	ldr	r2, [sp, #4]
	str	r2, [r5, #12]
	b	.L17
.L19:
	ldr	r1, .L22+28
	ldr	r0, [sp, #8]
	bl	dev_err
	mov	r0, r10
	ldr	r1, [sp]
	bl	pending_queue_inc_front
	mov	r0, r9
	bl	spin_unlock_bh
	b	.L2
.L20:
	ldr	r2, .L22+32
.L10:
	mov	r4, #0
	ldr	r1, .L22+36
	ldr	r0, [sp, #8]
	bl	dev_err
	add	r0, r7, #8
	str	r4, [r5, #16]
	str	r4, [r5]
	bl	atomic64_dec
	str	r4, [r5, #12]
.L17:
	ldr	r1, [sp]
	mov	r0, r10
	bl	pending_queue_inc_front
	mov	r1, r8
	ldr	r0, [sp, #12]
	bl	do_request_cleanup
.L16:
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	spin_unlock_bh
.L6:
	ldr	r2, .L22+40
	b	.L10
.L23:
	.align	2
.L22:
	.word	CPT_COMP_E_FAULT
	.word	CPT_COMP_E_SWERR
	.word	COMPLETION_CODE_INIT
	.word	CPT_COMMAND_TIMEOUT
	.word	HZ
	.word	jiffies
	.word	.LC4
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.word	.LC1
	.size	process_pending_queue, .-process_pending_queue
	.comm	jiffies,4,4
	.comm	TIME_IN_RESET_COUNT,4,4
	.comm	HZ,4,4
	.comm	CPT_COMP_E_SWERR,1,1
	.comm	CPT_COMP_E_FAULT,1,1
	.comm	CPT_COMMAND_TIMEOUT,4,4
	.comm	COMPLETION_CODE_INIT,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
