	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_s_frequency            ## -- Begin function cx231xx_s_frequency
	.p2align	4, 0x90
_cx231xx_s_frequency:                   ## @cx231xx_s_frequency
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	(%rsi), %r14
	movq	16(%rdx), %rax
	movq	%rax, -48(%rbp)
	movups	(%rdx), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	20(%r14), %edi
	movl	(%rdx), %edx
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_check_dev
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_4:
	movq	%r14, %rdi
	callq	_cx231xx_tuner_pre_channel_change
	movq	_tuner@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_s_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_call_all
	movl	(%r15), %esi
	movq	_g_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	callq	_call_all
	movl	-64(%rbp), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_cx231xx_tuner_post_channel_change
	movl	%eax, %r15d
	movq	8(%r14), %rax
	movq	_TUNER_NXP_TDA18271@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.5:
	movl	16(%r14), %eax
	movq	_V4L2_STD_MN@GOTPCREL(%rip), %rcx
	movq	_V4L2_STD_NTSC_443@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	$5400000, %r12d                 ## imm = 0x5265C0
	testl	%eax, %edx
	jne	LBB0_12
## %bb.6:
	movq	_V4L2_STD_B@GOTPCREL(%rip), %rcx
	movl	$6000000, %r12d                 ## imm = 0x5B8D80
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.7:
	movq	_V4L2_STD_PAL_DK@GOTPCREL(%rip), %rcx
	movq	_V4L2_STD_SECAM_DK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	$6900000, %r12d                 ## imm = 0x694920
	testl	%eax, %edx
	jne	LBB0_12
## %bb.8:
	movq	_V4L2_STD_GH@GOTPCREL(%rip), %rcx
	movl	$7100000, %r12d                 ## imm = 0x6C5660
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.9:
	movq	_V4L2_STD_PAL_I@GOTPCREL(%rip), %rcx
	movl	$7250000, %r12d                 ## imm = 0x6EA050
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.10:
	movq	_V4L2_STD_SECAM_L@GOTPCREL(%rip), %rcx
	movl	$6900000, %r12d                 ## imm = 0x694920
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.11:
	movq	_V4L2_STD_SECAM_LC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	$5400000, %eax                  ## imm = 0x5265C0
	movl	$1250000, %r12d                 ## imm = 0x1312D0
	cmovel	%eax, %r12d
