	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_radio_freq
_set_radio_freq:                        ## @set_radio_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	16(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	36(%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	24(%rbx), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.5:
	movq	_radio_range@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	imull	$16000, %ecx, %eax              ## imm = 0x3E80
	cmpl	%r14d, %eax
	ja	LBB0_7
## %bb.6:
	imull	$16000, %r8d, %eax              ## imm = 0x3E80
	cmpl	%r14d, %eax
	jae	LBB0_9
LBB0_7:
	movl	%r14d, %eax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	shrq	$42, %rsi
	imull	$16000, %esi, %eax              ## imm = 0x3E80
	movl	%r14d, %edx
	subl	%eax, %edx
	imull	$52429, %edx, %edx              ## imm = 0xCCCD
	shrl	$23, %edx
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%r12), %rax
	imull	$16000, (%rax), %ecx            ## imm = 0x3E80
	cmpl	%r14d, %ecx
	movl	%ecx, %r14d
	ja	LBB0_9
## %bb.8:
	imull	$16000, 4(%rax), %r14d          ## imm = 0x3E80
LBB0_9:
	movl	%r14d, -48(%rbp)
	movl	%r14d, %eax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	shrq	$42, %rsi
	imull	$16000, %esi, %eax              ## imm = 0x3E80
	movl	%r14d, %ecx
	subl	%eax, %ecx
	imull	$52429, %ecx, %edx              ## imm = 0xCCCD
	shrl	$23, %edx
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_dprintk
	movl	%r14d, 8(%rbx)
	movl	$0, 12(%rbx)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	*24(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 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 radio frequency\n"

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

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

	.no_dead_strip	_set_radio_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_radio_freq
_set_radio_freq:                        ; @set_radio_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	bl	_i2c_get_clientdata
	bl	_to_tuner
	ldr	w8, [x0, #16]
	str	w8, [sp, #20]
	ldr	d0, [x0, #32]
	str	d0, [sp, #24]
	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	x19, x0
	add	x21, x0, #24
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.3:
Lloh5:
	adrp	x23, _radio_range@GOTPAGE
Lloh6:
	ldr	x23, [x23, _radio_range@GOTPAGEOFF]
	ldr	x9, [x23]
	mov	w22, #16000
	ldp	w8, w9, [x9]
	mul	w10, w8, w22
	mul	w11, w9, w22
	cmp	w10, w20
	ccmp	w11, w20, #0, ls
	b.hs	LBB0_6
; %bb.4:
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	umull	x10, w20, w10
	lsr	x1, x10, #42
	msub	w10, w1, w22, w20
	and	w10, w10, #0xffff
	mov	w11, #52429
	mul	w10, w10, w11
	lsr	w2, w10, #23
	stp	x8, x9, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dprintk
	ldr	x8, [x23]
	ldr	w9, [x8]
	mul	w9, w9, w22
	cmp	w9, w20
	mov	x20, x9
	b.hi	LBB0_6
; %bb.5:
	ldr	w8, [x8, #4]
	mov	w9, #16000
	mul	w20, w8, w9
LBB0_6:
	str	w20, [sp, #16]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w20, w8
	lsr	x1, x8, #42
	msub	w8, w1, w22, w20
	and	w8, w8, #0xffff
	mov	w9, #52429
	mul	w8, w8, w9
	lsr	w2, w8, #23
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dprintk
	stp	w20, wzr, [x19, #8]
	ldr	x8, [x19, #24]
	add	x1, sp, #16
	mov	x0, x21
	blr	x8
	ldr	w8, [sp, #20]
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	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 radio frequency\n"

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

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

	.no_dead_strip	_set_radio_freq
.subsections_via_symbols
