	.file	"extr_camss-vfe.c_vfe_isr_wm_done.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Received wm done for unmapped index\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Active buffer mismatch!\n"
.LC2:
	.string	"Missing ready buf %d %d!\n"
	.text
	.p2align 4
	.type	vfe_isr_wm_done, @function
vfe_isr_wm_done:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	r15, 8[rbx]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	ktime_get_ns@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	r13d, eax
	mov	rax, QWORD PTR 16[rbx]
	call	[QWORD PTR [rax]]
	xor	esi, esi
	mov	rdi, r15
	mov	r12, rax
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax+rbp*8]
	cmp	rax, QWORD PTR VFE_LINE_NONE[rip]
	je	.L28
	lea	rdx, 0[0+rax*8]
	sub	rdx, rax
	mov	rax, rdx
	mov	rdx, QWORD PTR 32[rbx]
	lea	rbp, [rdx+rax*8]
	cmp	QWORD PTR 0[rbp], r12
	je	.L29
	mov	QWORD PTR 0[rbp], r12
	mov	rdx, QWORD PTR 40[rbp]
	xor	ecx, ecx
	test	r12, r12
	je	.L30
	mov	r14, QWORD PTR [rdx]
	test	r14, r14
	je	.L31
.L6:
	movsx	rax, DWORD PTR 48[rbp]
	mov	DWORD PTR [r14], r13d
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rcx
	lea	esi, 1[rax]
	mov	QWORD PTR [rsp], rdx
	mov	DWORD PTR 48[rbp], esi
	mov	QWORD PTR 8[r14], rax
	call	vfe_buf_get_pending@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR 40[rbp]
	mov	rax, QWORD PTR [rax+rcx]
	test	rax, rax
	je	.L32
	mov	rsi, rbp
	mov	rdi, rbx
	mov	r13, QWORD PTR 16[rax]
	call	vfe_buf_update_wm_on_next@PLT
.L8:
	mov	eax, DWORD PTR 16[rbp]
	test	r12, r12
	jne	.L9
	test	eax, eax
	je	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rcx, QWORD PTR 32[rbp]
	mov	eax, r12d
	mov	rdi, rbx
	add	r12d, 1
	mov	edx, DWORD PTR 0[r13+rax*4]
	mov	esi, DWORD PTR [rcx+rax*4]
	mov	rax, QWORD PTR 16[rbx]
	call	[QWORD PTR 8[rax]]
	cmp	DWORD PTR 16[rbp], r12d
	ja	.L10
.L13:
	xor	esi, esi
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR VFE_OUTPUT_STOPPING[rip]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L33
	mov	QWORD PTR 24[rbp], r14
	add	rsp, 24
	.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
.L30:
	.cfi_restore_state
	mov	r14, QWORD PTR 8[rdx]
	add	rdx, 8
	mov	ecx, 8
	test	r14, r14
	jne	.L6
