	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_tv_freq
_set_tv_freq:                           ## @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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_tuner
	movq	%rax, %rbx
	movl	24(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	28(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -36(%rbp)
	movq	(%rbx), %rax
	movq	_UNSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	leaq	16(%rbx), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.5:
	movq	_tv_range@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	%ecx, %eax
	shll	$4, %eax
	cmpl	%r14d, %eax
	ja	LBB0_7
## %bb.6:
	movl	%r8d, %eax
	shll	$4, %eax
	cmpl	%r14d, %eax
	jae	LBB0_9
LBB0_7:
	movl	%r14d, %esi
	shrl	$4, %esi
	movl	%r14d, %eax
	andl	$15, %eax
	imull	$100, %eax, %edx
	shrl	$4, %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%r12), %rax
	movl	(%rax), %ecx
	shll	$4, %ecx
	cmpl	%r14d, %ecx
	movl	%ecx, %r14d
	ja	LBB0_9
## %bb.8:
	movl	4(%rax), %r14d
	shll	$4, %r14d
LBB0_9:
	movl	%r14d, -48(%rbp)
	movl	%r14d, %esi
	shrl	$4, %esi
	movl	%r14d, %eax
	andl	$15, %eax
	imull	$100, %eax, %edx
	shrl	$4, %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	%r14d, 8(%rbx)
	movl	$0, 12(%rbx)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	*16(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNSET,8,3                      ## @UNSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuner type not set\n"

L_.str.1:                               ## @.str.1
	.asciz	"Tuner has no way to set tv freq\n"

	.comm	_tv_range,8,3                   ## @tv_range
L_.str.2:                               ## @.str.2
	.asciz	"TV freq (%d.%02d) out of range (%d-%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"tv freq set to %d.%02d\n"

	.no_dead_strip	_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 set_tv_freq
_set_tv_freq:                           ; @set_tv_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	bl	_i2c_get_clientdata
	bl	_to_tuner
	ldr	d0, [x0, #24]
	stur	d0, [sp, #20]
	ldr	w8, [x0, #32]
	str	w8, [sp, #28]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _UNSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	mov	x20, x0
	add	x21, x0, #16
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.3:
Lloh5:
	adrp	x22, _tv_range@GOTPAGE
Lloh6:
	ldr	x22, [x22, _tv_range@GOTPAGEOFF]
	ldr	x9, [x22]
	ldp	w8, w9, [x9]
	lsl	w10, w9, #4
	cmp	w19, w8, lsl #4
	ccmp	w10, w19, #0, hs
	b.hs	LBB0_6
; %bb.4:
	lsr	w1, w19, #4
	and	w10, w19, #0xf
	mov	w11, #100
	mul	w10, w10, w11
	lsr	w2, w10, #4
	stp	x8, x9, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	ldr	x8, [x22]
	ldr	w9, [x8]
	lsl	w9, w9, #4
	cmp	w9, w19
	mov	x19, x9
	b.hi	LBB0_6
; %bb.5:
	ldr	w8, [x8, #4]
	lsl	w19, w8, #4
LBB0_6:
	str	w19, [sp, #16]
	lsr	w1, w19, #4
	and	w8, w19, #0xf
	mov	w9, #100
	mul	w8, w8, w9
	lsr	w2, w8, #4
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	stp	w19, wzr, [x20, #8]
	ldr	x8, [x20, #16]
	add	x1, sp, #16
	mov	x0, x21
	blr	x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_pr_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_UNSET,8,3                      ; @UNSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner type not set\n"

l_.str.1:                               ; @.str.1
	.asciz	"Tuner has no way to set tv freq\n"

	.comm	_tv_range,8,3                   ; @tv_range
l_.str.2:                               ; @.str.2
	.asciz	"TV freq (%d.%02d) out of range (%d-%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"tv freq set to %d.%02d\n"

	.no_dead_strip	_set_tv_freq
.subsections_via_symbols
