	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function stv090x_chk_tmg
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_stv090x_chk_tmg:                       ## @stv090x_chk_tmg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_CARFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STV090x_READ_DEMOD
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_TMGTHRISE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_TMGTHFALL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$32, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.1:
	movl	(%r14), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.2:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	_DMDCFGMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_CFR_AUTOSCAN_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.3:
	movq	_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$128, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.4:
	movq	_RTCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$64, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.5:
	movq	_CARFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.6:
	movq	_CFRINIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.7:
	movq	_CFRINIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.8:
	movq	_AGC2REF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$101, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.9:
	movq	_DMDISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.10:
	movl	$10, %edi
	callq	_msleep
	movq	_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movq	_TMGLOCK_QUALITY_FIELD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%rbx), %esi
	movq	%rbx, %r12
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_msleep
	movq	_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movd	-112(%rbp), %xmm0               ## 4-byte Folded Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, -44(%rbp), %xmm0            ## 4-byte Folded Reload
	pinsrd	$2, %ebx, %xmm0
	pinsrd	$3, %eax, %xmm0
	movdqa	%xmm0, -112(%rbp)               ## 16-byte Spill
	movd	-96(%rbp), %xmm0                ## 4-byte Folded Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, -56(%rbp), %xmm0            ## 4-byte Folded Reload
	pinsrd	$2, -52(%rbp), %xmm0            ## 4-byte Folded Reload
	pinsrd	$3, -48(%rbp), %xmm0            ## 4-byte Folded Reload
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	movl	$1, %edi
	callq	_msleep
	movq	_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	xorl	%ebx, %ebx
	cmpl	$2, %eax
	setge	%bl
	movl	$1, %edi
	callq	_msleep
	movq	_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	setge	%cl
	movdqa	-96(%rbp), %xmm1                ## 16-byte Reload
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [1,1,1,1]
	pcmpgtd	%xmm2, %xmm1
	movdqa	-112(%rbp), %xmm0               ## 16-byte Reload
	pcmpgtd	%xmm2, %xmm0
	packssdw	%xmm0, %xmm1
	packsswb	%xmm1, %xmm1
	pmovmskb	%xmm1, %eax
	movl	%eax, %edx
	shrb	%dl
	andb	$85, %dl
	subb	%dl, %al
	movl	%eax, %edx
	andb	$51, %dl
	shrb	$2, %al
	andb	$51, %al
	addb	%dl, %al
	movl	%eax, %edx
	shrb	$4, %dl
	addb	%al, %dl
	andb	$15, %dl
	movzbl	%dl, %r12d
	addl	%ebx, %r12d
	addl	%ecx, %r12d
	movl	$1, %edi
	callq	_msleep
	xorl	%ebx, %ebx
	cmpl	$3, %r12d
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	setae	-96(%rbp)                       ## 1-byte Folded Spill
	movq	_AGC2REF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$56, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.11:
	movq	_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$136, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.12:
	movq	_RTCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$104, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.13:
	movq	_CARFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.14:
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.15:
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.16:
	movb	-96(%rbp), %al                  ## 1-byte Reload
	movb	%al, %bl
	jmp	LBB0_18
LBB0_17:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movl	$-1, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARFREQ,4,2                    ## @CARFREQ
	.comm	_TMGTHRISE,4,2                  ## @TMGTHRISE
	.comm	_TMGTHFALL,4,2                  ## @TMGTHFALL
	.comm	_DMDCFGMD,4,2                   ## @DMDCFGMD
	.comm	_CFR_AUTOSCAN_FIELD,4,2         ## @CFR_AUTOSCAN_FIELD
	.comm	_RTC,4,2                        ## @RTC
	.comm	_RTCS2,4,2                      ## @RTCS2
	.comm	_CFRINIT1,4,2                   ## @CFRINIT1
	.comm	_CFRINIT0,4,2                   ## @CFRINIT0
	.comm	_AGC2REF,4,2                    ## @AGC2REF
	.comm	_DMDISTATE,4,2                  ## @DMDISTATE
	.comm	_DSTATUS,4,2                    ## @DSTATUS
	.comm	_TMGLOCK_QUALITY_FIELD,4,2      ## @TMGLOCK_QUALITY_FIELD
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_chk_tmg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_chk_tmg
_stv090x_chk_tmg:                       ; @stv090x_chk_tmg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x26, _CARFREQ@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CARFREQ@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_STV090x_READ_DEMOD
	mov	x22, x0
