	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_dif_configure_C2HH_for_low_IF ## -- Begin function cx231xx_dif_configure_C2HH_for_low_IF
	.p2align	4, 0x90
_cx231xx_dif_configure_C2HH_for_low_IF: ## @cx231xx_dif_configure_C2HH_for_low_IF
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_VID_BLK_I2C_ADDRESS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_AFE_CTRL_C2HH_SRC_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$30, %r8d
	movl	$31, %r9d
	callq	_cx231xx_reg_mask_write
	movl	(%r12), %esi
	movl	(%rbx), %ecx
	movl	%r14d, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$23, %r8d
	movl	$24, %r9d
	callq	_cx231xx_reg_mask_write
	movl	(%r12), %esi
	movl	(%rbx), %ecx
	movl	$255, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$15, %r8d
	movl	$22, %r9d
	callq	_cx231xx_reg_mask_write
	movl	(%r12), %esi
LBB0_2:
	movl	(%rbx), %ecx
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$9, %r8d
	movl	$9, %r9d
	jmp	LBB0_7
LBB0_3:
	movq	%rcx, %rbx
	movq	_DIF_USE_BASEBAND@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_V4L2_STD_MN@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_9
## %bb.6:
	movq	_VID_BLK_I2C_ADDRESS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_AFE_CTRL_C2HH_SRC_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$30, %r8d
	movl	$31, %r9d
	callq	_cx231xx_reg_mask_write
	movl	(%r12), %esi
	movl	(%rbx), %ecx
	movl	%r14d, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$23, %r8d
	movl	$24, %r9d
	callq	_cx231xx_reg_mask_write
	movl	(%r12), %esi
	movl	(%rbx), %ecx
	movl	$11, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$15, %r8d
	movl	$22, %r9d
	callq	_cx231xx_reg_mask_write
	movl	(%r12), %esi
	movl	(%rbx), %ecx
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$9, %r8d
	movl	$9, %r9d
	callq	_cx231xx_reg_mask_write
	movl	(%r12), %esi
	movq	_AUD_IO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$3, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	xorl	%r8d, %r8d
	movl	$31, %r9d
LBB0_7:
	callq	_cx231xx_reg_mask_write
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_V4L2_STD_PAL_I@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%rbx, (%rax)
	sete	%cl
	movq	_V4L2_STD_PAL_D@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	andq	%rbx, %r12
	orq	%rcx, %r12
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_VID_BLK_I2C_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AFE_CTRL_C2HH_SRC_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$30, %r8d
	movl	$31, %r9d
	callq	_cx231xx_reg_mask_write
	movq	_VID_BLK_I2C_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movl	%r14d, (%rsp)
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$23, %r8d
	movl	$24, %r9d
	callq	_cx231xx_reg_mask_write
	orq	%r12, %rbx
	movq	%r13, %rbx
	movq	_VID_BLK_I2C_ADDRESS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %ecx
	je	LBB0_11
## %bb.10:
	movl	$15, (%rsp)
	jmp	LBB0_12
LBB0_11:
	movl	$14, (%rsp)
LBB0_12:
	movq	%r15, %rdi
	movl	$32, %edx
	movl	$15, %r8d
	movl	$22, %r9d
	callq	_cx231xx_reg_mask_write
	movl	(%r13), %esi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_VID_BLK_I2C_ADDRESS,4,2        ## @VID_BLK_I2C_ADDRESS
	.comm	_AFE_CTRL_C2HH_SRC_CTRL,4,2     ## @AFE_CTRL_C2HH_SRC_CTRL
	.comm	_DIF_USE_BASEBAND,8,3           ## @DIF_USE_BASEBAND
	.comm	_V4L2_STD_MN,8,3                ## @V4L2_STD_MN
	.comm	_AUD_IO_CTRL,4,2                ## @AUD_IO_CTRL
	.comm	_V4L2_STD_PAL_I,8,3             ## @V4L2_STD_PAL_I
	.comm	_V4L2_STD_PAL_D,8,3             ## @V4L2_STD_PAL_D
	.comm	_V4L2_STD_SECAM,8,3             ## @V4L2_STD_SECAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_dif_configure_C2HH_for_low_IF ; -- Begin function cx231xx_dif_configure_C2HH_for_low_IF
	.p2align	2
