	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2832_sdr_g_frequency
_rtl2832_sdr_g_frequency:               ## @rtl2832_sdr_g_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, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	16(%rax), %rdi
	movl	(%rbx), %edx
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	8(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	_V4L2_TUNER_ADC@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	4(%r14), %edi
	movq	_tuner@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_g_frequency@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_V4L2_SUBDEV_HAS_OP
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movq	_V4L2_TUNER_RF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	4(%r14), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_subdev_call               ## TAILCALL
LBB0_5:
	cmpl	$1, (%rbx)
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	_V4L2_TUNER_RF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuner=%d type=%d\n"

	.comm	_V4L2_TUNER_ADC,8,3             ## @V4L2_TUNER_ADC
	.comm	_tuner,4,2                      ## @tuner
	.comm	_g_frequency,4,2                ## @g_frequency
	.comm	_V4L2_TUNER_RF,8,3              ## @V4L2_TUNER_RF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rtl2832_sdr_g_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl2832_sdr_g_frequency
_rtl2832_sdr_g_frequency:               ; @rtl2832_sdr_g_frequency
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	x0, [x0, #16]
	ldr	w2, [x19]
	ldr	x3, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_8
; %bb.2:
	mov	w0, #0
	ldr	w8, [x20, #8]
	str	w8, [x19, #16]
Lloh2:
	adrp	x8, _V4L2_TUNER_ADC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_TUNER_ADC@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_9
LBB0_4:
	ldr	w0, [x20, #4]
Lloh4:
	adrp	x21, _tuner@GOTPAGE
Lloh5:
	ldr	x21, [x21, _tuner@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x22, _g_frequency@GOTPAGE
Lloh7:
	ldr	x22, [x22, _g_frequency@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_V4L2_SUBDEV_HAS_OP
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _V4L2_TUNER_RF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_TUNER_RF@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_v4l2_subdev_call
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ldr	w8, [x20]
	str	w8, [x19, #16]
Lloh11:
	adrp	x8, _V4L2_TUNER_RF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_TUNER_RF@GOTPAGEOFF]
	b	LBB0_3
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner=%d type=%d\n"

	.comm	_V4L2_TUNER_ADC,8,3             ; @V4L2_TUNER_ADC
	.comm	_tuner,4,2                      ; @tuner
	.comm	_g_frequency,4,2                ; @g_frequency
	.comm	_V4L2_TUNER_RF,8,3              ; @V4L2_TUNER_RF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rtl2832_sdr_g_frequency
.subsections_via_symbols
