	.file	"extr_tvaudio.c_chip_write_masked.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Tried to access a non-existent register: %d\n"
	.text
	.p2align 4
	.type	chip_write_masked, @function
chip_write_masked:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	test	ecx, ecx
	je	.L2
	mov	rdi, QWORD PTR [rdi]
	mov	ebx, ecx
	test	esi, esi
	jns	.L3
	mov	eax, DWORD PTR 4[rdi]
	xor	edx, eax
	and	edx, ecx
	xor	edx, eax
.L2:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	chip_write@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 8[rsp], esi
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR 12[rsp]
	lea	ecx, 1[rsi]
	cmp	ecx, eax
	jge	.L12
	mov	rcx, QWORD PTR 0[rbp]
	movsx	rax, esi
	mov	rdi, rbp
	mov	eax, DWORD PTR 4[rcx+rax*4]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edx, eax
	and	edx, ebx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	xor	edx, eax
	jmp	chip_write@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, 8[rbp]
	mov	edx, esi
	lea	rsi, .LC0[rip]
	call	v4l2_info@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.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	chip_write_masked, .-chip_write_masked
	.comm	EINVAL,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_tvaudio.c_chip_write_masked.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Tried to access a non-existent register: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chip_write_masked, %function
chip_write_masked:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r6, r7, lr}
	subs	r7, r3, #0
	mov	r6, r0
	mov	r4, r2
	sub	sp, sp, #8
	beq	.L2
	cmp	r1, #0
	ldr	r0, [r0]
	bge	.L3
	ldr	r3, [r0, #4]
	eor	r4, r4, r3
	and	r4, r4, r7
	eor	r4, r4, r3
.L2:
	mov	r2, r4
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r6, r7, lr}
	b	chip_write
.L3:
	str	r1, [sp, #4]
	bl	ARRAY_SIZE
	ldr	r1, [sp, #4]
	add	r3, r1, #1
	cmp	r3, r0
	bge	.L12
	ldr	r2, [r6]
	ldr	r3, [r2, r3, lsl #2]
	eor	r4, r4, r3
	and	r4, r4, r7
	eor	r4, r4, r3
	b	.L2
.L12:
	mov	r2, r1
	add	r0, r6, #4
	ldr	r1, .L13
	bl	v4l2_info
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r6, r7, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	EINVAL
	.size	chip_write_masked, .-chip_write_masked
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
