	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_tuner_post_channel_change ## -- Begin function cx231xx_tuner_post_channel_change
	.p2align	4, 0x90
_cx231xx_tuner_post_channel_change:     ## @cx231xx_tuner_post_channel_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_cx231xx_info
	movq	_DIF_AGC_IF_REF@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_vid_blk_read_word
	movq	_FLD_DIF_K_AGC_RF@GOTPCREL(%rip), %rax
	movq	_FLD_DIF_K_AGC_IF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	-20(%rbp), %edx
	movq	_V4L2_STD_SECAM_L@GOTPCREL(%rip), %rax
	movq	_V4L2_STD_SECAM_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_V4L2_STD_SECAM_D@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	(%rbx), %rax
	movq	_TUNER_NXP_TDA18271@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%esi, 8(%rbx)
	je	LBB0_4
## %bb.1:
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.2:
	movq	_FLD_DIF_IF_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	orl	$-2013265152, %edx              ## imm = 0x88000300
	jmp	LBB0_7
LBB0_4:
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:
	movq	_FLD_DIF_IF_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	orl	$-872414464, %edx               ## imm = 0xCC000300
	jmp	LBB0_7
LBB0_3:
	orl	$-2013265920, %edx              ## imm = 0x88000000
	jmp	LBB0_7
LBB0_6:
	orl	$1140850688, %edx               ## imm = 0x44000000
LBB0_7:
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vid_blk_write_word
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx231xx_tuner_post_channel_change  dev->tuner_type =0%d\n"

	.comm	_DIF_AGC_IF_REF,4,2             ## @DIF_AGC_IF_REF
	.comm	_FLD_DIF_K_AGC_RF,4,2           ## @FLD_DIF_K_AGC_RF
	.comm	_FLD_DIF_K_AGC_IF,4,2           ## @FLD_DIF_K_AGC_IF
	.comm	_V4L2_STD_SECAM_L,4,2           ## @V4L2_STD_SECAM_L
	.comm	_V4L2_STD_SECAM_B,4,2           ## @V4L2_STD_SECAM_B
	.comm	_V4L2_STD_SECAM_D,4,2           ## @V4L2_STD_SECAM_D
	.comm	_TUNER_NXP_TDA18271,8,3         ## @TUNER_NXP_TDA18271
	.comm	_FLD_DIF_IF_REF,4,2             ## @FLD_DIF_IF_REF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_tuner_post_channel_change ; -- Begin function cx231xx_tuner_post_channel_change
	.p2align	2
_cx231xx_tuner_post_channel_change:     ; @cx231xx_tuner_post_channel_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_cx231xx_info
Lloh2:
	adrp	x20, _DIF_AGC_IF_REF@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DIF_AGC_IF_REF@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_vid_blk_read_word
Lloh4:
	adrp	x8, _FLD_DIF_K_AGC_RF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FLD_DIF_K_AGC_RF@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _FLD_DIF_K_AGC_IF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FLD_DIF_K_AGC_IF@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	ldr	w9, [x19, #8]
Lloh10:
	adrp	x10, _V4L2_STD_SECAM_L@GOTPAGE
Lloh11:
	ldr	x10, [x10, _V4L2_STD_SECAM_L@GOTPAGEOFF]
Lloh12:
	adrp	x11, _V4L2_STD_SECAM_B@GOTPAGE
Lloh13:
	ldr	x11, [x11, _V4L2_STD_SECAM_B@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh16:
	adrp	x11, _V4L2_STD_SECAM_D@GOTPAGE
Lloh17:
	ldr	x11, [x11, _V4L2_STD_SECAM_D@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	orr	w12, w10, w11
	ldr	x10, [x19]
Lloh19:
	adrp	x11, _TUNER_NXP_TDA18271@GOTPAGE
Lloh20:
	ldr	x11, [x11, _TUNER_NXP_TDA18271@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
	tst	w12, w9
	b.eq	LBB0_3
; %bb.1:
	mov	w9, #-2013265920
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.2:
Lloh22:
	adrp	x10, _FLD_DIF_IF_REF@GOTPAGE
Lloh23:
	ldr	x10, [x10, _FLD_DIF_IF_REF@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	bic	w8, w8, w10
	add	w9, w9, #768
	b	LBB0_6
LBB0_3:
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.4:
Lloh25:
	adrp	x9, _FLD_DIF_IF_REF@GOTPAGE
Lloh26:
	ldr	x9, [x9, _FLD_DIF_IF_REF@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	bic	w8, w8, w9
	mov	w9, #768
	movk	w9, #52224, lsl #16
	b	LBB0_6
LBB0_5:
	mov	w9, #1140850688
LBB0_6:
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vid_blk_write_word
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx231xx_tuner_post_channel_change  dev->tuner_type =0%d\n"

	.comm	_DIF_AGC_IF_REF,4,2             ; @DIF_AGC_IF_REF
	.comm	_FLD_DIF_K_AGC_RF,4,2           ; @FLD_DIF_K_AGC_RF
	.comm	_FLD_DIF_K_AGC_IF,4,2           ; @FLD_DIF_K_AGC_IF
	.comm	_V4L2_STD_SECAM_L,4,2           ; @V4L2_STD_SECAM_L
	.comm	_V4L2_STD_SECAM_B,4,2           ; @V4L2_STD_SECAM_B
	.comm	_V4L2_STD_SECAM_D,4,2           ; @V4L2_STD_SECAM_D
	.comm	_TUNER_NXP_TDA18271,8,3         ; @TUNER_NXP_TDA18271
	.comm	_FLD_DIF_IF_REF,4,2             ; @FLD_DIF_IF_REF
.subsections_via_symbols
