	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function stv0900_check_timing_lock
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_stv0900_check_timing_lock:             ## @stv0900_check_timing_lock
	.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, %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_CARFREQ@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_stv0900_read_reg
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_TMGTHRISE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_read_reg
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_TMGTHFALL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_stv0900_read_reg
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_stv0900_write_reg
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
	movq	_CFR_AUTOSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_bits
	movq	_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_stv0900_write_reg
	movq	_RTCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_stv0900_write_reg
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
	movq	_CFRINIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
	movq	_CFRINIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
	movq	_AGC2REF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$101, %edx
	callq	_stv0900_write_reg
	movq	_DMDISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_stv0900_write_reg
	movl	$7, %edi
	callq	_msleep
	movq	_TMGLOCK_QUALITY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, %r12d
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, %r13d
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movd	%r15d, %xmm0
	pinsrd	$1, %r12d, %xmm0
	pinsrd	$2, %r13d, %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, -52(%rbp), %xmm0            ## 4-byte Folded Reload
	pinsrd	$2, -48(%rbp), %xmm0            ## 4-byte Folded Reload
	pinsrd	$3, -44(%rbp), %xmm0            ## 4-byte Folded Reload
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	xorl	%r15d, %r15d
	cmpl	$2, %eax
	setge	%r15b
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	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, %ebx
	addl	%r15d, %ebx
	addl	%ecx, %ebx
	movl	$1, %edi
	callq	_msleep
	cmpl	$3, %ebx
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	jb	LBB0_2
## %bb.1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_AGC2REF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$56, %edx
	callq	_stv0900_write_reg
	movq	_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$136, %edx
	callq	_stv0900_write_reg
	movq	_RTCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$104, %edx
	callq	_stv0900_write_reg
	movq	_CARFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_stv0900_write_reg
	movq	_TMGTHRISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_stv0900_write_reg
	movq	_TMGTHFALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_stv0900_write_reg
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CARFREQ,4,2                    ## @CARFREQ
	.comm	_TMGTHRISE,4,2                  ## @TMGTHRISE
	.comm	_TMGTHFALL,4,2                  ## @TMGTHFALL
	.comm	_CFR_AUTOSCAN,4,2               ## @CFR_AUTOSCAN
	.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	_TMGLOCK_QUALITY,4,2            ## @TMGLOCK_QUALITY
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_stv0900_check_timing_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0900_check_timing_lock
_stv0900_check_timing_lock:             ; @stv0900_check_timing_lock
	.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	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
Lloh3:
	adrp	x8, _CARFREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARFREQ@GOTPAGEOFF]
	ldr	w1, [x8]
	mov	x23, x8
	bl	_stv0900_read_reg
	mov	x20, x0
Lloh5:
	adrp	x25, _TMGTHRISE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TMGTHRISE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_stv0900_read_reg
	mov	x21, x0
Lloh7:
	adrp	x26, _TMGTHFALL@GOTPAGE
Lloh8:
	ldr	x26, [x26, _TMGTHFALL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_stv0900_read_reg
	mov	x22, x0
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #32
	bl	_stv0900_write_reg
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
Lloh9:
	adrp	x8, _CFR_AUTOSCAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CFR_AUTOSCAN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_bits
Lloh12:
	adrp	x8, _RTC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
	bl	_stv0900_write_reg
Lloh15:
	adrp	x8, _RTCS2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTCS2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	bl	_stv0900_write_reg
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
Lloh18:
	adrp	x8, _CFRINIT1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CFRINIT1@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
Lloh21:
	adrp	x8, _CFRINIT0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CFRINIT0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
Lloh24:
	adrp	x28, _AGC2REF@GOTPAGE
Lloh25:
	ldr	x28, [x28, _AGC2REF@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #101
	bl	_stv0900_write_reg
Lloh26:
	adrp	x8, _DMDISTATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DMDISTATE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #24
	bl	_stv0900_write_reg
	mov	w0, #7
	bl	_msleep
Lloh29:
	adrp	x24, _TMGLOCK_QUALITY@GOTPAGE
Lloh30:
	ldr	x24, [x24, _TMGLOCK_QUALITY@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	mov	x23, x0
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cset	w8, gt
	cmp	w23, #1
	cinc	w23, w8, gt
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x19
	bl	_stv0900_get_bits
	cmp	w0, #1
	cinc	w23, w23, gt
	mov	w0, #1
	bl	_msleep
Lloh31:
	adrp	x8, _TRUE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w23, #2
	csel	w23, w8, w27, hi
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #56
	bl	_stv0900_write_reg
Lloh34:
	adrp	x8, _RTC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RTC@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #136
	bl	_stv0900_write_reg
Lloh37:
	adrp	x8, _RTCS2@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RTCS2@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #104
	bl	_stv0900_write_reg
Lloh40:
	adrp	x8, _CARFREQ@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CARFREQ@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_stv0900_write_reg
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	bl	_stv0900_write_reg
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	bl	_stv0900_write_reg
	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 AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CARFREQ,4,2                    ; @CARFREQ
	.comm	_TMGTHRISE,4,2                  ; @TMGTHRISE
	.comm	_TMGTHFALL,4,2                  ; @TMGTHFALL
	.comm	_CFR_AUTOSCAN,4,2               ; @CFR_AUTOSCAN
	.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	_TMGLOCK_QUALITY,4,2            ; @TMGLOCK_QUALITY
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_stv0900_check_timing_lock
.subsections_via_symbols
