	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r820t_set_mux
_r820t_set_mux:                         ## @r820t_set_mux
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movslq	%esi, %rax
	imulq	$1125899907, %rax, %r15         ## imm = 0x431BDE83
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$50, %r15
	addl	%eax, %r15d
	movq	_freq_ranges@GOTPCREL(%rip), %r14
	movq	(%r14), %r12
	movl	$4, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	cltq
	movq	(%r14), %r12
	cmpq	%rax, %rbx
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %rcx
	leaq	40(%r13), %rax
	cmpl	36(%r12,%r13), %r15d
	jge	LBB0_1
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_tuner_dbg
	movl	(%r12,%r13), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	$8, %ecx
	callq	_r820t_write_reg_mask
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:
	movl	4(%r12,%r13), %edx
	movq	%rbx, %rdi
	movl	$26, %esi
	movl	$195, %ecx
	callq	_r820t_write_reg_mask
	testl	%eax, %eax
	js	LBB0_19
## %bb.5:
	movl	28(%r12,%r13), %edx
	movq	%rbx, %rdi
	movl	$27, %esi
	callq	_r820t_write_reg
	testl	%eax, %eax
	js	LBB0_19
## %bb.6:
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_10
## %bb.7:
	cmpl	$130, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$132, %eax
	jne	LBB0_12
## %bb.9:
	movl	16(%r12,%r13), %edx
	jmp	LBB0_14
LBB0_10:
	movl	8(%r12,%r13), %edx
	jmp	LBB0_13
LBB0_11:
	movl	12(%r12,%r13), %edx
	jmp	LBB0_13
LBB0_12:
	movl	16(%r12,%r13), %edx
LBB0_13:
	orl	$8, %edx
LBB0_14:
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$11, %ecx
	callq	_r820t_write_reg_mask
	testl	%eax, %eax
	js	LBB0_19
## %bb.15:
	cmpq	$0, 16(%rbx)
	je	LBB0_16
## %bb.17:
	movq	8(%rbx), %rax
	movq	20(%r12,%r13), %rcx
	movl	(%rax,%rcx,8), %edx
	movl	4(%rax,%rcx,8), %r14d
	jmp	LBB0_18
LBB0_16:
	xorl	%edx, %edx
	xorl	%r14d, %r14d
LBB0_18:
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$63, %ecx
	callq	_r820t_write_reg_mask
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	%r14d, %edx
	movl	$63, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r820t_write_reg_mask           ## TAILCALL
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_freq_ranges,8,3                ## @freq_ranges
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set r820t range#%d for frequency %d MHz\n"

	.no_dead_strip	_r820t_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r820t_set_mux
_r820t_set_mux:                         ; @r820t_set_mux
	.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
	mov	x19, x0
	mov	x8, #0
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x9, w1, w9
	lsr	x10, x9, #63
	asr	x9, x9, #50
	add	w21, w9, w10
Lloh0:
	adrp	x24, _freq_ranges@GOTPAGE
Lloh1:
	ldr	x24, [x24, _freq_ranges@GOTPAGEOFF]
	ldr	x20, [x24]
	mov	w9, #20
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	mov	x23, x9
	mov	x0, x20
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	ldr	x20, [x24]
	cmp	x22, w8, sxtw
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x22, #1
	add	x9, x20, x23
	ldr	w10, [x9, #20]
	add	x9, x23, #40
	cmp	w21, w10
	b.ge	LBB0_1
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_tuner_dbg
	add	x21, x20, x23
	ldur	w2, [x21, #-16]
	mov	x0, x19
	mov	w1, #23
	mov	w3, #8
	bl	_r820t_write_reg_mask
	tbnz	w0, #31, LBB0_20
; %bb.4:
	ldur	w2, [x21, #-12]
	mov	x0, x19
	mov	w1, #26
	mov	w3, #195
	bl	_r820t_write_reg_mask
	tbnz	w0, #31, LBB0_20
; %bb.5:
	add	x8, x20, x23
	ldr	w2, [x8, #12]
	mov	x0, x19
	mov	w1, #27
	bl	_r820t_write_reg
	tbnz	w0, #31, LBB0_20
; %bb.6:
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_10
; %bb.7:
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #132
	b.ne	LBB0_12
; %bb.9:
	ldr	w2, [x20, x23]
	b	LBB0_14
LBB0_10:
	add	x8, x20, x23
	ldur	w8, [x8, #-8]
	b	LBB0_13
LBB0_11:
	add	x8, x20, x23
	ldur	w8, [x8, #-4]
	b	LBB0_13
LBB0_12:
	ldr	w8, [x20, x23]
LBB0_13:
	orr	w2, w8, #0x8
LBB0_14:
	mov	x0, x19
	mov	w1, #16
	mov	w3, #11
	bl	_r820t_write_reg_mask
	tbnz	w0, #31, LBB0_20
; %bb.15:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	x8, [x19, #8]
	add	x9, x20, x23
	ldur	x9, [x9, #4]
	add	x8, x8, x9, lsl #3
	ldp	w2, w20, [x8]
	b	LBB0_18
LBB0_17:
	mov	w2, #0
	mov	w20, #0
LBB0_18:
	mov	x0, x19
	mov	w1, #8
	mov	w3, #63
	bl	_r820t_write_reg_mask
	tbnz	w0, #31, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	w1, #9
	mov	x2, x20
	mov	w3, #63
	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
	b	_r820t_write_reg_mask
LBB0_20:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_freq_ranges,8,3                ; @freq_ranges
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set r820t range#%d for frequency %d MHz\n"

	.no_dead_strip	_r820t_set_mux
.subsections_via_symbols
