	.file	"extr_saa7134-go7007.c_saa7134_go7007_stream_stop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	saa7134_go7007_stream_stop, @function
saa7134_go7007_stream_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	test	rbx, rbx
	je	.L4
	mov	rbp, QWORD PTR 8[rbx]
	test	rbp, rbp
	je	.L4
	mov	esi, DWORD PTR SAA7134_MAIN_CTRL_TE5[rip]
	mov	edi, DWORD PTR SAA7134_MAIN_CTRL[rip]
	call	saa_clearl@PLT
	mov	edi, DWORD PTR SAA7134_IRQ1[rip]
	mov	esi, DWORD PTR SAA7134_IRQ1_INTE_RA2_1[rip]
	or	esi, DWORD PTR SAA7134_IRQ1_INTE_RA2_0[rip]
	call	saa_clearl@PLT
	mov	edi, DWORD PTR SAA7134_TS_PARALLEL[rip]
	mov	esi, 128
	call	saa_clearb@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	call	dma_unmap_page@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	call	dma_unmap_page@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	saa7134_go7007_stream_stop, .-saa7134_go7007_stream_stop
	.comm	SAA7134_TS_PARALLEL,4,4
	.comm	SAA7134_MAIN_CTRL_TE5,4,4
	.comm	SAA7134_MAIN_CTRL,4,4
	.comm	SAA7134_IRQ1_INTE_RA2_1,4,4
	.comm	SAA7134_IRQ1_INTE_RA2_0,4,4
	.comm	SAA7134_IRQ1,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EINVAL,4,4
	.comm	DMA_FROM_DEVICE,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_saa7134-go7007.c_saa7134_go7007_stream_stop.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	saa7134_go7007_stream_stop, %function
saa7134_go7007_stream_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	cmp	r4, #0
	beq	.L4
	ldr	r5, [r4, #8]
	cmp	r5, #0
	beq	.L4
	ldr	r2, .L10
	ldr	r3, .L10+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	saa_clearl
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L10+16
	orr	r1, r1, r2
	ldr	r0, [r3]
	bl	saa_clearl
	ldr	r3, .L10+20
	ldr	r7, .L10+24
	ldr	r6, .L10+28
	mov	r1, #128
	ldr	r0, [r3]
	bl	saa_clearb
	ldr	r3, [r7]
	ldr	r2, [r6]
	ldr	r1, [r4, #4]
	ldr	r0, [r5]
	bl	dma_unmap_page
	ldr	r3, [r7]
	ldr	r2, [r6]
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	dma_unmap_page
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L10+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	SAA7134_MAIN_CTRL_TE5
	.word	SAA7134_MAIN_CTRL
	.word	SAA7134_IRQ1_INTE_RA2_1
	.word	SAA7134_IRQ1_INTE_RA2_0
	.word	SAA7134_IRQ1
	.word	SAA7134_TS_PARALLEL
	.word	DMA_FROM_DEVICE
	.word	PAGE_SIZE
	.word	EINVAL
	.size	saa7134_go7007_stream_stop, .-saa7134_go7007_stream_stop
	.comm	SAA7134_TS_PARALLEL,4,4
	.comm	SAA7134_MAIN_CTRL_TE5,4,4
	.comm	SAA7134_MAIN_CTRL,4,4
	.comm	SAA7134_IRQ1_INTE_RA2_1,4,4
	.comm	SAA7134_IRQ1_INTE_RA2_0,4,4
	.comm	SAA7134_IRQ1,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EINVAL,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
