	.file	"extr_cx231xx-avcore.c_cx231xx_dif_configure_C2HH_for_low_IF.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cx231xx_dif_configure_C2HH_for_low_IF
	.type	cx231xx_dif_configure_C2HH_for_low_IF, @function
cx231xx_dif_configure_C2HH_for_low_IF:
.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
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR V4L2_TUNER_RADIO[rip], rsi
	je	.L11
	xor	eax, eax
	cmp	QWORD PTR DIF_USE_BASEBAND[rip], rcx
	je	.L1
	mov	r10d, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	test	QWORD PTR V4L2_STD_MN[rip], rcx
	jne	.L12
	mov	rax, QWORD PTR V4L2_STD_PAL_D[rip]
	or	rax, QWORD PTR V4L2_STD_SECAM[rip]
	xor	edx, edx
	and	rax, rcx
	cmp	QWORD PTR V4L2_STD_PAL_I[rip], rcx
	sete	dl
	or	rax, rdx
	je	.L5
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, r10d
	mov	edx, 32
	mov	r9d, 31
	push	1
	.cfi_def_cfa_offset 48
	mov	r8d, 30
	call	cx231xx_reg_mask_write@PLT
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	edx, 32
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	r9d, 24
	mov	r8d, 23
	mov	rdi, rbp
	mov	DWORD PTR [rsp], ebx
	call	cx231xx_reg_mask_write@PLT
	mov	DWORD PTR [rsp], 15
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	r9d, 31
	push	1
	.cfi_def_cfa_offset 48
	mov	r8d, 30
	mov	edx, 32
	call	cx231xx_reg_mask_write@PLT
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	edx, 32
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	r9d, 24
	mov	r8d, 23
	mov	rdi, rbp
	mov	DWORD PTR [rsp], ebx
	call	cx231xx_reg_mask_write@PLT
	mov	DWORD PTR [rsp], 255
.L8:
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	edx, 32
	mov	r9d, 22
	mov	r8d, 15
	mov	rdi, rbp
	call	cx231xx_reg_mask_write@PLT
	mov	DWORD PTR [rsp], 1
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	r9d, 9
	mov	r8d, 9