LBB0_12:
	movl	20(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_cx231xx_set_Colibri_For_LowIF
	movq	%r14, %rdi
	callq	_update_HH_register_after_set_DIF
LBB0_13:
	movl	20(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_14:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter vidioc_s_frequency()f->frequency=%d;f->type=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_frequency,4,2                ## @s_frequency
	.comm	_g_frequency,4,2                ## @g_frequency
	.comm	_TUNER_NXP_TDA18271,8,3         ## @TUNER_NXP_TDA18271
	.comm	_V4L2_STD_MN,4,2                ## @V4L2_STD_MN
	.comm	_V4L2_STD_NTSC_443,4,2          ## @V4L2_STD_NTSC_443
	.comm	_V4L2_STD_B,4,2                 ## @V4L2_STD_B
	.comm	_V4L2_STD_PAL_DK,4,2            ## @V4L2_STD_PAL_DK
	.comm	_V4L2_STD_SECAM_DK,4,2          ## @V4L2_STD_SECAM_DK
	.comm	_V4L2_STD_GH,4,2                ## @V4L2_STD_GH
	.comm	_V4L2_STD_PAL_I,4,2             ## @V4L2_STD_PAL_I
	.comm	_V4L2_STD_SECAM_L,4,2           ## @V4L2_STD_SECAM_L
	.comm	_V4L2_STD_SECAM_LC,4,2          ## @V4L2_STD_SECAM_LC
L_.str.1:                               ## @.str.1
	.asciz	"if_frequency is set to %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Set New FREQUENCY to %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_s_frequency            ; -- Begin function cx231xx_s_frequency
	.p2align	2
_cx231xx_s_frequency:                   ; @cx231xx_s_frequency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	ldr	x20, [x1]
	ldr	x8, [x2, #16]
	str	x8, [sp, #32]
	ldr	q0, [x2]
	str	q0, [sp, #16]
	ldr	w0, [x20, #20]
	ldr	w2, [x2]
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	bl	_check_dev
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_3:
	mov	x21, x0
	b	LBB0_17
LBB0_4:
	mov	x0, x20
	bl	_cx231xx_tuner_pre_channel_change
Lloh5:
	adrp	x21, _tuner@GOTPAGE
Lloh6:
	ldr	x21, [x21, _tuner@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _s_frequency@GOTPAGE
Lloh8:
	ldr	x8, [x8, _s_frequency@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_call_all
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _g_frequency@GOTPAGE
Lloh11:
	ldr	x8, [x8, _g_frequency@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x20
	bl	_call_all
	ldr	w8, [sp, #16]
	str	w8, [x20]
	mov	x0, x20
	bl	_cx231xx_tuner_post_channel_change
	mov	x21, x0
	ldr	x8, [x20, #8]
Lloh13:
	adrp	x9, _TUNER_NXP_TDA18271@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TUNER_NXP_TDA18271@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.5:
	mov	w8, #26048
	movk	w8, #82, lsl #16
	ldr	w9, [x20, #16]
Lloh16:
	adrp	x10, _V4L2_STD_MN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _V4L2_STD_MN@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _V4L2_STD_NTSC_443@GOTPAGE
Lloh20:
	ldr	x11, [x11, _V4L2_STD_NTSC_443@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	orr	w10, w11, w10
	mov	w22, #26048
	movk	w22, #82, lsl #16
	tst	w10, w9
	b.ne	LBB0_15
; %bb.6:
Lloh22:
	adrp	x10, _V4L2_STD_B@GOTPAGE
Lloh23:
	ldr	x10, [x10, _V4L2_STD_B@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	mov	w22, #36224
	movk	w22, #91, lsl #16
	b	LBB0_15
LBB0_8:
	mov	w22, #18720
	movk	w22, #105, lsl #16
Lloh25:
	adrp	x10, _V4L2_STD_PAL_DK@GOTPAGE
Lloh26:
	ldr	x10, [x10, _V4L2_STD_PAL_DK@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
Lloh28:
	adrp	x11, _V4L2_STD_SECAM_DK@GOTPAGE
Lloh29:
	ldr	x11, [x11, _V4L2_STD_SECAM_DK@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.ne	LBB0_15
; %bb.9:
Lloh31:
	adrp	x10, _V4L2_STD_GH@GOTPAGE
Lloh32:
	ldr	x10, [x10, _V4L2_STD_GH@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
	mov	w22, #22112
	movk	w22, #108, lsl #16
	b	LBB0_15
LBB0_11:
Lloh34:
	adrp	x10, _V4L2_STD_PAL_I@GOTPAGE
Lloh35:
	ldr	x10, [x10, _V4L2_STD_PAL_I@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
	mov	w22, #41040
	movk	w22, #110, lsl #16
	b	LBB0_15
LBB0_13:
Lloh37:
	adrp	x10, _V4L2_STD_SECAM_L@GOTPAGE
Lloh38:
	ldr	x10, [x10, _V4L2_STD_SECAM_L@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_15
; %bb.14:
Lloh40:
	adrp	x10, _V4L2_STD_SECAM_LC@GOTPAGE
Lloh41:
	ldr	x10, [x10, _V4L2_STD_SECAM_LC@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #4816
	movk	w9, #19, lsl #16
	csel	w22, w8, w9, eq
LBB0_15:
	ldr	w0, [x20, #20]
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	mov	w3, #1
	bl	_cx231xx_set_Colibri_For_LowIF
	mov	x0, x20
	bl	_update_HH_register_after_set_DIF
LBB0_16:
	ldr	w0, [x20, #20]
	ldr	w2, [x19]
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter vidioc_s_frequency()f->frequency=%d;f->type=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_frequency,4,2                ; @s_frequency
	.comm	_g_frequency,4,2                ; @g_frequency
	.comm	_TUNER_NXP_TDA18271,8,3         ; @TUNER_NXP_TDA18271
	.comm	_V4L2_STD_MN,4,2                ; @V4L2_STD_MN
	.comm	_V4L2_STD_NTSC_443,4,2          ; @V4L2_STD_NTSC_443
	.comm	_V4L2_STD_B,4,2                 ; @V4L2_STD_B
	.comm	_V4L2_STD_PAL_DK,4,2            ; @V4L2_STD_PAL_DK
	.comm	_V4L2_STD_SECAM_DK,4,2          ; @V4L2_STD_SECAM_DK
	.comm	_V4L2_STD_GH,4,2                ; @V4L2_STD_GH
	.comm	_V4L2_STD_PAL_I,4,2             ; @V4L2_STD_PAL_I
	.comm	_V4L2_STD_SECAM_L,4,2           ; @V4L2_STD_SECAM_L
	.comm	_V4L2_STD_SECAM_LC,4,2          ; @V4L2_STD_SECAM_LC
l_.str.1:                               ; @.str.1
	.asciz	"if_frequency is set to %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Set New FREQUENCY to %d\n"

.subsections_via_symbols
