	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_get_agc2_min_level
_stv090x_get_agc2_min_level:            ## @stv090x_get_agc2_min_level
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_AGC2REF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.1:
	movq	_DMDCFGMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_SCAN_ENABLE_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movq	_CFR_AUTOSCAN_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.2:
	movq	_SFRUP1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$131, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.3:
	movq	_SFRUP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$192, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.4:
	movq	_SFRLOW1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$130, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.5:
	movq	_SFRLOW0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$160, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.6:
	movq	_DMDTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_stv090x_set_srate
	testq	%rax, %rax
	js	LBB0_14
## %bb.8:
	movslq	(%r15), %rax
	imulq	$1125899907, %rax, %r12         ## imm = 0x431BDE83
	movq	%r12, %rax
	shrq	$63, %rax
	sarq	$50, %r12
	addl	%eax, %r12d
	cmpl	$2, %r12d
	movl	$1, %r13d
	cmovll	%r13d, %r12d
	movq	8(%r15), %rax
	movl	(%rax), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$8, %ecx
	xorl	%ebx, %ebx
	movl	$256000000, %eax                ## imm = 0xF424000
	xorl	%edx, %edx
	idivl	%ecx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$65535, %ecx                    ## imm = 0xFFFF
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	cmovgl	%r14d, %ebx
	movq	_DMDISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$92, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%ebx, %ecx
	movq	_CFRINIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movzbl	%ch, %edx
	movq	%r15, %rdi
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_CFRINIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-44(%rbp), %edx                 ## 1-byte Folded Reload
	movq	%r15, %rdi
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_DMDISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$88, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	negl	%r13d
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	$10, %edi
	callq	_msleep
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_AGC2I1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r14, %r13
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	_AGC2I0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r13d
	shll	$8, %r13d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	orl	%r13d, %ebx
	addl	%r12d, %ebx
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r12d
	shll	$8, %r12d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r13d
	orl	%r12d, %r13d
	addl	%ebx, %r13d
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r12d
	shll	$8, %r12d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	orl	%r12d, %ebx
	addl	%r13d, %ebx
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r12d
	shll	$8, %r12d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r13d
	orl	%r12d, %r13d
	addl	%ebx, %r13d
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r12d
	shll	$8, %r12d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	orl	%r12d, %ebx
	addl	%r13d, %ebx
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r12d
	shll	$8, %r12d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r13d
	orl	%r12d, %r13d
	addl	%ebx, %r13d
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r12d
	shll	$8, %r12d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	orl	%r12d, %ebx
	addl	%r13d, %ebx
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r12d
	shll	$8, %r12d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	addl	%ebx, %r13d
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	_AGC2I0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	orl	%ebx, %eax
	addl	%r13d, %eax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %r14d
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	subl	%ecx, %ebx
	movl	%eax, %ecx
	decl	%r12d
	jne	LBB0_9
	jmp	LBB0_15
LBB0_14:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movl	$-1, %eax
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AGC2REF,4,2                    ## @AGC2REF
	.comm	_DMDCFGMD,4,2                   ## @DMDCFGMD
	.comm	_SCAN_ENABLE_FIELD,4,2          ## @SCAN_ENABLE_FIELD
	.comm	_CFR_AUTOSCAN_FIELD,4,2         ## @CFR_AUTOSCAN_FIELD
	.comm	_SFRUP1,4,2                     ## @SFRUP1
	.comm	_SFRUP0,4,2                     ## @SFRUP0
	.comm	_SFRLOW1,4,2                    ## @SFRLOW1
	.comm	_SFRLOW0,4,2                    ## @SFRLOW0
	.comm	_DMDTOM,4,2                     ## @DMDTOM
	.comm	_DMDISTATE,4,2                  ## @DMDISTATE
	.comm	_CFRINIT1,4,2                   ## @CFRINIT1
	.comm	_CFRINIT0,4,2                   ## @CFRINIT0
	.comm	_AGC2I1,4,2                     ## @AGC2I1
	.comm	_AGC2I0,4,2                     ## @AGC2I0
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_get_agc2_min_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_get_agc2_min_level
_stv090x_get_agc2_min_level:            ; @stv090x_get_agc2_min_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _AGC2REF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AGC2REF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #56
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.1:
Lloh3:
	adrp	x21, _DMDCFGMD@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DMDCFGMD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
