	.file	"extr_ivtv-yuv.c_ivtv_yuv_work_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Update yuv registers for frame %d\n"
	.text
	.p2align 4
	.globl	ivtv_yuv_work_handler
	.type	ivtv_yuv_work_handler, @function
ivtv_yuv_work_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	movsx	rbp, DWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	esi, ebp
	call	IVTV_DEBUG_YUV@PLT
	mov	rdx, QWORD PTR 64[rbx]
	lea	rax, 0[rbp+rbp*2]
	cmp	QWORD PTR 56[rbx], 0
	lea	rax, [rdx+rax*8]
	movdqu	xmm0, XMMWORD PTR [rax]
	movaps	XMMWORD PTR [rsp], xmm0
	je	.L2
	mov	rax, QWORD PTR 48[rbx]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 40[rbx]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR 36[rbx]
	mov	DWORD PTR 4[rsp], eax
.L3:
	mov	r12, rsp
	mov	rdi, rbx
	mov	rsi, r12
	call	ivtv_yuv_window_setup@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L1
	mov	esi, 10392
	test	DWORD PTR IVTV_YUV_UPDATE_INVALID[rip], eax
	jne	.L18
	mov	edi, 1081472
	call	write_reg@PLT
	test	DWORD PTR IVTV_YUV_UPDATE_HORIZONTAL[rip], ebp
	jne	.L19
	test	DWORD PTR IVTV_YUV_UPDATE_VERTICAL[rip], ebp
	jne	.L20
.L7:
	mov	rax, QWORD PTR 16[rsp]
	movdqa	xmm1, XMMWORD PTR [rsp]
	mov	QWORD PTR 24[rbx], rax
	movups	XMMWORD PTR 8[rbx], xmm1
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 32[rbx]
	mov	DWORD PTR [rsp], 720
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 4[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, 16810112
	call	write_reg@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, r12
	mov	rdi, rbx
	call	ivtv_yuv_handle_horizontal@PLT
	test	DWORD PTR IVTV_YUV_UPDATE_VERTICAL[rip], ebp
	je	.L7
.L20:
	mov	rsi, r12
	mov	rdi, rbx
	call	ivtv_yuv_handle_vertical@PLT
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ivtv_yuv_work_handler, .-ivtv_yuv_work_handler
	.comm	IVTV_YUV_UPDATE_VERTICAL,4,4
	.comm	IVTV_YUV_UPDATE_INVALID,4,4
	.comm	IVTV_YUV_UPDATE_HORIZONTAL,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_ivtv-yuv.c_ivtv_yuv_work_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Update yuv registers for frame %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ivtv_yuv_work_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	ivtv_yuv_work_handler, %function
ivtv_yuv_work_handler:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, [r0]
	ldr	r3, .L22
	mov	r1, r5
	sub	sp, sp, #24
	ldr	r0, .L22+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	IVTV_DEBUG_YUV
	ldr	r3, [r4, #44]
	ldr	ip, [r4, #40]
	add	r1, r3, r5, lsl #4
	cmp	ip, #0
	add	r5, sp, #4
	ldm	r1, {r0, r1, r2, r3}
	stm	r5, {r0, r1, r2, r3}
	beq	.L2
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #28]
	ldr	r0, [r4, #36]
	ldr	r1, [r4, #32]
	stmib	sp, {r2, r3}
	str	r0, [sp, #16]
	str	r1, [sp, #12]
.L3:
	mov	r1, r5
	mov	r0, r4
	bl	ivtv_yuv_window_setup
	subs	r6, r0, #0
	beq	.L1
	ldr	r3, .L22+8
	ldr	r1, .L22+12
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L18
	ldr	r0, .L22+16
	bl	write_reg
	ldr	r3, .L22+20
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L19
	ldr	r3, .L22+24
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L20
.L7:
	ldm	r5, {r0, r1, r2, r3}
	add	r4, r4, #8
	stm	r4, {r0, r1, r2, r3}
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r2, #720
	ldr	r3, [r4, #24]
	str	ip, [sp, #16]
	stmib	sp, {r2, r3, ip}
	b	.L3
.L18:
	ldr	r0, .L22+28
	bl	write_reg
	b	.L7
.L19:
	mov	r1, r5
	mov	r0, r4
	bl	ivtv_yuv_handle_horizontal
	ldr	r3, .L22+24
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L7
.L20:
	mov	r1, r5
	mov	r0, r4
	bl	ivtv_yuv_handle_vertical
	b	.L7
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	.LC0
	.word	IVTV_YUV_UPDATE_INVALID
	.word	10392
	.word	1081472
	.word	IVTV_YUV_UPDATE_HORIZONTAL
	.word	IVTV_YUV_UPDATE_VERTICAL
	.word	16810112
	.size	ivtv_yuv_work_handler, .-ivtv_yuv_work_handler
	.comm	IVTV_YUV_UPDATE_VERTICAL,4,4
	.comm	IVTV_YUV_UPDATE_INVALID,4,4
	.comm	IVTV_YUV_UPDATE_HORIZONTAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
