	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_frequency
_vidioc_s_frequency:                    ## @vidioc_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	8(%rsi), %r14
	movl	(%rdx), %esi
	movq	8(%rdx), %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_cx231xx_info
	movq	%r14, %rdi
	callq	_check_dev
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpq	$0, 16(%r15)
	jne	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	cmpl	$0, (%r12)
	jne	LBB0_6
## %bb.5:
	movq	8(%r15), %rax
	movq	_V4L2_TUNER_ANALOG_TV@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
LBB0_6:
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:
	xorl	%edi, %edi
	cmpl	$1, (%r12)
	jne	LBB0_9
## %bb.8:
	movq	8(%r15), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
LBB0_9:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_1:
	movl	%eax, %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	callq	_cx231xx_tuner_pre_channel_change
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_call_all
	movq	%r14, %rdi
	callq	_cx231xx_tuner_post_channel_change
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movq	_TUNER_NXP_TDA18271@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.11:
	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_18
## %bb.12:
	movq	_V4L2_STD_B@GOTPCREL(%rip), %rcx
	movl	$6000000, %r12d                 ## imm = 0x5B8D80
	testl	%eax, (%rcx)
	jne	LBB0_18
## %bb.13:
	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_18
## %bb.14:
	movq	_V4L2_STD_GH@GOTPCREL(%rip), %rcx
	movl	$7100000, %r12d                 ## imm = 0x6C5660
	testl	%eax, (%rcx)
	jne	LBB0_18
## %bb.15:
	movq	_V4L2_STD_PAL_I@GOTPCREL(%rip), %rcx
	movl	$7250000, %r12d                 ## imm = 0x6EA050
	testl	%eax, (%rcx)
	jne	LBB0_18
## %bb.16:
	movq	_V4L2_STD_SECAM_L@GOTPCREL(%rip), %rcx
	movl	$6900000, %r12d                 ## imm = 0x694920
	testl	%eax, (%rcx)
	jne	LBB0_18
## %bb.17:
	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_18:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_cx231xx_info
	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_19:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_cx231xx_info
	jmp	LBB0_20
	.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	_V4L2_TUNER_ANALOG_TV,8,3       ## @V4L2_TUNER_ANALOG_TV
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_frequency,4,2                ## @s_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"

	.no_dead_strip	_vidioc_s_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_frequency
_vidioc_s_frequency:                    ; @vidioc_s_frequency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	ldr	x20, [x1, #8]
	ldr	w1, [x2]
	ldr	x8, [x2, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_cx231xx_info
	mov	x0, x20
	bl	_check_dev
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_8
; %bb.2:
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_8
	b	LBB0_6
LBB0_4:
	mov	x21, x0
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _V4L2_TUNER_ANALOG_TV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_TUNER_ANALOG_TV@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
LBB0_6:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _V4L2_TUNER_RADIO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_10:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_8
LBB0_11:
	mov	x0, x20
	bl	_cx231xx_tuner_pre_channel_change
	ldr	w8, [x19]
	str	w8, [x20]
Lloh11:
	adrp	x8, _tuner@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _s_frequency@GOTPAGE
Lloh15:
	ldr	x8, [x8, _s_frequency@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_call_all
	mov	x0, x20
	bl	_cx231xx_tuner_post_channel_change
	mov	x21, x0
	ldr	x8, [x20, #8]
Lloh17:
	adrp	x9, _TUNER_NXP_TDA18271@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TUNER_NXP_TDA18271@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.12:
	mov	w8, #26048
	movk	w8, #82, lsl #16
	ldr	w9, [x20, #16]
Lloh20:
	adrp	x10, _V4L2_STD_MN@GOTPAGE
Lloh21:
	ldr	x10, [x10, _V4L2_STD_MN@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	adrp	x11, _V4L2_STD_NTSC_443@GOTPAGE
Lloh24:
	ldr	x11, [x11, _V4L2_STD_NTSC_443@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	orr	w10, w11, w10
	mov	w22, #26048
	movk	w22, #82, lsl #16
	tst	w10, w9
	b.ne	LBB0_22
; %bb.13:
Lloh26:
	adrp	x10, _V4L2_STD_B@GOTPAGE
Lloh27:
	ldr	x10, [x10, _V4L2_STD_B@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
	mov	w22, #36224
	movk	w22, #91, lsl #16
	b	LBB0_22
LBB0_15:
	mov	w22, #18720
	movk	w22, #105, lsl #16
Lloh29:
	adrp	x10, _V4L2_STD_PAL_DK@GOTPAGE
Lloh30:
	ldr	x10, [x10, _V4L2_STD_PAL_DK@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	adrp	x11, _V4L2_STD_SECAM_DK@GOTPAGE
Lloh33:
	ldr	x11, [x11, _V4L2_STD_SECAM_DK@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.ne	LBB0_22
; %bb.16:
Lloh35:
	adrp	x10, _V4L2_STD_GH@GOTPAGE
Lloh36:
	ldr	x10, [x10, _V4L2_STD_GH@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_18
; %bb.17:
	mov	w22, #22112
	movk	w22, #108, lsl #16
	b	LBB0_22
LBB0_18:
Lloh38:
	adrp	x10, _V4L2_STD_PAL_I@GOTPAGE
Lloh39:
	ldr	x10, [x10, _V4L2_STD_PAL_I@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_20
; %bb.19:
	mov	w22, #41040
	movk	w22, #110, lsl #16
	b	LBB0_22
LBB0_20:
Lloh41:
	adrp	x10, _V4L2_STD_SECAM_L@GOTPAGE
Lloh42:
	ldr	x10, [x10, _V4L2_STD_SECAM_L@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_22
; %bb.21:
Lloh44:
	adrp	x10, _V4L2_STD_SECAM_LC@GOTPAGE
Lloh45:
	ldr	x10, [x10, _V4L2_STD_SECAM_LC@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #4816
	movk	w9, #19, lsl #16
	csel	w22, w8, w9, eq
LBB0_22:
Lloh47:
	adrp	x0, l_.str.1@PAGE
Lloh48:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_cx231xx_info
	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_23:
	ldr	w1, [x19]
Lloh49:
	adrp	x0, l_.str.2@PAGE
Lloh50:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_cx231xx_info
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.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	_V4L2_TUNER_ANALOG_TV,8,3       ; @V4L2_TUNER_ANALOG_TV
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_frequency,4,2                ; @s_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"

	.no_dead_strip	_vidioc_s_frequency
.subsections_via_symbols