Lloh5:
	adrp	x8, _SCAN_ENABLE_FIELD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCAN_ENABLE_FIELD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
Lloh8:
	adrp	x8, _CFR_AUTOSCAN_FIELD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CFR_AUTOSCAN_FIELD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.2:
Lloh11:
	adrp	x8, _SFRUP1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SFRUP1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #131
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.3:
Lloh14:
	adrp	x8, _SFRUP0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SFRUP0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #192
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.4:
Lloh17:
	adrp	x8, _SFRLOW1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SFRLOW1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #130
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.5:
Lloh20:
	adrp	x8, _SFRLOW0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SFRLOW0@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #160
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.6:
Lloh23:
	adrp	x8, _DMDTOM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DMDTOM@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.7:
	mov	w20, #16960
	movk	w20, #15, lsl #16
	mov	x0, x19
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_stv090x_set_srate
	tbnz	x0, #63, LBB0_14
; %bb.8:
	mov	w22, #0
	mov	w23, #0
	mov	w24, #0
	ldr	w8, [x19]
	sdiv	w8, w8, w20
	cmp	w8, #1
	csinc	w25, w8, wzr, gt
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #8
	mov	w9, #16384
	movk	w9, #3906, lsl #16
	mov	w20, #65535
	mov	w26, #1
Lloh26:
	adrp	x28, _DMDISTATE@GOTPAGE
Lloh27:
	ldr	x28, [x28, _DMDISTATE@GOTPAGEOFF]
	sdiv	w8, w9, w8
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh28:
	adrp	x27, _AGC2I1@GOTPAGE
Lloh29:
	ldr	x27, [x27, _AGC2I1@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w26, #0
	csel	w21, w23, w22, gt
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #92
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w24, w21, w24
Lloh30:
	adrp	x8, _CFRINIT1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CFRINIT1@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ubfx	w2, w24, #8, #8
	mov	x0, x19
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh33:
	adrp	x8, _CFRINIT0@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CFRINIT0@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	and	w2, w24, #0xff
	mov	x0, x19
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #88
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	neg	w26, w26
	mov	w0, #10
	bl	_msleep
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
Lloh36:
	adrp	x25, _AGC2I0@GOTPAGE
Lloh37:
	ldr	x25, [x25, _AGC2I0@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w28, w0, w21, lsl #8
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w28, w8, w28
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w28, w8, w28
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w28, w8, w28
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w28, w8, w28
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w28, w8, w28
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w28, w8, w28
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w28, w8, w28
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w28, w8, w28
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x25]
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	orr	w8, w0, w21, lsl #8
	add	w8, w8, w28
Lloh38:
	adrp	x28, _DMDISTATE@GOTPAGE
Lloh39:
	ldr	x28, [x28, _DMDISTATE@GOTPAGEOFF]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	cmp	w8, w20
	csel	w20, w8, w20, lt
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	add	w23, w23, w8
	sub	w22, w22, w8
	sub	w25, w25, #1
	cbnz	w25, LBB0_9
	b	LBB0_15
LBB0_14:
Lloh40:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x2, l_.str@PAGE
Lloh44:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w20, #-1
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_AGC2REF,4,2                    ; @AGC2REF
	.comm	_DMDCFGMD,4,2                   ; @DMDCFGMD
	.comm	_SCAN_ENABLE_FIELD,4,2          ; @SCAN_ENABLE_FIELD
	.comm	_CFR_AUTOSCAN_FIELD,4,2         ; @CFR_AUTOSCAN_FIELD
	.comm	_SFRUP1,4,2                     ; @SFRUP1
	.comm	_SFRUP0,4,2                     ; @SFRUP0
	.comm	_SFRLOW1,4,2                    ; @SFRLOW1
	.comm	_SFRLOW0,4,2                    ; @SFRLOW0
	.comm	_DMDTOM,4,2                     ; @DMDTOM
	.comm	_DMDISTATE,4,2                  ; @DMDISTATE
	.comm	_CFRINIT1,4,2                   ; @CFRINIT1
	.comm	_CFRINIT0,4,2                   ; @CFRINIT0
	.comm	_AGC2I1,4,2                     ; @AGC2I1
	.comm	_AGC2I0,4,2                     ; @AGC2I0
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_get_agc2_min_level
.subsections_via_symbols
