	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_set_frequency
_bttv_set_frequency:                    ## @bttv_set_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rcx
	movq	%rdi, %rbx
	movups	(%rsi), %xmm0
	movaps	%xmm0, -32(%rbp)
	movq	_tuner@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_s_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bttv_call_all
	movl	(%r14), %esi
	movq	_g_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_bttv_call_all
	movq	-32(%rbp), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_radio_enable
	movl	-24(%rbp), %eax
	movl	%eax, 8(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	movl	%eax, 4(%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_snd_tea575x_set_freq
	jmp	LBB0_4
LBB0_3:
	movl	-24(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_frequency,4,2                ## @s_frequency
	.comm	_g_frequency,4,2                ## @g_frequency
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.no_dead_strip	_bttv_set_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_set_frequency
_bttv_set_frequency:                    ; @bttv_set_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	x3, x1
	mov	x19, x0
	ldr	q0, [x1]
	str	q0, [sp]
Lloh0:
	adrp	x20, _tuner@GOTPAGE
Lloh1:
	ldr	x20, [x20, _tuner@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _s_frequency@GOTPAGE
Lloh3:
	ldr	x8, [x8, _s_frequency@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_bttv_call_all
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _g_frequency@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_frequency@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_bttv_call_all
	ldr	x8, [sp]
Lloh8:
	adrp	x9, _V4L2_TUNER_RADIO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_radio_enable
	ldr	w8, [sp, #8]
	str	w8, [x19, #8]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_4
; %bb.2:
	str	w8, [x19, #4]!
	mov	x0, x19
	bl	_snd_tea575x_set_freq
	b	LBB0_4
LBB0_3:
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_4:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_frequency,4,2                ; @s_frequency
	.comm	_g_frequency,4,2                ; @g_frequency
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.no_dead_strip	_bttv_set_frequency
.subsections_via_symbols
