	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_check_signal_presence  ## -- Begin function stv0900_check_signal_presence
	.p2align	4, 0x90
_stv0900_check_signal_presence:         ## @stv0900_check_signal_presence
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CFR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_stv0900_read_reg
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	_CFR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_stv0900_read_reg
	orl	%eax, %ebx
	movl	%ebx, %edi
	movl	$16, %esi
	callq	_ge2comp
	movl	%eax, %r15d
	movq	_AGC2I1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_stv0900_read_reg
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	_AGC2I0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_stv0900_read_reg
	movl	%eax, %ecx
	orl	%ebx, %ecx
	movq	(%r13), %rax
	movl	%r12d, %edx
	movslq	(%rax,%rdx,4), %rax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$38, %rdx
	addl	%esi, %edx
	imulq	$1759218605, %rax, %rsi         ## imm = 0x68DB8BAD
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$44, %rsi
	addl	%eax, %esi
	addl	%edx, %esi
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	andl	$-2, %eax
	shll	$15, %eax
	movslq	8(%r13), %rdx
	imulq	$274877907, %rdx, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdx
	shrq	$63, %rdx
	sarq	$38, %rsi
	addl	%edx, %esi
	cltd
	idivl	%esi
	cmpl	$16384, %eax                    ## imm = 0x4000
	movl	$16384, %edx                    ## imm = 0x4000
	cmovll	%eax, %edx
	addl	%edx, %edx
	movl	%edx, %eax
	negl	%eax
	cmpl	%eax, %r15d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovll	%eax, %r14d
	cmpl	%edx, %r15d
	cmovgl	%eax, %r14d
	cmpl	$8193, %ecx                     ## imm = 0x2001
	cmovgel	%eax, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CFR2,4,2                       ## @CFR2
	.comm	_CFR1,4,2                       ## @CFR1
	.comm	_AGC2I1,4,2                     ## @AGC2I1
	.comm	_AGC2I0,4,2                     ## @AGC2I0
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_check_signal_presence  ; -- Begin function stv0900_check_signal_presence
	.p2align	2
_stv0900_check_signal_presence:         ; @stv0900_check_signal_presence
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _CFR2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFR2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_stv0900_read_reg
	mov	x21, x0
Lloh6:
	adrp	x8, _CFR1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CFR1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv0900_read_reg
	orr	w0, w0, w21, lsl #8
	mov	w1, #16
	bl	_ge2comp
	mov	x21, x0
Lloh9:
	adrp	x8, _AGC2I1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AGC2I1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv0900_read_reg
	mov	x22, x0
Lloh12:
	adrp	x8, _AGC2I0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AGC2I0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv0900_read_reg
	ldr	x8, [x19]
	ldrsw	x8, [x8, w20, uxtw #2]
	orr	w9, w0, w22, lsl #8
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x11, x8, x10
	lsr	x12, x11, #63
	asr	x11, x11, #38
	add	w11, w11, w12
	mov	w12, #35757
	movk	w12, #26843, lsl #16
	mul	x8, x8, x12
	lsr	x12, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w12
	add	w8, w11, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	lsl	w8, w8, #15
	and	w8, w8, #0xffff0000
	ldrsw	x11, [x19, #8]
	mul	x10, x11, x10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	sdiv	w8, w8, w10
	mov	w10, #16384
	cmp	w8, #4, lsl #12                 ; =16384
	csel	w8, w8, w10, lt
	lsl	w8, w8, #1
	neg	w10, w8
	cmp	w21, w10
	ccmp	w21, w8, #0, ge
	mov	w8, #8192
	ccmp	w9, w8, #0, le
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	csel	w0, w8, w23, gt
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CFR2,4,2                       ; @CFR2
	.comm	_CFR1,4,2                       ; @CFR1
	.comm	_AGC2I1,4,2                     ; @AGC2I1
	.comm	_AGC2I0,4,2                     ; @AGC2I0
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
