	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl111sf_demod_read_signal_strength
_mxl111sf_demod_read_signal_strength:   ## @mxl111sf_demod_read_signal_strength
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mxl111sf_demod_calc_snr
	testl	%eax, %eax
	js	LBB0_17
## %bb.1:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mxl1x1sf_demod_get_tps_modulation
	testl	%eax, %eax
	js	LBB0_17
## %bb.2:
	movl	-24(%rbp), %eax
	cmpl	$130, %eax
	je	LBB0_10
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_13
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.5:
	movl	-20(%rbp), %eax
	cmpl	$1300, %eax                     ## imm = 0x514
	jl	LBB0_8
## %bb.6:
	imull	$44, %eax, %esi
	jmp	LBB0_7
LBB0_10:
	movl	-20(%rbp), %ecx
	cmpl	$1500, %ecx                     ## imm = 0x5DC
	jl	LBB0_12
## %bb.11:
	imull	$38, %ecx, %esi
	jmp	LBB0_7
LBB0_13:
	movl	-20(%rbp), %eax
	cmpl	$2000, %eax                     ## imm = 0x7D0
	jl	LBB0_15
## %bb.14:
	leal	(%rax,%rax,8), %ecx
	leal	(%rcx,%rcx,2), %esi
	addl	%eax, %esi
	addl	%eax, %esi
LBB0_7:
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_min
	jmp	LBB0_9
LBB0_16:
	movl	$0, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_8:
	imull	$38, %eax, %eax
	jmp	LBB0_9
LBB0_12:
	movl	%ecx, %eax
	shll	$5, %eax
	addl	%ecx, %eax
	jmp	LBB0_9
LBB0_15:
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,4), %eax
LBB0_9:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mxl111sf_demod_read_signal_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl111sf_demod_read_signal_strength
_mxl111sf_demod_read_signal_strength:   ; @mxl111sf_demod_read_signal_strength
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x20, [x0]
	add	x1, sp, #8
	mov	x0, x20
	bl	_mxl111sf_demod_calc_snr
	tbnz	w0, #31, LBB0_18
; %bb.1:
	add	x1, sp, #12
	mov	x0, x20
	bl	_mxl1x1sf_demod_get_tps_modulation
	tbnz	w0, #31, LBB0_18
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.5:
	ldr	w8, [sp, #8]
	cmp	w8, #1300
	b.lt	LBB0_13
; %bb.6:
	mov	w9, #44
	b	LBB0_11
LBB0_7:
	ldr	w8, [sp, #8]
	cmp	w8, #1500
	b.lt	LBB0_14
; %bb.8:
	mov	w9, #38
	b	LBB0_11
LBB0_9:
	ldr	w8, [sp, #8]
	cmp	w8, #2000
	b.lt	LBB0_15
; %bb.10:
	mov	w9, #29
LBB0_11:
	mul	w1, w8, w9
	mov	w0, #65535
	bl	_min
	mov	x8, x0
	b	LBB0_17
LBB0_12:
	str	wzr, [x19]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_13:
	mov	w9, #38
	b	LBB0_16
LBB0_14:
	add	w8, w8, w8, lsl #5
	b	LBB0_17
LBB0_15:
	mov	w9, #25
LBB0_16:
	mul	w8, w8, w9
LBB0_17:
	mov	w0, #0
	str	w8, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mxl111sf_demod_read_signal_strength
.subsections_via_symbols