.L31:
	mov	rax, QWORD PTR 24[rbx]
	xor	edx, edx
	mov	rcx, QWORD PTR 8[rbp]
	test	r12, r12
	sete	dl
	lea	rsi, .LC2[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_err_ratelimited@PLT
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	xor	esi, esi
	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_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	test	eax, eax
	je	.L13
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rcx, QWORD PTR 32[rbp]
	mov	eax, r12d
	mov	rdi, rbx
	add	r12d, 1
	mov	edx, DWORD PTR 0[r13+rax*4]
	mov	esi, DWORD PTR [rcx+rax*4]
	mov	rax, QWORD PTR 16[rbx]
	call	[QWORD PTR 16[rax]]
	cmp	DWORD PTR 16[rbp], r12d
	ja	.L14
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	mov	esi, DWORD PTR VB2_BUF_STATE_DONE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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	vb2_buffer_done@PLT
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, rbx
	mov	r13, QWORD PTR 16[r14]
	call	vfe_buf_update_wm_on_last@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rax, QWORD PTR 24[rbx]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_err_ratelimited@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rax, QWORD PTR 24[rbx]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_err_ratelimited@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	vfe_isr_wm_done, .-vfe_isr_wm_done
	.comm	VFE_OUTPUT_STOPPING,8,8
	.comm	VFE_LINE_NONE,8,8
	.comm	VB2_BUF_STATE_DONE,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_camss-vfe.c_vfe_isr_wm_done.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Received wm done for unmapped index\012\000"
	.align	2
.LC1:
	.ascii	"Active buffer mismatch!\012\000"
	.align	2
.LC2:
	.ascii	"Missing ready buf %d %d!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vfe_isr_wm_done, %function
vfe_isr_wm_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, r1
	bl	ktime_get_ns
	ldr	r3, [r5, #8]
	mov	r1, r4
	ldr	r3, [r3]
	mov	r7, r0
	mov	r0, r5
	blx	r3
	add	r9, r5, #4
	mov	r6, r0
	mov	r1, #0
	mov	r0, r9
	bl	spin_lock_irqsave
	ldr	r2, [r5]
	ldr	r3, .L32
	ldr	r4, [r2, r4, lsl #2]
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L27
	ldr	r3, [r5, #16]
	rsb	r4, r4, r4, lsl #3
	lsl	r2, r4, #2
	ldr	r1, [r3, r2]
	add	r4, r3, r4, lsl #2
	cmp	r1, r6
	beq	.L28
	ldr	r10, [r4, #20]
	cmp	r6, #0
	addeq	r10, r10, #4
	ldr	r8, [r10]
	moveq	fp, #4
	movne	fp, #0
	cmp	r8, #0
	str	r6, [r3, r2]
	beq	.L29
	ldr	r3, [r4, #24]
	mov	r0, r4
	add	r2, r3, #1
	str	r7, [r8]
	str	r2, [r4, #24]
	str	r3, [r8, #4]
	bl	vfe_buf_get_pending
	ldr	r3, [r4, #20]
	str	r0, [r10]
	ldr	r3, [r3, fp]
	mov	r1, r4
	cmp	r3, #0
	mov	r0, r5
	beq	.L30
	ldr	r7, [r3, #8]
	bl	vfe_buf_update_wm_on_next
.L8:
	cmp	r6, #0
	ldr	r3, [r4, #8]
	bne	.L9
	cmp	r3, #0
	subne	r7, r7, #4
	beq	.L13
.L15:
	ldr	r2, [r4, #16]
	ldr	r3, [r5, #8]
	ldr	r1, [r2, r6, lsl #2]
	ldr	r3, [r3, #4]
	mov	r0, r5
	ldr	r2, [r7, #4]!
	blx	r3
	ldr	r3, [r4, #8]
	add	r6, r6, #1
	cmp	r3, r6
	bhi	.L15
.L13:
	mov	r0, r9
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L32+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L31
	str	r8, [r4, #12]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	cmp	r3, #0
	beq	.L13
	mov	r6, #0
	sub	r7, r7, #4
.L14:
	ldr	r2, [r4, #16]
	ldr	r3, [r5, #8]
	ldr	r1, [r2, r6, lsl #2]
	ldr	r3, [r3, #8]
	mov	r0, r5
	ldr	r2, [r7, #4]!
	blx	r3
	ldr	r3, [r4, #8]
	add	r6, r6, #1
	cmp	r3, r6
	bhi	.L14
	b	.L13
.L31:
	ldr	r3, .L32+8
	mov	r0, r8
	ldr	r1, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	vb2_buffer_done
.L30:
	ldr	r7, [r8, #8]
	bl	vfe_buf_update_wm_on_last
	b	.L8
.L29:
.L3:
	clz	r2, r6
	ldr	r3, [r5, #12]
	ldr	r1, .L32+12
	ldr	r0, [r3]
	lsr	r2, r2, #5
	ldr	r3, [r4, #4]
	bl	dev_err_ratelimited
	mov	r0, r9
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L27:
	ldr	r3, [r5, #12]
	ldr	r1, .L32+16
	ldr	r0, [r3]
	bl	dev_err_ratelimited
	mov	r0, r9
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L28:
	ldr	r3, [r5, #12]
	ldr	r1, .L32+20
	ldr	r0, [r3]
	bl	dev_err_ratelimited
	mov	r0, r9
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L33:
	.align	2
.L32:
	.word	VFE_LINE_NONE
	.word	VFE_OUTPUT_STOPPING
	.word	VB2_BUF_STATE_DONE
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	vfe_isr_wm_done, .-vfe_isr_wm_done
	.comm	VFE_OUTPUT_STOPPING,4,4
	.comm	VFE_LINE_NONE,4,4
	.comm	VB2_BUF_STATE_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
