	.file	"extr_hva-v4l2.c_hva_stop_streaming.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %s stop streaming\n"
.LC1:
	.string	"%s %s out=%d cap=%d\n"
.LC2:
	.string	"%s %s encoder closed\n"
	.text
	.p2align 4
	.type	hva_stop_streaming, @function
hva_stop_streaming:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	vb2_get_drv_priv@PLT
	mov	rbx, rax
	mov	rdi, rax
	call	ctx_to_hdev@PLT
	mov	rdi, rbx
	mov	r13, rax
	call	ctx_to_dev@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	r14, QWORD PTR 16[rbx]
	mov	r12, rax
	call	to_type_str@PLT
	mov	edx, DWORD PTR 24[rbx]
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	ecx, eax
	xor	eax, eax
	call	dev_dbg@PLT
	mov	rax, QWORD PTR V4L2_BUF_TYPE_VIDEO_OUTPUT[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L22
	mov	QWORD PTR 40[rbx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR VB2_BUF_STATE_ERROR[rip]
	call	v4l2_m2m_buf_done@PLT
.L7:
	mov	rdi, QWORD PTR 32[rbx]
	call	v4l2_m2m_dst_buf_remove@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L8
.L9:
	mov	rdi, QWORD PTR 0[rbp]
	call	V4L2_TYPE_IS_OUTPUT@PLT
	test	rax, rax
	je	.L6
	mov	rdi, QWORD PTR 32[rbx]
	call	vb2_is_streaming@PLT
	test	rax, rax
	jne	.L12
.L6:
	mov	rdi, QWORD PTR 0[rbp]
	call	V4L2_TYPE_IS_OUTPUT@PLT
	test	rax, rax
	je	.L23
.L11:
	test	r14, r14
	je	.L13
	mov	edx, DWORD PTR 24[rbx]
	mov	ecx, DWORD PTR 8[r14]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	mov	rdi, r12
	call	dev_dbg@PLT
	mov	rdi, rbx
	call	[QWORD PTR [r14]]
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 8[r13]
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR [rax+rdx*8], 0
	sub	DWORD PTR 0[r13], 1
.L13:
	mov	DWORD PTR 8[rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rbx]
	lea	rdi, 4[rax]
	call	vb2_is_streaming@PLT
	test	rax, rax
	je	.L11
.L12:
	mov	rdi, QWORD PTR 32[rbx]
	call	vb2_is_streaming@PLT
	mov	r14, rax
	mov	rax, QWORD PTR 32[rbx]
	lea	rdi, 4[rax]
	call	vb2_is_streaming@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	r13, rax
	call	to_type_str@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	r9, r14
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	r8, r13
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	pop	r12
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	dev_dbg@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	QWORD PTR 48[rbx], 0
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR VB2_BUF_STATE_ERROR[rip]
	call	v4l2_m2m_buf_done@PLT
.L3:
	mov	rdi, QWORD PTR 32[rbx]
	call	v4l2_m2m_src_buf_remove@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L4
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	hva_stop_streaming, .-hva_stop_streaming
	.comm	VB2_BUF_STATE_ERROR,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT,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_hva-v4l2.c_hva_stop_streaming.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s %s stop streaming\012\000"
	.align	2
.LC1:
	.ascii	"%s %s out=%d cap=%d\012\000"
	.align	2
.LC2:
	.ascii	"%s %s encoder closed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hva_stop_streaming, %function
hva_stop_streaming:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r5, r0
	bl	vb2_get_drv_priv
	mov	r4, r0
	bl	ctx_to_hdev
	mov	r8, r0
	mov	r0, r4
	bl	ctx_to_dev
	mov	r7, r0
	ldr	r0, [r5]
	ldr	r6, [r4, #12]
	ldr	r9, [r4, #8]
	bl	to_type_str
	mov	r2, r6
	mov	r3, r0
	ldr	r1, .L25
	mov	r0, r7
	bl	dev_dbg
	ldr	r3, .L25+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	mov	r3, #0
	beq	.L23
	ldr	r6, .L25+8
	str	r3, [r4, #20]
	b	.L7
.L8:
	ldr	r1, [r6]
	bl	v4l2_m2m_buf_done
.L7:
	ldr	r0, [r4, #16]
	bl	v4l2_m2m_dst_buf_remove
	cmp	r0, #0
	bne	.L8
.L9:
	ldr	r0, [r5]
	bl	V4L2_TYPE_IS_OUTPUT
	cmp	r0, #0
	beq	.L6
	ldr	r0, [r4, #16]
	bl	vb2_is_streaming
	cmp	r0, #0
	bne	.L13
.L6:
	ldr	r0, [r5]
	bl	V4L2_TYPE_IS_OUTPUT
	cmp	r0, #0
	beq	.L24
.L11:
	cmp	r9, #0
	beq	.L14
	ldr	r2, [r4, #12]
	ldr	r1, .L25+12
	ldr	r3, [r9, #4]
	mov	r0, r7
	bl	dev_dbg
	ldr	r3, [r9]
	mov	r0, r4
	blx	r3
	mov	r2, #0
	ldr	r3, [r8]
	ldr	r0, [r4]
	ldr	r1, [r8, #4]
	sub	r3, r3, #1
	str	r2, [r4, #8]
	str	r2, [r1, r0, lsl #2]
	str	r3, [r8]
.L14:
	mov	r3, #0
	str	r3, [r4, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L24:
	ldr	r0, [r4, #16]
	add	r0, r0, #4
	bl	vb2_is_streaming
	cmp	r0, #0
	beq	.L11
.L13:
	ldr	r0, [r5]
	ldr	r6, [r4, #12]
	bl	to_type_str
	ldr	r3, [r4, #16]
	mov	r5, r0
	add	r0, r3, #4
	bl	vb2_is_streaming
	mov	r3, r0
	ldr	r0, [r4, #16]
	mov	r4, r3
	bl	vb2_is_streaming
	mov	r3, r5
	str	r0, [sp, #4]
	mov	r2, r6
	mov	r0, r7
	ldr	r1, .L25+16
	str	r4, [sp]
	bl	dev_dbg
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L23:
	ldr	r6, .L25+8
	str	r3, [r4, #24]
	b	.L3
.L4:
	ldr	r1, [r6]
	bl	v4l2_m2m_buf_done
.L3:
	ldr	r0, [r4, #16]
	bl	v4l2_m2m_src_buf_remove
	cmp	r0, #0
	bne	.L4
	b	.L9
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	V4L2_BUF_TYPE_VIDEO_OUTPUT
	.word	VB2_BUF_STATE_ERROR
	.word	.LC2
	.word	.LC1
	.size	hva_stop_streaming, .-hva_stop_streaming
	.comm	VB2_BUF_STATE_ERROR,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
