	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0297_get_frontend
_stv0297_get_frontend:                  ## @stv0297_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, %rdi
	xorl	%esi, %esi
	callq	_stv0297_readreg
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$131, %esi
	callq	_stv0297_readreg
	movl	8(%rbx), %ecx
	movl	%ecx, 20(%r14)
	testb	$8, %al
	jne	LBB0_1
## %bb.2:
	movq	_INVERSION_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_INVERSION_ON@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	(%rbx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.4:
	movq	_INVERSION_ON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:
	movq	_INVERSION_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_6:
	movq	%rcx, (%r14)
LBB0_7:
	movq	%rbx, %rdi
	callq	_stv0297_get_symbolrate
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 8(%r14)
	movq	_FEC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	shrl	$4, %r15d
	andl	$7, %r15d
	cmpl	$4, %r15d
	ja	LBB0_9
## %bb.8:
	movl	%r15d, %eax
	leaq	l_switch.table.stv0297_get_frontend(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVERSION_ON,8,3               ## @INVERSION_ON
	.comm	_INVERSION_OFF,8,3              ## @INVERSION_OFF
	.comm	_FEC_NONE,4,2                   ## @FEC_NONE
	.comm	_QAM_16,4,2                     ## @QAM_16
	.comm	_QAM_32,4,2                     ## @QAM_32
	.comm	_QAM_128,4,2                    ## @QAM_128
	.comm	_QAM_256,4,2                    ## @QAM_256
	.comm	_QAM_64,4,2                     ## @QAM_64
	.no_dead_strip	_stv0297_get_frontend
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.stv0297_get_frontend
l_switch.table.stv0297_get_frontend:
	.quad	_QAM_16
	.quad	_QAM_32
	.quad	_QAM_128
	.quad	_QAM_256
	.quad	_QAM_64

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0297_get_frontend
_stv0297_get_frontend:                  ; @stv0297_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	x21, [x0]
	mov	x0, x21
	mov	w1, #0
	bl	_stv0297_readreg
	mov	x20, x0
	mov	x0, x21
	mov	w1, #131
	bl	_stv0297_readreg
	ldr	w8, [x21, #8]
	str	w8, [x19, #20]
Lloh0:
	adrp	x8, _INVERSION_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVERSION_ON@GOTPAGEOFF]
Lloh2:
	adrp	x9, _INVERSION_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INVERSION_OFF@GOTPAGEOFF]
	tst	w0, #0x8
	csel	x10, x9, x8, eq
	ldr	x10, [x10]
	str	x10, [x19]
	ldr	x11, [x21]
	ldr	x11, [x11]
	cbz	x11, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x9]
	cmp	x10, x8
	csel	x8, x9, x8, eq
	str	x8, [x19]
LBB0_2:
	mov	x0, x21
	bl	_stv0297_get_symbolrate
	mov	w8, #1000
	mul	w8, w0, w8
	str	w8, [x19, #8]
Lloh4:
	adrp	x8, _FEC_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FEC_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ubfx	w8, w20, #4, #3
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.3:
Lloh7:
	adrp	x9, l_switch.table.stv0297_get_frontend@PAGE
Lloh8:
	add	x9, x9, l_switch.table.stv0297_get_frontend@PAGEOFF
	ldr	x8, [x9, w8, uxtw #3]
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_4:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INVERSION_ON,8,3               ; @INVERSION_ON
	.comm	_INVERSION_OFF,8,3              ; @INVERSION_OFF
	.comm	_FEC_NONE,4,2                   ; @FEC_NONE
	.comm	_QAM_16,4,2                     ; @QAM_16
	.comm	_QAM_32,4,2                     ; @QAM_32
	.comm	_QAM_128,4,2                    ; @QAM_128
	.comm	_QAM_256,4,2                    ; @QAM_256
	.comm	_QAM_64,4,2                     ; @QAM_64
	.no_dead_strip	_stv0297_get_frontend
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.stv0297_get_frontend
l_switch.table.stv0297_get_frontend:
	.quad	_QAM_16
	.quad	_QAM_32
	.quad	_QAM_128
	.quad	_QAM_256
	.quad	_QAM_64

.subsections_via_symbols
