	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as102_fe_set_frontend
_as102_fe_set_frontend:                 ## @as102_fe_set_frontend
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -48(%rbp)
	movslq	(%rdi), %rsi
	imulq	$274877907, %rsi, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, -96(%rbp)
	movq	_INTLV_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	4(%rdi), %ecx
	cmpl	$7000000, %ecx                  ## imm = 0x6ACFC0
	jne	LBB0_1
## %bb.2:
	movq	_BW_7_MHZ@GOTPCREL(%rip), %rax
	cmpl	$6000000, %ecx                  ## imm = 0x5B8D80
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_BW_8_MHZ@GOTPCREL(%rip), %rax
	cmpl	$6000000, %ecx                  ## imm = 0x5B8D80
	jne	LBB0_5
LBB0_4:
	movq	_BW_6_MHZ@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rdx
	movq	%rdx, -64(%rbp)
	movl	$-139, %eax
	addl	8(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.7:
	cltq
	leaq	l_switch.table.as102_fe_set_frontend(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_GUARD_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_8:
	movslq	(%rax), %rcx
	movl	%ecx, -68(%rbp)
	movl	$-130, %eax
	addl	12(%rbx), %eax
	cmpl	$2, %eax
	ja	LBB0_9
## %bb.10:
	cltq
	leaq	l_switch.table.as102_fe_set_frontend.4(%rip), %rdi
	movq	(%rdi,%rax,8), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_CONST_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	16(%rbx), %edi
	cmpl	$128, %edi
	jne	LBB0_12
## %bb.13:
	movq	_TRANS_MODE_8K@GOTPCREL(%rip), %rax
	cmpl	$129, %edi
	je	LBB0_15
	jmp	LBB0_16
LBB0_12:
	movq	_TRANS_MODE_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	$129, %edi
	jne	LBB0_16
LBB0_15:
	movq	_TRANS_MODE_2K@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$-133, %eax
	addl	20(%rbx), %eax
	xorl	%r14d, %r14d
	cmpl	$4, %eax
	ja	LBB0_18
## %bb.17:
	cltq
	leaq	l_switch.table.as102_fe_set_frontend.5(%rip), %rdi
	movq	(%rdi,%rax,8), %rax
	movl	(%rax), %r14d
	movl	%r14d, -72(%rbp)
LBB0_18:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_HIER_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_20
## %bb.19:
	movq	32(%rbx), %rdi
	jmp	LBB0_22
LBB0_20:
	movq	_FEC_NONE@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	%rax, 24(%rbx)
	jne	LBB0_21
## %bb.23:
	movq	_HIER_HIGH_PRIORITY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, -88(%rbp)
	movq	32(%rbx), %rdi
	callq	_as102_fe_get_code_rate
	movq	%rax, -80(%rbp)
	movq	32(%rbx), %rcx
	cmpq	(%r13), %rcx
	je	LBB0_24
	jmp	LBB0_25
LBB0_21:
	movq	32(%rbx), %rdi
	cmpq	%rax, %rdi
	jne	LBB0_22
LBB0_24:
	movq	_HIER_LOW_PRIORITY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r12, -88(%rbp)
	movq	24(%rbx), %rdi
	callq	_as102_fe_get_code_rate
	movq	%rax, -80(%rbp)
LBB0_25:
	movq	_HIER_HIGH_PRIORITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rdx, %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	%rcx, %rdx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_26
LBB0_22:
	callq	_as102_fe_get_code_rate
	movq	%rax, -80(%rbp)
LBB0_26:
	movq	8(%r15), %rax
	movl	(%r15), %edi
	leaq	-96(%rbp), %rsi
	callq	*(%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTLV_NATIVE,4,2               ## @INTLV_NATIVE
	.comm	_BW_8_MHZ,8,3                   ## @BW_8_MHZ
	.comm	_BW_7_MHZ,8,3                   ## @BW_7_MHZ
	.comm	_BW_6_MHZ,8,3                   ## @BW_6_MHZ
	.comm	_GUARD_INT_1_32,4,2             ## @GUARD_INT_1_32
	.comm	_GUARD_INT_1_16,4,2             ## @GUARD_INT_1_16
	.comm	_GUARD_INT_1_8,4,2              ## @GUARD_INT_1_8
	.comm	_GUARD_INT_1_4,4,2              ## @GUARD_INT_1_4
	.comm	_GUARD_UNKNOWN,4,2              ## @GUARD_UNKNOWN
	.comm	_CONST_QPSK,4,2                 ## @CONST_QPSK
	.comm	_CONST_QAM16,4,2                ## @CONST_QAM16
	.comm	_CONST_QAM64,4,2                ## @CONST_QAM64
	.comm	_CONST_UNKNOWN,4,2              ## @CONST_UNKNOWN
	.comm	_TRANS_MODE_2K,4,2              ## @TRANS_MODE_2K
	.comm	_TRANS_MODE_8K,4,2              ## @TRANS_MODE_8K
	.comm	_TRANS_MODE_UNKNOWN,4,2         ## @TRANS_MODE_UNKNOWN
	.comm	_HIER_NONE,4,2                  ## @HIER_NONE
	.comm	_HIER_ALPHA_1,4,2               ## @HIER_ALPHA_1
	.comm	_HIER_ALPHA_2,4,2               ## @HIER_ALPHA_2
	.comm	_HIER_ALPHA_4,4,2               ## @HIER_ALPHA_4
	.comm	_HIER_UNKNOWN,4,2               ## @HIER_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"as102: tuner parameters: freq: %d  bw: 0x%02x  gi: 0x%02x\n"

	.comm	_FEC_NONE,8,3                   ## @FEC_NONE
	.comm	_HIER_HIGH_PRIORITY,8,3         ## @HIER_HIGH_PRIORITY
	.comm	_HIER_LOW_PRIORITY,8,3          ## @HIER_LOW_PRIORITY
L_.str.1:                               ## @.str.1
	.asciz	"as102: \thierarchy: 0x%02x  selected: %s  code_rate_%s: 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"HP"

L_.str.3:                               ## @.str.3
	.asciz	"LP"

	.no_dead_strip	_as102_fe_set_frontend
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.as102_fe_set_frontend
l_switch.table.as102_fe_set_frontend:
	.quad	_GUARD_INT_1_8
	.quad	_GUARD_INT_1_4
	.quad	_GUARD_INT_1_32
	.quad	_GUARD_INT_1_16

	.p2align	3                               ## @switch.table.as102_fe_set_frontend.4
l_switch.table.as102_fe_set_frontend.4:
	.quad	_CONST_QPSK
	.quad	_CONST_QAM64
	.quad	_CONST_QAM16

	.p2align	3                               ## @switch.table.as102_fe_set_frontend.5
l_switch.table.as102_fe_set_frontend.5:
	.quad	_HIER_NONE
	.quad	_HIER_UNKNOWN
	.quad	_HIER_ALPHA_4
	.quad	_HIER_ALPHA_2
	.quad	_HIER_ALPHA_1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as102_fe_set_frontend
_as102_fe_set_frontend:                 ; @as102_fe_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x21, [x0, #40]
	movi.2d	v0, #0000000000000000
	str	xzr, [sp, #64]
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	ldp	w1, w9, [x0]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	mul	x8, x1, x8
	lsr	x10, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w10, asr #6
	str	w8, [sp, #16]
Lloh0:
	adrp	x8, _INTLV_NATIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTLV_NATIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _BW_6_MHZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BW_6_MHZ@GOTPAGEOFF]
Lloh5:
	adrp	x11, _BW_7_MHZ@GOTPAGE
Lloh6:
	ldr	x11, [x11, _BW_7_MHZ@GOTPAGEOFF]
Lloh7:
	adrp	x12, _BW_8_MHZ@GOTPAGE
Lloh8:
	ldr	x12, [x12, _BW_8_MHZ@GOTPAGEOFF]
	str	w8, [sp, #64]
	sub	w8, w9, #1708, lsl #12          ; =6995968
	cmp	w8, #4032
	csel	x8, x11, x12, eq
	sub	w9, w9, #1464, lsl #12          ; =5996544
	cmp	w9, #3456
	csel	x8, x10, x8, eq
	ldr	x2, [x8]
	str	x2, [sp, #48]
	ldr	w8, [x0, #8]
	sub	w8, w8, #139
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, l_switch.table.as102_fe_set_frontend@PAGE
Lloh10:
	add	x9, x9, l_switch.table.as102_fe_set_frontend@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _GUARD_UNKNOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GUARD_UNKNOWN@GOTPAGEOFF]
LBB0_3:
	ldrsw	x3, [x8]
	str	w3, [sp, #44]
	ldr	w8, [x19, #12]
	sub	w8, w8, #130
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
Lloh13:
	adrp	x9, l_switch.table.as102_fe_set_frontend.4@PAGE
Lloh14:
	add	x9, x9, l_switch.table.as102_fe_set_frontend.4@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _CONST_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONST_UNKNOWN@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [sp, #60]
Lloh17:
	adrp	x8, _TRANS_MODE_8K@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRANS_MODE_8K@GOTPAGEOFF]
Lloh19:
	adrp	x9, _TRANS_MODE_UNKNOWN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TRANS_MODE_UNKNOWN@GOTPAGEOFF]
	ldp	w10, w11, [x19, #16]
	cmp	w10, #128
	csel	x8, x8, x9, eq
Lloh21:
	adrp	x9, _TRANS_MODE_2K@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TRANS_MODE_2K@GOTPAGEOFF]
	cmp	w10, #129
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #56]
	sub	w8, w11, #133
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.7:
Lloh23:
	adrp	x9, l_switch.table.as102_fe_set_frontend.5@PAGE
Lloh24:
	add	x9, x9, l_switch.table.as102_fe_set_frontend.5@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w20, [x8]
	str	w20, [sp, #40]
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pr_debug
Lloh27:
	adrp	x8, _HIER_NONE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HIER_NONE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [x19, #32]
	b	LBB0_16
LBB0_11:
	ldr	x9, [x19, #24]
Lloh30:
	adrp	x24, _FEC_NONE@GOTPAGE
Lloh31:
	ldr	x24, [x24, _FEC_NONE@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh32:
	adrp	x22, _HIER_HIGH_PRIORITY@GOTPAGE
Lloh33:
	ldr	x22, [x22, _HIER_HIGH_PRIORITY@GOTPAGEOFF]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldr	x23, [x22]
	str	x23, [sp, #24]
	ldr	x0, [x19, #32]
	bl	_as102_fe_get_code_rate
	str	x0, [sp, #32]
	ldr	x8, [x19, #32]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_14
	b	LBB0_15
LBB0_13:
	ldr	x0, [x19, #32]
	cmp	x0, x8
	b.ne	LBB0_16
LBB0_14:
Lloh34:
	adrp	x8, _HIER_LOW_PRIORITY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HIER_LOW_PRIORITY@GOTPAGEOFF]
Lloh36:
	ldr	x23, [x8]
	str	x23, [sp, #24]
	ldr	x0, [x19, #24]
	bl	_as102_fe_get_code_rate
	str	x0, [sp, #32]
LBB0_15:
	ldr	x8, [x22]
Lloh37:
	adrp	x9, l_.str.3@PAGE
Lloh38:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh39:
	adrp	x10, l_.str.2@PAGE
Lloh40:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x23, x8
	csel	x2, x10, x9, eq
	str	x0, [sp]
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x3, x2
	bl	_pr_debug
	b	LBB0_17
LBB0_16:
	bl	_as102_fe_get_code_rate
	str	x0, [sp, #32]
LBB0_17:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x21]
	add	x1, sp, #16
	blr	x8
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_INTLV_NATIVE,4,2               ; @INTLV_NATIVE
	.comm	_BW_8_MHZ,8,3                   ; @BW_8_MHZ
	.comm	_BW_7_MHZ,8,3                   ; @BW_7_MHZ
	.comm	_BW_6_MHZ,8,3                   ; @BW_6_MHZ
	.comm	_GUARD_INT_1_32,4,2             ; @GUARD_INT_1_32
	.comm	_GUARD_INT_1_16,4,2             ; @GUARD_INT_1_16
	.comm	_GUARD_INT_1_8,4,2              ; @GUARD_INT_1_8
	.comm	_GUARD_INT_1_4,4,2              ; @GUARD_INT_1_4
	.comm	_GUARD_UNKNOWN,4,2              ; @GUARD_UNKNOWN
	.comm	_CONST_QPSK,4,2                 ; @CONST_QPSK
	.comm	_CONST_QAM16,4,2                ; @CONST_QAM16
	.comm	_CONST_QAM64,4,2                ; @CONST_QAM64
	.comm	_CONST_UNKNOWN,4,2              ; @CONST_UNKNOWN
	.comm	_TRANS_MODE_2K,4,2              ; @TRANS_MODE_2K
	.comm	_TRANS_MODE_8K,4,2              ; @TRANS_MODE_8K
	.comm	_TRANS_MODE_UNKNOWN,4,2         ; @TRANS_MODE_UNKNOWN
	.comm	_HIER_NONE,4,2                  ; @HIER_NONE
	.comm	_HIER_ALPHA_1,4,2               ; @HIER_ALPHA_1
	.comm	_HIER_ALPHA_2,4,2               ; @HIER_ALPHA_2
	.comm	_HIER_ALPHA_4,4,2               ; @HIER_ALPHA_4
	.comm	_HIER_UNKNOWN,4,2               ; @HIER_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"as102: tuner parameters: freq: %d  bw: 0x%02x  gi: 0x%02x\n"

	.comm	_FEC_NONE,8,3                   ; @FEC_NONE
	.comm	_HIER_HIGH_PRIORITY,8,3         ; @HIER_HIGH_PRIORITY
	.comm	_HIER_LOW_PRIORITY,8,3          ; @HIER_LOW_PRIORITY
l_.str.1:                               ; @.str.1
	.asciz	"as102: \thierarchy: 0x%02x  selected: %s  code_rate_%s: 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"HP"

l_.str.3:                               ; @.str.3
	.asciz	"LP"

	.no_dead_strip	_as102_fe_set_frontend
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.as102_fe_set_frontend
l_switch.table.as102_fe_set_frontend:
	.quad	_GUARD_INT_1_8
	.quad	_GUARD_INT_1_4
	.quad	_GUARD_INT_1_32
	.quad	_GUARD_INT_1_16

	.p2align	3                               ; @switch.table.as102_fe_set_frontend.4
l_switch.table.as102_fe_set_frontend.4:
	.quad	_CONST_QPSK
	.quad	_CONST_QAM64
	.quad	_CONST_QAM16

	.p2align	3                               ; @switch.table.as102_fe_set_frontend.5
l_switch.table.as102_fe_set_frontend.5:
	.quad	_HIER_NONE
	.quad	_HIER_UNKNOWN
	.quad	_HIER_ALPHA_4
	.quad	_HIER_ALPHA_2
	.quad	_HIER_ALPHA_1

.subsections_via_symbols