Lloh2:
	adrp	x25, _TMGTHRISE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TMGTHRISE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
Lloh4:
	adrp	x24, _TMGTHFALL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _TMGTHFALL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #32
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.2:
Lloh6:
	adrp	x27, _DMDCFGMD@GOTPAGE
Lloh7:
	ldr	x27, [x27, _DMDCFGMD@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x23, x0
Lloh8:
	adrp	x8, _CFR_AUTOSCAN_FIELD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CFR_AUTOSCAN_FIELD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x23
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.3:
Lloh11:
	adrp	x27, _RTC@GOTPAGE
Lloh12:
	ldr	x27, [x27, _RTC@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #128
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.4:
Lloh13:
	adrp	x28, _RTCS2@GOTPAGE
Lloh14:
	ldr	x28, [x28, _RTCS2@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #64
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.5:
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.6:
Lloh15:
	adrp	x8, _CFRINIT1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFRINIT1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.7:
Lloh18:
	adrp	x8, _CFRINIT0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CFRINIT0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.8:
Lloh21:
	adrp	x8, _AGC2REF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AGC2REF@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #101
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.9:
Lloh24:
	adrp	x8, _DMDISTATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DMDISTATE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #24
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.10:
	mov	w0, #10
	bl	_msleep
Lloh27:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh30:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	mov	x23, x0
	mov	w0, #1
	bl	_msleep
Lloh33:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh36:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cset	w8, gt
	cmp	w23, #1
	cinc	w23, w8, gt
	mov	w0, #1
	bl	_msleep
Lloh39:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh42:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
Lloh45:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh48:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh49:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
Lloh51:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh54:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh55:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
Lloh57:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh60:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh61:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
Lloh63:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh64:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh66:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh67:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
Lloh69:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh70:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh72:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh73:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
Lloh75:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh76:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh78:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh79:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
Lloh81:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh82:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
Lloh84:
	adrp	x8, _TMGLOCK_QUALITY_FIELD@GOTPAGE
Lloh85:
	ldr	x8, [x8, _TMGLOCK_QUALITY_FIELD@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
	cmp	w23, #2
	cset	w23, hi
Lloh87:
	adrp	x8, _AGC2REF@GOTPAGE
Lloh88:
	ldr	x8, [x8, _AGC2REF@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #56
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.11:
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #136
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.12:
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #104
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.13:
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.14:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_16
; %bb.15:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbz	x0, #63, LBB0_17
LBB0_16:
Lloh90:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh91:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh92:
	ldr	w0, [x8]
Lloh93:
	adrp	x2, l_.str@PAGE
Lloh94:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w23, #-1
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.cfi_endproc
                                        ; -- End function
	.comm	_CARFREQ,4,2                    ; @CARFREQ
	.comm	_TMGTHRISE,4,2                  ; @TMGTHRISE
	.comm	_TMGTHFALL,4,2                  ; @TMGTHFALL
	.comm	_DMDCFGMD,4,2                   ; @DMDCFGMD
	.comm	_CFR_AUTOSCAN_FIELD,4,2         ; @CFR_AUTOSCAN_FIELD
	.comm	_RTC,4,2                        ; @RTC
	.comm	_RTCS2,4,2                      ; @RTCS2
	.comm	_CFRINIT1,4,2                   ; @CFRINIT1
	.comm	_CFRINIT0,4,2                   ; @CFRINIT0
	.comm	_AGC2REF,4,2                    ; @AGC2REF
	.comm	_DMDISTATE,4,2                  ; @DMDISTATE
	.comm	_DSTATUS,4,2                    ; @DSTATUS
	.comm	_TMGLOCK_QUALITY_FIELD,4,2      ; @TMGLOCK_QUALITY_FIELD
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_chk_tmg
.subsections_via_symbols
