	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_check_tmg
_stb0899_check_tmg:                     ## @stb0899_check_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_msleep
	movq	_STB0899_RTF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$242, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_TLIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movq	_TLIR_TMG_LOCK_IND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_STB0899_GETFIELD
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	cmpl	$42, %r14d
	jl	LBB0_1
## %bb.2:
	cmpl	$49, %r14d
	jb	LBB0_5
## %bb.3:
	movq	%rax, %rdi
	callq	_abs
	cmpl	$109, %eax
	jle	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rcx
	movq	_ANALOGCARRIER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.2(%rip), %rcx
	movq	_NOTIMING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rcx
	movq	_TIMINGOK@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_dprintk
	movl	4(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB0899_RTF,4,2                ## @STB0899_RTF
	.comm	_STB0899_TLIR,4,2               ## @STB0899_TLIR
	.comm	_TLIR_TMG_LOCK_IND,4,2          ## @TLIR_TMG_LOCK_IND
	.comm	_ANALOGCARRIER,4,2              ## @ANALOGCARRIER
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-->ANALOG Carrier !"

	.comm	_TIMINGOK,4,2                   ## @TIMINGOK
L_.str.1:                               ## @.str.1
	.asciz	"------->TIMING OK !"

	.comm	_NOTIMING,4,2                   ## @NOTIMING
L_.str.2:                               ## @.str.2
	.asciz	"-->NO TIMING !"

	.no_dead_strip	_stb0899_check_tmg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_check_tmg
_stb0899_check_tmg:                     ; @stb0899_check_tmg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_msleep
Lloh0:
	adrp	x21, _STB0899_RTF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STB0899_RTF@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #242
	bl	_stb0899_write_reg
Lloh2:
	adrp	x8, _STB0899_TLIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STB0899_TLIR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x1, x0
Lloh5:
	adrp	x8, _TLIR_TMG_LOCK_IND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLIR_TMG_LOCK_IND@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_STB0899_GETFIELD
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	cmp	w20, #42
	b.lt	LBB0_4
; %bb.1:
	cmp	w20, #49
	b.lo	LBB0_5
; %bb.2:
	bl	_abs
	cmp	w0, #109
	b.le	LBB0_5
; %bb.3:
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
Lloh10:
	adrp	x8, _ANALOGCARRIER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ANALOGCARRIER@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh14:
	adrp	x8, _NOTIMING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NOTIMING@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh18:
	adrp	x8, _TIMINGOK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TIMINGOK@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_dprintk
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_STB0899_RTF,4,2                ; @STB0899_RTF
	.comm	_STB0899_TLIR,4,2               ; @STB0899_TLIR
	.comm	_TLIR_TMG_LOCK_IND,4,2          ; @TLIR_TMG_LOCK_IND
	.comm	_ANALOGCARRIER,4,2              ; @ANALOGCARRIER
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-->ANALOG Carrier !"

	.comm	_TIMINGOK,4,2                   ; @TIMINGOK
l_.str.1:                               ; @.str.1
	.asciz	"------->TIMING OK !"

	.comm	_NOTIMING,4,2                   ; @NOTIMING
l_.str.2:                               ; @.str.2
	.asciz	"-->NO TIMING !"

	.no_dead_strip	_stb0899_check_tmg
.subsections_via_symbols
