	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_read_signal_strength
_stb0899_read_signal_strength:          ## @stb0899_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	$0, (%rsi)
	movl	(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.4:
	xorl	%r15d, %r15d
	cmpl	$0, 8(%rbx)
	je	LBB0_10
## %bb.5:
	movq	_STB0899_VSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movq	_VSTATUS_LOCKEDVIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_STB0899_GETFIELD
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	_STB0899_AGCIQIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movq	_AGCIQVALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_STB0899_GETFIELD
	movl	%eax, %r15d
	movq	_stb0899_dvbsrf_tab@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %esi
	movl	%r12d, %edi
	movl	%r15d, %edx
	callq	_stb0899_table_lookup
	leaq	750(%rax), %r9
	movq	%r9, (%r14)
	movl	4(%rbx), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r15b, %r8d
	leaq	L_.str(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$1, %edx
	jmp	LBB0_7
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.2:
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.8:
	movq	_STB0899_S2DEMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IF_AGC_GAIN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_STB0899_READ_S2REG
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_STB0899_GETFIELD
	movl	%eax, %r12d
	movq	_stb0899_dvbs2rf_tab@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %esi
	movl	%r15d, %edi
	movl	%r12d, %edx
	callq	_stb0899_table_lookup
	leaq	950(%rax), %r9
	movq	%r9, (%r14)
	movl	4(%rbx), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$16383, %r12d                   ## imm = 0x3FFF
	leaq	L_.str.1(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$1, %edx
	movl	%r12d, %r8d
LBB0_7:
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_10
LBB0_9:
	movl	4(%rbx), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_3:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB0899_VSTATUS,4,2            ## @STB0899_VSTATUS
	.comm	_VSTATUS_LOCKEDVIT,4,2          ## @VSTATUS_LOCKEDVIT
	.comm	_STB0899_AGCIQIN,4,2            ## @STB0899_AGCIQIN
	.comm	_AGCIQVALUE,4,2                 ## @AGCIQVALUE
	.comm	_stb0899_dvbsrf_tab,4,2         ## @stb0899_dvbsrf_tab
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AGCIQVALUE = 0x%02x, C = %d * 0.1 dBm"

	.comm	_STB0899_S2DEMOD,4,2            ## @STB0899_S2DEMOD
	.comm	_IF_AGC_GAIN,4,2                ## @IF_AGC_GAIN
	.comm	_stb0899_dvbs2rf_tab,4,2        ## @stb0899_dvbs2rf_tab
L_.str.1:                               ## @.str.1
	.asciz	"IF_AGC_GAIN = 0x%04x, C = %d * 0.1 dBm"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported delivery system"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_stb0899_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 stb0899_read_signal_strength
_stb0899_read_signal_strength:          ; @stb0899_read_signal_strength
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	ldr	x19, [x0]
	str	xzr, [x1]
	ldr	w8, [x19]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _STB0899_VSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STB0899_VSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x1, x0
Lloh3:
	adrp	x8, _VSTATUS_LOCKEDVIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VSTATUS_LOCKEDVIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_STB0899_GETFIELD
	cbz	w0, LBB0_10
; %bb.3:
Lloh6:
	adrp	x8, _STB0899_AGCIQIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STB0899_AGCIQIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x1, x0
Lloh9:
	adrp	x8, _AGCIQVALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AGCIQVALUE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_STB0899_GETFIELD
	mov	x21, x0
Lloh12:
	adrp	x8, _stb0899_dvbsrf_tab@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stb0899_dvbsrf_tab@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	sub	w1, w0, #1
	mov	x0, x22
	mov	x2, x21
	bl	_stb0899_table_lookup
	add	x8, x0, #750
	str	x8, [x20]
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x9, _FE_DEBUG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FE_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	and	w9, w21, #0xff
	stp	x9, x8, [sp]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.6:
Lloh20:
	adrp	x8, _STB0899_S2DEMOD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STB0899_S2DEMOD@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x21, _IF_AGC_GAIN@GOTPAGE
Lloh24:
	ldr	x21, [x21, _IF_AGC_GAIN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_STB0899_READ_S2REG
	mov	x1, x0
	ldr	w0, [x21]
	bl	_STB0899_GETFIELD
	mov	x21, x0
Lloh25:
	adrp	x8, _stb0899_dvbs2rf_tab@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stb0899_dvbs2rf_tab@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	sub	w1, w0, #1
	mov	x0, x22
	mov	x2, x21
	bl	_stb0899_table_lookup
	add	x8, x0, #950
	str	x8, [x20]
	ldr	w0, [x19, #4]
Lloh28:
	adrp	x9, _FE_DEBUG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _FE_DEBUG@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
	and	w9, w21, #0x3fff
	stp	x9, x8, [sp]
Lloh31:
	adrp	x3, l_.str.1@PAGE
Lloh32:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_7:
	mov	w2, #1
	bl	_dprintk
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19, #4]
Lloh33:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x3, l_.str.2@PAGE
Lloh37:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_STB0899_VSTATUS,4,2            ; @STB0899_VSTATUS
	.comm	_VSTATUS_LOCKEDVIT,4,2          ; @VSTATUS_LOCKEDVIT
	.comm	_STB0899_AGCIQIN,4,2            ; @STB0899_AGCIQIN
	.comm	_AGCIQVALUE,4,2                 ; @AGCIQVALUE
	.comm	_stb0899_dvbsrf_tab,4,2         ; @stb0899_dvbsrf_tab
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AGCIQVALUE = 0x%02x, C = %d * 0.1 dBm"

	.comm	_STB0899_S2DEMOD,4,2            ; @STB0899_S2DEMOD
	.comm	_IF_AGC_GAIN,4,2                ; @IF_AGC_GAIN
	.comm	_stb0899_dvbs2rf_tab,4,2        ; @stb0899_dvbs2rf_tab
l_.str.1:                               ; @.str.1
	.asciz	"IF_AGC_GAIN = 0x%04x, C = %d * 0.1 dBm"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported delivery system"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_stb0899_read_signal_strength
.subsections_via_symbols
