	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0367ddb_read_snr
_stv0367ddb_read_snr:                   ## @stv0367ddb_read_snr
	.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	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_stv0367ter_snr_readreg
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_stv0367cab_snr_power
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_stv0367cab_snr_readreg
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ecx
	shll	$6, %r15d
	leal	(%r15,%r15,4), %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %edi
	callq	_intlog2
	cltq
	imulq	$788039153, %rax, %r14          ## imm = 0x2EF885F1
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$42, %r14
	addl	%eax, %r14d
LBB0_6:
	movq	_FE_SCALE_DECIBEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	%r14d, (%rcx)
	jmp	LBB0_7
LBB0_8:
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,4,2     ## @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_SCALE_DECIBEL,4,2           ## @FE_SCALE_DECIBEL
	.no_dead_strip	_stv0367ddb_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0367ddb_read_snr
_stv0367ddb_read_snr:                   ; @stv0367ddb_read_snr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_stv0367ter_snr_readreg
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_stv0367cab_snr_power
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_stv0367cab_snr_readreg
	cbz	w0, LBB0_6
; %bb.4:
	add	w8, w20, w20, lsl #2
	lsl	w8, w8, #6
	sdiv	w0, w8, w0
	cbz	w0, LBB0_6
; %bb.5:
	bl	_intlog2
	mov	w8, #34289
	movk	w8, #12024, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #42
	add	w0, w8, w9
LBB0_6:
Lloh0:
	adrp	x8, _FE_SCALE_DECIBEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_SCALE_DECIBEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19]
	stp	w0, w8, [x9]
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #4]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,4,2     ; @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_SCALE_DECIBEL,4,2           ; @FE_SCALE_DECIBEL
	.no_dead_strip	_stv0367ddb_read_snr
.subsections_via_symbols
