	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	_CX2341X_ENC_STOP_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CX23885_END_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CX23885_MPEG_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_CX23885_RAW_BITS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_cx23885_api_cmd
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_UNSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.3:
	movq	8(%r14), %rax
	movq	_V4L2_TUNER_ANALOG_TV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	16(%r14), %eax
	movl	%eax, 8(%r15)
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_call_all
	movq	%r15, %rdi
	callq	_cx23885_initialize_codec
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX2341X_ENC_STOP_CAPTURE,4,2   ## @CX2341X_ENC_STOP_CAPTURE
	.comm	_CX23885_END_NOW,4,2            ## @CX23885_END_NOW
	.comm	_CX23885_MPEG_CAPTURE,4,2       ## @CX23885_MPEG_CAPTURE
	.comm	_CX23885_RAW_BITS_NONE,4,2      ## @CX23885_RAW_BITS_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_S_FREQUENCY: dev type %d, f\n"

L_.str.1:                               ## @.str.1
	.asciz	"VIDIOC_S_FREQUENCY: f tuner %d, f type %d\n"

	.comm	_UNSET,8,3                      ## @UNSET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_TUNER_ANALOG_TV,8,3       ## @V4L2_TUNER_ANALOG_TV
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_frequency,4,2                ## @s_frequency
	.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, #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	x20, x2
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _CX2341X_ENC_STOP_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX2341X_ENC_STOP_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CX23885_END_NOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CX23885_END_NOW@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _CX23885_MPEG_CAPTURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CX23885_MPEG_CAPTURE@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x8, _CX23885_RAW_BITS_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CX23885_RAW_BITS_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #0
	bl	_cx23885_api_cmd
	ldr	x2, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldp	x2, x8, [x20]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh16:
	adrp	x8, _UNSET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UNSET@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
Lloh19:
	adrp	x9, _V4L2_TUNER_ANALOG_TV@GOTPAGE
Lloh20:
	ldr	x9, [x9, _V4L2_TUNER_ANALOG_TV@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20, #16]
	str	w8, [x19, #8]
Lloh22:
	adrp	x8, _tuner@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _s_frequency@GOTPAGE
Lloh26:
	ldr	x8, [x8, _s_frequency@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_call_all
	mov	x0, x19
	bl	_cx23885_initialize_codec
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CX2341X_ENC_STOP_CAPTURE,4,2   ; @CX2341X_ENC_STOP_CAPTURE
	.comm	_CX23885_END_NOW,4,2            ; @CX23885_END_NOW
	.comm	_CX23885_MPEG_CAPTURE,4,2       ; @CX23885_MPEG_CAPTURE
	.comm	_CX23885_RAW_BITS_NONE,4,2      ; @CX23885_RAW_BITS_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_S_FREQUENCY: dev type %d, f\n"

l_.str.1:                               ; @.str.1
	.asciz	"VIDIOC_S_FREQUENCY: f tuner %d, f type %d\n"

	.comm	_UNSET,8,3                      ; @UNSET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_TUNER_ANALOG_TV,8,3       ; @V4L2_TUNER_ANALOG_TV
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_frequency,4,2                ; @s_frequency
	.no_dead_strip	_vidioc_s_frequency
.subsections_via_symbols
