	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2832_sdr_set_tuner_freq
_rtl2832_sdr_set_tuner_freq:            ## @rtl2832_sdr_set_tuner_freq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r13
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %r14
	leaq	24(%rdi), %rbx
	movq	_V4L2_CID_RF_TUNER_BANDWIDTH_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_v4l2_ctrl_find
	movq	%rax, %r15
	movq	_V4L2_CID_RF_TUNER_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_v4l2_ctrl_find
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_v4l2_ctrl_g_ctrl
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	16(%r13), %rsi
	movq	%rsi, 16(%r14)
	movq	%r12, %rdi
	callq	_v4l2_ctrl_s_ctrl
	movq	16(%r14), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	callq	_v4l2_ctrl_g_ctrl
	movq	%rax, %rcx
	movq	%rax, 16(%r14)
LBB0_4:
	movq	(%r13), %rdx
	movq	%rdx, 8(%r14)
	movq	_SYS_DVBT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg
	movq	_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r13), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	8(%r13), %edi
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_V4L2_SUBDEV_HAS_OP
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	*%rax
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CID_RF_TUNER_BANDWIDTH_AUTO,4,2 ## @V4L2_CID_RF_TUNER_BANDWIDTH_AUTO
	.comm	_V4L2_CID_RF_TUNER_BANDWIDTH,4,2 ## @V4L2_CID_RF_TUNER_BANDWIDTH
	.comm	_SYS_DVBT,4,2                   ## @SYS_DVBT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frequency=%u bandwidth=%d\n"

	.comm	_POWER_ON,4,2                   ## @POWER_ON
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_frequency,4,2                ## @s_frequency
	.no_dead_strip	_rtl2832_sdr_set_tuner_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl2832_sdr_set_tuner_freq
_rtl2832_sdr_set_tuner_freq:            ; @rtl2832_sdr_set_tuner_freq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0, #32]
	ldr	x8, [x21]
	ldr	x19, [x8]
	add	x22, x0, #24
Lloh0:
	adrp	x8, _V4L2_CID_RF_TUNER_BANDWIDTH_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_RF_TUNER_BANDWIDTH_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_v4l2_ctrl_find
	mov	x23, x0
Lloh3:
	adrp	x8, _V4L2_CID_RF_TUNER_BANDWIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_RF_TUNER_BANDWIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_v4l2_ctrl_find
	mov	x22, x0
	mov	x0, x23
	bl	_v4l2_ctrl_g_ctrl
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x1, [x20, #16]
	str	x1, [x19, #16]
	mov	x0, x22
	bl	_v4l2_ctrl_s_ctrl
	ldr	x3, [x19, #16]
	b	LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_v4l2_ctrl_g_ctrl
	mov	x3, x0
	str	x0, [x19, #16]
LBB0_4:
	mov	x22, x20
	ldr	x2, [x22], #12
	str	x2, [x19, #8]
Lloh6:
	adrp	x8, _SYS_DVBT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYS_DVBT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh11:
	adrp	x8, _POWER_ON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POWER_ON@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x20, #8]
Lloh14:
	adrp	x8, _tuner@GOTPAGE
Lloh15:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _s_frequency@GOTPAGE
Lloh18:
	ldr	x8, [x8, _s_frequency@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_V4L2_SUBDEV_HAS_OP
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	blr	x8
LBB0_8:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_RF_TUNER_BANDWIDTH_AUTO,4,2 ; @V4L2_CID_RF_TUNER_BANDWIDTH_AUTO
	.comm	_V4L2_CID_RF_TUNER_BANDWIDTH,4,2 ; @V4L2_CID_RF_TUNER_BANDWIDTH
	.comm	_SYS_DVBT,4,2                   ; @SYS_DVBT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frequency=%u bandwidth=%d\n"

	.comm	_POWER_ON,4,2                   ; @POWER_ON
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_frequency,4,2                ; @s_frequency
	.no_dead_strip	_rtl2832_sdr_set_tuner_freq
.subsections_via_symbols
