	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ves1820_set_tv_freq
_ves1820_set_tv_freq:                   ## @ves1820_set_tv_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movl	%ebx, %edx
	callq	_dprintk
	leal	614(%rbx), %eax
	movzbl	%al, %ecx
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, -48(%rbp)
	movl	%ecx, -44(%rbp)
	movl	$142, -40(%rbp)
	cmpl	$7156, %ebx                     ## imm = 0x1BF4
	movl	$144, %eax
	movl	$48, %ecx
	cmovll	%eax, %ecx
	cmpl	$2692, %ebx                     ## imm = 0xA84
	movl	$160, %eax
	cmovgel	%ecx, %eax
	movl	%eax, -36(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$97, %esi
	callq	_tuner_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"freq: 0x%08x\n"

	.no_dead_strip	_ves1820_set_tv_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ves1820_set_tv_freq
_ves1820_set_tv_freq:                   ; @ves1820_set_tv_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x19
	bl	_dprintk
	add	w8, w19, #614
	ubfx	w9, w8, #8, #7
	and	w8, w8, #0xff
	stp	w9, w8, [sp, #8]
	mov	w8, #142
	mov	w9, #7156
	mov	w10, #48
	mov	w11, #144
	cmp	w19, w9
	csel	w9, w11, w10, lt
	mov	w10, #160
	cmp	w19, #2692
	csel	w9, w10, w9, lt
	stp	w8, w9, [sp, #16]
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #97
	bl	_tuner_write
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"freq: 0x%08x\n"

	.no_dead_strip	_ves1820_set_tv_freq
.subsections_via_symbols