_cx231xx_dif_configure_C2HH_for_low_IF: ; @cx231xx_dif_configure_C2HH_for_low_IF
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x21, _VID_BLK_I2C_ADDRESS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VID_BLK_I2C_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x22, _AFE_CTRL_C2HH_SRC_CTRL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AFE_CTRL_C2HH_SRC_CTRL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #30
	mov	w5, #31
	mov	w6, #1
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #23
	mov	w5, #24
	mov	x6, x20
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #15
	mov	w5, #22
	mov	w6, #255
LBB0_2:
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #9
	mov	w5, #9
	mov	w6, #1
	b	LBB0_7
LBB0_3:
Lloh7:
	adrp	x8, _DIF_USE_BASEBAND@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIF_USE_BASEBAND@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh10:
	adrp	x8, _V4L2_STD_MN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_STD_MN@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	tst	x8, x3
	b.eq	LBB0_8
; %bb.6:
Lloh13:
	adrp	x21, _VID_BLK_I2C_ADDRESS@GOTPAGE
Lloh14:
	ldr	x21, [x21, _VID_BLK_I2C_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh15:
	adrp	x22, _AFE_CTRL_C2HH_SRC_CTRL@GOTPAGE
Lloh16:
	ldr	x22, [x22, _AFE_CTRL_C2HH_SRC_CTRL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #30
	mov	w5, #31
	mov	w6, #1
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #23
	mov	w5, #24
	mov	x6, x20
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #15
	mov	w5, #22
	mov	w6, #11
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #9
	mov	w5, #9
	mov	w6, #1
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _AUD_IO_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AUD_IO_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #0
	mov	w5, #31
	mov	w6, #3
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cx231xx_reg_mask_write
LBB0_8:
Lloh20:
	adrp	x8, _V4L2_STD_PAL_I@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_STD_PAL_I@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x8, x3
	cset	w8, eq
Lloh23:
	adrp	x9, _V4L2_STD_PAL_D@GOTPAGE
Lloh24:
	ldr	x9, [x9, _V4L2_STD_PAL_D@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	and	x9, x9, x3
	orr	x8, x9, x8
Lloh26:
	adrp	x9, _V4L2_STD_SECAM@GOTPAGE
Lloh27:
	ldr	x9, [x9, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	and	x9, x9, x3
	orr	x23, x8, x9
Lloh29:
	adrp	x21, _VID_BLK_I2C_ADDRESS@GOTPAGE
Lloh30:
	ldr	x21, [x21, _VID_BLK_I2C_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh31:
	adrp	x22, _AFE_CTRL_C2HH_SRC_CTRL@GOTPAGE
Lloh32:
	ldr	x22, [x22, _AFE_CTRL_C2HH_SRC_CTRL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #30
	mov	w5, #31
	mov	w6, #1
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #23
	mov	w5, #24
	mov	x6, x20
	bl	_cx231xx_reg_mask_write
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #32
	mov	w4, #15
	mov	w5, #22
	cbz	x23, LBB0_10
; %bb.9:
	mov	w6, #15
	b	LBB0_2
LBB0_10:
	mov	w6, #14
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_VID_BLK_I2C_ADDRESS,4,2        ; @VID_BLK_I2C_ADDRESS
	.comm	_AFE_CTRL_C2HH_SRC_CTRL,4,2     ; @AFE_CTRL_C2HH_SRC_CTRL
	.comm	_DIF_USE_BASEBAND,8,3           ; @DIF_USE_BASEBAND
	.comm	_V4L2_STD_MN,8,3                ; @V4L2_STD_MN
	.comm	_AUD_IO_CTRL,4,2                ; @AUD_IO_CTRL
	.comm	_V4L2_STD_PAL_I,8,3             ; @V4L2_STD_PAL_I
	.comm	_V4L2_STD_PAL_D,8,3             ; @V4L2_STD_PAL_D
	.comm	_V4L2_STD_SECAM,8,3             ; @V4L2_STD_SECAM
.subsections_via_symbols
