	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0367ter_get_frontend
_stv0367ter_get_frontend:               ## @stv0367ter_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %r15
	callq	_stv0367_get_tuner_freq
	movq	%rax, %rcx
	negq	%rcx
	testl	$-2147483648, %eax              ## imm = 0x80000000
	cmoveq	%rax, %rcx
	movq	%rcx, 40(%r14)
	movq	_F367TER_TPS_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stv0367_readbits
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movq	_QAM_16@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_QAM_64@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_QPSK@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	movl	%eax, 32(%r14)
	movq	_F367TER_INV_SPECTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stv0367_readbits
	movq	%rax, 24(%r14)
	movq	_F367TER_TPS_HIERMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stv0367_readbits
	testl	$-4, %eax
	je	LBB0_7
## %bb.6:
	movq	_HIERARCHY_AUTO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	cltq
	leaq	l_switch.table.stv0367ter_get_frontend(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	(%r15), %rax
	movq	_FE_TER_HIER_LOW_PRIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movq	_F367TER_TPS_LPCODE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_F367TER_TPS_HPCODE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stv0367_readbits
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.13:
	cltq
	leaq	l_switch.table.stv0367ter_get_frontend.1(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_FEC_AUTO@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_F367TER_SYR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stv0367_readbits
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.16:
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rcx
	cmpl	$129, %eax
	je	LBB0_18
	jmp	LBB0_19
LBB0_15:
	movq	_TRANSMISSION_MODE_AUTO@GOTPCREL(%rip), %rcx
	cmpl	$129, %eax
	jne	LBB0_19
LBB0_18:
	movq	_TRANSMISSION_MODE_2K@GOTPCREL(%rip), %rcx
LBB0_19:
	movl	(%rcx), %eax
	movl	%eax, 8(%r14)
	movq	_F367TER_SYR_GUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stv0367_readbits
	movq	%rax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F367TER_TPS_CONST,4,2          ## @F367TER_TPS_CONST
	.comm	_QPSK,4,2                       ## @QPSK
	.comm	_QAM_16,4,2                     ## @QAM_16
	.comm	_QAM_64,4,2                     ## @QAM_64
	.comm	_F367TER_INV_SPECTR,4,2         ## @F367TER_INV_SPECTR
	.comm	_F367TER_TPS_HIERMODE,4,2       ## @F367TER_TPS_HIERMODE
	.comm	_HIERARCHY_NONE,4,2             ## @HIERARCHY_NONE
	.comm	_HIERARCHY_1,4,2                ## @HIERARCHY_1
	.comm	_HIERARCHY_2,4,2                ## @HIERARCHY_2
	.comm	_HIERARCHY_4,4,2                ## @HIERARCHY_4
	.comm	_HIERARCHY_AUTO,4,2             ## @HIERARCHY_AUTO
	.comm	_FE_TER_HIER_LOW_PRIO,8,3       ## @FE_TER_HIER_LOW_PRIO
	.comm	_F367TER_TPS_LPCODE,4,2         ## @F367TER_TPS_LPCODE
	.comm	_F367TER_TPS_HPCODE,4,2         ## @F367TER_TPS_HPCODE
	.comm	_FEC_1_2,4,2                    ## @FEC_1_2
	.comm	_FEC_2_3,4,2                    ## @FEC_2_3
	.comm	_FEC_3_4,4,2                    ## @FEC_3_4
	.comm	_FEC_5_6,4,2                    ## @FEC_5_6
	.comm	_FEC_7_8,4,2                    ## @FEC_7_8
	.comm	_FEC_AUTO,4,2                   ## @FEC_AUTO
	.comm	_F367TER_SYR_MODE,4,2           ## @F367TER_SYR_MODE
	.comm	_TRANSMISSION_MODE_2K,4,2       ## @TRANSMISSION_MODE_2K
	.comm	_TRANSMISSION_MODE_8K,4,2       ## @TRANSMISSION_MODE_8K
	.comm	_TRANSMISSION_MODE_AUTO,4,2     ## @TRANSMISSION_MODE_AUTO
	.comm	_F367TER_SYR_GUARD,4,2          ## @F367TER_SYR_GUARD
	.no_dead_strip	_stv0367ter_get_frontend
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.stv0367ter_get_frontend
l_switch.table.stv0367ter_get_frontend:
	.quad	_HIERARCHY_NONE
	.quad	_HIERARCHY_1
	.quad	_HIERARCHY_2
	.quad	_HIERARCHY_4

	.p2align	3                               ## @switch.table.stv0367ter_get_frontend.1
l_switch.table.stv0367ter_get_frontend.1:
	.quad	_FEC_1_2
	.quad	_FEC_2_3
	.quad	_FEC_3_4
	.quad	_FEC_5_6
	.quad	_FEC_7_8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0367ter_get_frontend
_stv0367ter_get_frontend:               ; @stv0367ter_get_frontend
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0]
	ldr	x21, [x20]
	bl	_stv0367_get_tuner_freq
	tst	x0, #0x80000000
	cneg	x8, x0, ne
	str	x8, [x19, #40]
Lloh0:
	adrp	x8, _F367TER_TPS_CONST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F367TER_TPS_CONST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readbits
Lloh3:
	adrp	x8, _QPSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QPSK@GOTPAGEOFF]
Lloh5:
	adrp	x9, _QAM_16@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QAM_16@GOTPAGEOFF]
Lloh7:
	adrp	x10, _QAM_64@GOTPAGE
