	.file	"extr_saa7134-ts.c_buffer_activate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"buffer_activate [%p]"
.LC1:
	.string	"- [top]     buf=%p next=%p\n"
.LC2:
	.string	"- [bottom]  buf=%p next=%p\n"
	.text
	.p2align 4
	.type	buffer_activate, @function
buffer_activate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	call	ts_dbg@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	QWORD PTR [r12], 0
	test	edx, edx
	jne	.L2
	mov	rax, QWORD PTR V4L2_FIELD_TOP[rip]
	test	r13, r13
	cmove	r13, r12
	mov	QWORD PTR 0[rbp], rax
.L3:
	mov	rdx, r13
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	ts_dbg@PLT
	mov	rdi, r12
	call	saa7134_buffer_base@PLT
	mov	edi, 5
	mov	r12d, eax
	call	SAA7134_RS_BA1@PLT
	mov	esi, r12d
	mov	edi, eax
	call	saa_writel@PLT
	mov	rdi, r13
	call	saa7134_buffer_base@PLT
	mov	edi, 5
	mov	r12d, eax
	call	SAA7134_RS_BA2@PLT
	mov	esi, r12d
	mov	edi, eax
	call	saa_writel@PLT
	mov	rax, QWORD PTR V4L2_FIELD_BOTTOM[rip]
	mov	QWORD PTR 0[rbp], rax
.L6:
	mov	rdi, rbp
	call	saa7134_set_dmabits@PLT
	mov	rsi, QWORD PTR TS_BUFFER_TIMEOUT[rip]
	lea	rdi, 12[rbp]
	add	rsi, QWORD PTR jiffies[rip]
	call	mod_timer@PLT
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L10
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	r13, r13
	mov	rax, QWORD PTR 0[rbp]
	cmove	r13, r12
	cmp	QWORD PTR V4L2_FIELD_TOP[rip], rax
	je	.L3
	mov	rdx, r13
	mov	rsi, r12
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	ts_dbg@PLT
	mov	rdi, r13
	call	saa7134_buffer_base@PLT
	mov	edi, 5
	mov	r13d, eax
	call	SAA7134_RS_BA1@PLT
	mov	esi, r13d
	mov	edi, eax
	call	saa_writel@PLT
	mov	rdi, r12
	call	saa7134_buffer_base@PLT
	mov	edi, 5
	mov	r12d, eax
	call	SAA7134_RS_BA2@PLT
	mov	esi, r12d
	mov	edi, eax
	call	saa_writel@PLT
	mov	rax, QWORD PTR V4L2_FIELD_TOP[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	saa7134_ts_start@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	buffer_activate, .-buffer_activate
	.comm	jiffies,8,8
	.comm	V4L2_FIELD_TOP,8,8
	.comm	V4L2_FIELD_BOTTOM,8,8
	.comm	TS_BUFFER_TIMEOUT,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_saa7134-ts.c_buffer_activate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"buffer_activate [%p]\000"
	.align	2
.LC1:
	.ascii	"- [top]     buf=%p next=%p\012\000"
	.align	2
.LC2:
	.ascii	"- [bottom]  buf=%p next=%p\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buffer_activate, %function
buffer_activate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, .L11
	mov	r5, r2
	mov	r6, r1
	bl	ts_dbg
	mov	r2, #0
	ldr	r3, [r4, #4]
	str	r2, [r6]
	cmp	r3, r2
	bne	.L2
	cmp	r5, r2
	moveq	r5, r6
	ldr	r3, .L11+4
	ldr	r3, [r3]
	str	r3, [r4]
.L3:
	mov	r2, r5
	mov	r1, r6
	ldr	r0, .L11+8
	bl	ts_dbg
	mov	r0, #5
	bl	SAA7134_RS_BA1
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	saa7134_buffer_base
	mov	r1, r0
	mov	r0, r6
	bl	saa_writel
	mov	r0, #5
	bl	SAA7134_RS_BA2
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	saa7134_buffer_base
	mov	r1, r0
	mov	r0, r5
	bl	saa_writel
	ldr	r3, .L11+12
	ldr	r3, [r3]
	str	r3, [r4]
.L6:
	mov	r0, r4
	bl	saa7134_set_dmabits
	ldr	r2, .L11+16
	ldr	r3, .L11+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	add	r0, r4, #8
	add	r1, r1, r3
	bl	mod_timer
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L10
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r7, .L11+4
	ldr	r3, [r4]
	ldr	r2, [r7]
	cmp	r5, #0
	moveq	r5, r6
	cmp	r2, r3
	beq	.L3
	mov	r2, r5
	mov	r1, r6
	ldr	r0, .L11+24
	bl	ts_dbg
	mov	r0, #5
	bl	SAA7134_RS_BA1
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	saa7134_buffer_base
	mov	r1, r0
	mov	r0, r5
	bl	saa_writel
	mov	r0, #5
	bl	SAA7134_RS_BA2
	mov	r5, r0
	mov	r0, r6
	bl	saa7134_buffer_base
	mov	r1, r0
	mov	r0, r5
	bl	saa_writel
	ldr	r3, [r7]
	str	r3, [r4]
	b	.L6
.L10:
	mov	r0, r4
	bl	saa7134_ts_start
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	V4L2_FIELD_TOP
	.word	.LC1
	.word	V4L2_FIELD_BOTTOM
	.word	jiffies
	.word	TS_BUFFER_TIMEOUT
	.word	.LC2
	.size	buffer_activate, .-buffer_activate
	.comm	jiffies,4,4
	.comm	V4L2_FIELD_TOP,4,4
	.comm	V4L2_FIELD_BOTTOM,4,4
	.comm	TS_BUFFER_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