.L9:
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	edx, 32
	mov	rdi, rbp
	call	cx231xx_reg_mask_write@PLT
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, r10d
	mov	edx, 32
	mov	r9d, 31
	push	1
	.cfi_def_cfa_offset 48
	mov	r8d, 30
	call	cx231xx_reg_mask_write@PLT
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	edx, 32
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	r9d, 24
	mov	r8d, 23
	mov	rdi, rbp
	mov	DWORD PTR [rsp], ebx
	call	cx231xx_reg_mask_write@PLT
	mov	DWORD PTR [rsp], 14
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, r10d
	mov	edx, 32
	mov	r9d, 31
	push	1
	.cfi_def_cfa_offset 48
	mov	r8d, 30
	call	cx231xx_reg_mask_write@PLT
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	edx, 32
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	r9d, 24
	mov	r8d, 23
	mov	rdi, rbp
	mov	DWORD PTR [rsp], ebx
	call	cx231xx_reg_mask_write@PLT
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	edx, 32
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	r9d, 22
	mov	r8d, 15
	mov	rdi, rbp
	mov	DWORD PTR [rsp], 11
	call	cx231xx_reg_mask_write@PLT
	mov	ecx, DWORD PTR AFE_CTRL_C2HH_SRC_CTRL[rip]
	mov	edx, 32
	mov	esi, DWORD PTR VID_BLK_I2C_ADDRESS[rip]
	mov	r9d, 9
	mov	r8d, 9
	mov	rdi, rbp
	mov	DWORD PTR [rsp], 1
	call	cx231xx_reg_mask_write@PLT
	mov	DWORD PTR [rsp], 3
	mov	ecx, DWORD PTR AUD_IO_CTRL[rip]
	xor	r8d, r8d
	mov	r9d, 31
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	cx231xx_dif_configure_C2HH_for_low_IF, .-cx231xx_dif_configure_C2HH_for_low_IF
	.comm	VID_BLK_I2C_ADDRESS,4,4
	.comm	V4L2_TUNER_RADIO,8,8
	.comm	V4L2_STD_SECAM,8,8
	.comm	V4L2_STD_PAL_I,8,8
	.comm	V4L2_STD_PAL_D,8,8
	.comm	V4L2_STD_MN,8,8
	.comm	DIF_USE_BASEBAND,8,8
	.comm	AUD_IO_CTRL,4,4
	.comm	AFE_CTRL_C2HH_SRC_CTRL,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_cx231xx-avcore.c_cx231xx_dif_configure_C2HH_for_low_IF.c"
	.text
	.align	2
	.global	cx231xx_dif_configure_C2HH_for_low_IF
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx231xx_dif_configure_C2HH_for_low_IF, %function
cx231xx_dif_configure_C2HH_for_low_IF:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L14
	mov	r5, r2
	ldr	r2, [ip]
	mov	r4, r0
	cmp	r2, r1
	sub	sp, sp, #20
	beq	.L11
	mov	ip, r3
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, ip
	moveq	r0, #0
	beq	.L1
	ldr	r3, .L14+8
	ldr	r6, .L14+12
	ldr	r3, [r3]
	ldr	r7, .L14+16
	tst	ip, r3
	ldr	r1, [r6]
	ldr	r3, [r7]
	bne	.L12
	ldr	lr, .L14+20
	ldr	r2, .L14+24
	ldr	r8, [lr]
	ldr	r2, [r2]
	ldr	lr, .L14+28
	orr	r2, r2, r8
	ldr	lr, [lr]
	and	r2, r2, ip
	cmp	lr, ip
	movne	ip, r2
	orreq	ip, r2, #1
	mov	r8, #1
	mov	r2, #30
	cmp	ip, #0
	mov	ip, #31
	str	r8, [sp, #8]
	stm	sp, {r2, ip}
	mov	r2, #32
	bne	.L13
	bl	cx231xx_reg_mask_write
	mov	r2, #24
	mov	r3, #23
	stmib	sp, {r2, r5}
	ldr	r1, [r6]
	mov	r2, #32
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, [r7]
	bl	cx231xx_reg_mask_write
	mov	r1, #15
	mov	r2, #22
	mov	r3, #14
	stm	sp, {r1, r2, r3}
.L8:
	mov	r2, #32
	ldr	r3, [r7]
	ldr	r1, [r6]
	b	.L9
.L11:
	mov	r2, #31
	mov	r3, #30
	mov	r8, #1
	ldr	r7, .L14+16
	ldr	r6, .L14+12
	stmib	sp, {r2, r8}
	ldr	r1, [r6]
	mov	r2, #32
	str	r3, [sp]
	ldr	r3, [r7]
	bl	cx231xx_reg_mask_write
	mov	r0, #24
	mov	r2, #23
	ldr	r3, [r7]
	ldr	r1, [r6]
	str	r0, [sp, #4]
	str	r2, [sp]
	mov	r0, r4
	mov	r2, #32
	str	r5, [sp, #8]
	bl	cx231xx_reg_mask_write
	mov	r2, #15
	mov	ip, #255
	mov	r0, #22
	str	r2, [sp]
	mov	r2, #32
	stmib	sp, {r0, ip}
	ldr	r3, [r7]
	ldr	r1, [r6]
.L9:
	mov	r0, r4
	bl	cx231xx_reg_mask_write
	mov	r2, #9
	mov	r0, r4
	str	r2, [sp, #4]
	str	r2, [sp]
	ldr	r3, [r7]
	mov	r2, #32
	ldr	r1, [r6]
	str	r8, [sp, #8]
	bl	cx231xx_reg_mask_write
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	bl	cx231xx_reg_mask_write
	mov	r2, #24
	mov	r3, #23
	stmib	sp, {r2, r5}
	str	r3, [sp]
	mov	r2, #32
	ldr	r3, [r7]
	mov	r0, r4
	ldr	r1, [r6]
	bl	cx231xx_reg_mask_write
	mov	r3, #15
	mov	r2, #22
	str	r3, [sp, #8]
	str	r3, [sp]
	str	r2, [sp, #4]
	b	.L8
.L12:
	mov	r8, #31
	mov	r9, #1
	mov	r2, #30
	stm	sp, {r2, r8, r9}
	mov	r2, #32
	bl	cx231xx_reg_mask_write
	mov	r2, #24
	mov	r3, #23
	stmib	sp, {r2, r5}
	ldr	r1, [r6]
	str	r3, [sp]
	mov	r2, #32
	ldr	r3, [r7]
	mov	r0, r4
	bl	cx231xx_reg_mask_write
	mov	r1, #15
	mov	r2, #22
	mov	r3, #11
	mov	r0, r4
	stm	sp, {r1, r2, r3}
	ldr	r3, [r7]
	ldr	r1, [r6]
	mov	r2, #32
	bl	cx231xx_reg_mask_write
	mov	r2, #9
	ldr	r3, [r7]
	ldr	r1, [r6]
	str	r2, [sp, #4]
	str	r2, [sp]
	mov	r0, r4
	mov	r2, #32
	str	r9, [sp, #8]
	bl	cx231xx_reg_mask_write
	mov	ip, #3
	mov	r2, #0
	ldr	r3, .L14+32
	str	r2, [sp]
	str	r8, [sp, #4]
	str	ip, [sp, #8]
	mov	r0, r4
	mov	r2, #32
	ldr	r1, [r6]
	ldr	r3, [r3]
	bl	cx231xx_reg_mask_write
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	.align	2
.L14:
	.word	V4L2_TUNER_RADIO
	.word	DIF_USE_BASEBAND
	.word	V4L2_STD_MN
	.word	VID_BLK_I2C_ADDRESS
	.word	AFE_CTRL_C2HH_SRC_CTRL
	.word	V4L2_STD_SECAM
	.word	V4L2_STD_PAL_D
	.word	V4L2_STD_PAL_I
	.word	AUD_IO_CTRL
	.size	cx231xx_dif_configure_C2HH_for_low_IF, .-cx231xx_dif_configure_C2HH_for_low_IF
	.comm	VID_BLK_I2C_ADDRESS,4,4
	.comm	V4L2_TUNER_RADIO,4,4
	.comm	V4L2_STD_SECAM,4,4
	.comm	V4L2_STD_PAL_I,4,4
	.comm	V4L2_STD_PAL_D,4,4
	.comm	V4L2_STD_MN,4,4
	.comm	DIF_USE_BASEBAND,4,4
	.comm	AUD_IO_CTRL,4,4
	.comm	AFE_CTRL_C2HH_SRC_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