Lloh8:
	ldr	x10, [x10, _QAM_64@GOTPAGEOFF]
	cmp	w0, #1
	csel	x9, x9, x10, eq
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh9:
	adrp	x8, _F367TER_INV_SPECTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F367TER_INV_SPECTR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readbits
	str	x0, [x19, #24]
Lloh12:
	adrp	x8, _F367TER_TPS_HIERMODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _F367TER_TPS_HIERMODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readbits
	tst	x0, #0xfffffffc
	b.eq	LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _HIERARCHY_AUTO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HIERARCHY_AUTO@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	sbfiz	x8, x0, #3, #32
Lloh17:
	adrp	x9, l_switch.table.stv0367ter_get_frontend@PAGE
Lloh18:
	add	x9, x9, l_switch.table.stv0367ter_get_frontend@PAGEOFF
	ldr	x8, [x9, x8]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x21]
Lloh19:
	adrp	x9, _FE_TER_HIER_LOW_PRIO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FE_TER_HIER_LOW_PRIO@GOTPAGEOFF]
Lloh21:
	adrp	x10, _F367TER_TPS_LPCODE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _F367TER_TPS_LPCODE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x11, _F367TER_TPS_HPCODE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _F367TER_TPS_HPCODE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readbits
	cmp	w0, #4
	b.hi	LBB0_5
; %bb.4:
	sbfiz	x8, x0, #3, #32
Lloh26:
	adrp	x9, l_switch.table.stv0367ter_get_frontend.1@PAGE
Lloh27:
	add	x9, x9, l_switch.table.stv0367ter_get_frontend.1@PAGEOFF
	ldr	x8, [x9, x8]
	b	LBB0_6
LBB0_5:
Lloh28:
	adrp	x8, _FEC_AUTO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FEC_AUTO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh30:
	adrp	x8, _F367TER_SYR_MODE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _F367TER_SYR_MODE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readbits
Lloh33:
	adrp	x8, _TRANSMISSION_MODE_2K@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TRANSMISSION_MODE_2K@GOTPAGEOFF]
Lloh35:
	adrp	x9, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh36:
	ldr	x9, [x9, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
Lloh37:
	adrp	x10, _TRANSMISSION_MODE_AUTO@GOTPAGE
Lloh38:
	ldr	x10, [x10, _TRANSMISSION_MODE_AUTO@GOTPAGEOFF]
	cmp	w0, #128
	csel	x9, x9, x10, eq
	cmp	w0, #129
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh39:
	adrp	x8, _F367TER_SYR_GUARD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _F367TER_SYR_GUARD@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0367_readbits
	str	x0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_F367TER_TPS_CONST,4,2          ; @F367TER_TPS_CONST
	.comm	_QPSK,4,2                       ; @QPSK
	.comm	_QAM_16,4,2                     ; @QAM_16
	.comm	_QAM_64,4,2                     ; @QAM_64
	.comm	_F367TER_INV_SPECTR,4,2         ; @F367TER_INV_SPECTR
	.comm	_F367TER_TPS_HIERMODE,4,2       ; @F367TER_TPS_HIERMODE
	.comm	_HIERARCHY_NONE,4,2             ; @HIERARCHY_NONE
	.comm	_HIERARCHY_1,4,2                ; @HIERARCHY_1
	.comm	_HIERARCHY_2,4,2                ; @HIERARCHY_2
	.comm	_HIERARCHY_4,4,2                ; @HIERARCHY_4
	.comm	_HIERARCHY_AUTO,4,2             ; @HIERARCHY_AUTO
	.comm	_FE_TER_HIER_LOW_PRIO,8,3       ; @FE_TER_HIER_LOW_PRIO
	.comm	_F367TER_TPS_LPCODE,4,2         ; @F367TER_TPS_LPCODE
	.comm	_F367TER_TPS_HPCODE,4,2         ; @F367TER_TPS_HPCODE
	.comm	_FEC_1_2,4,2                    ; @FEC_1_2
	.comm	_FEC_2_3,4,2                    ; @FEC_2_3
	.comm	_FEC_3_4,4,2                    ; @FEC_3_4
	.comm	_FEC_5_6,4,2                    ; @FEC_5_6
	.comm	_FEC_7_8,4,2                    ; @FEC_7_8
	.comm	_FEC_AUTO,4,2                   ; @FEC_AUTO
	.comm	_F367TER_SYR_MODE,4,2           ; @F367TER_SYR_MODE
	.comm	_TRANSMISSION_MODE_2K,4,2       ; @TRANSMISSION_MODE_2K
	.comm	_TRANSMISSION_MODE_8K,4,2       ; @TRANSMISSION_MODE_8K
	.comm	_TRANSMISSION_MODE_AUTO,4,2     ; @TRANSMISSION_MODE_AUTO
	.comm	_F367TER_SYR_GUARD,4,2          ; @F367TER_SYR_GUARD
	.no_dead_strip	_stv0367ter_get_frontend
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.stv0367ter_get_frontend
l_switch.table.stv0367ter_get_frontend:
	.quad	_HIERARCHY_NONE
	.quad	_HIERARCHY_1
	.quad	_HIERARCHY_2
	.quad	_HIERARCHY_4

	.p2align	3                               ; @switch.table.stv0367ter_get_frontend.1
l_switch.table.stv0367ter_get_frontend.1:
	.quad	_FEC_1_2
	.quad	_FEC_2_3
	.quad	_FEC_3_4
	.quad	_FEC_5_6
	.quad	_FEC_7_8

.subsections_via_symbols
