	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as102_fe_read_status
_as102_fe_read_status:                  ## @as102_fe_read_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	$0, -32(%rbp)
	movq	8(%r15), %rax
	movl	4(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-36(%rbp), %edx
	movl	%edx, 20(%r15)
	movl	-44(%rbp), %r8d
	movl	%r8d, 16(%r15)
	movl	-48(%rbp), %esi
	cmpl	$128, %esi
	je	LBB0_8
## %bb.3:
	cmpl	$129, %esi
	je	LBB0_6
## %bb.4:
	cmpl	$130, %esi
	jne	LBB0_9
## %bb.5:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_8:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_10
LBB0_9:
	movq	_TUNE_STATUS_NOT_TUNED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	movl	%eax, (%r14)
	movl	-40(%rbp), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.12:
	movq	8(%r15), %rax
	movl	4(%r15), %edi
	movq	%r15, %rsi
	callq	*8(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_HAS_SIGNAL,4,2              ## @FE_HAS_SIGNAL
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.comm	_FE_HAS_VITERBI,4,2             ## @FE_HAS_VITERBI
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.comm	_TUNE_STATUS_NOT_TUNED,4,2      ## @TUNE_STATUS_NOT_TUNED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"as102: tuner status: 0x%02x, strength %d, per: %d, ber: %d\n"

	.no_dead_strip	_as102_fe_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as102_fe_read_status
_as102_fe_read_status:                  ; @as102_fe_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	ldr	x19, [x0]
	str	wzr, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	blr	x8
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w2, [sp, #20]
	ldp	w1, w4, [sp, #8]
	stp	w4, w2, [x19, #16]
Lloh0:
	adrp	x21, _FE_HAS_LOCK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FE_HAS_LOCK@GOTPAGEOFF]
	cmp	w1, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w1, #130
	b.ne	LBB0_9
; %bb.4:
Lloh2:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_10
LBB0_5:
	mov	x21, x0
	b	LBB0_14
LBB0_6:
Lloh8:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
LBB0_8:
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _FE_HAS_VITERBI@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_10
LBB0_9:
Lloh29:
	adrp	x8, _TUNE_STATUS_NOT_TUNED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TUNE_STATUS_NOT_TUNED@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
LBB0_10:
	str	w8, [x20]
	ldr	w3, [sp, #16]
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #4]
	mov	x1, x19
	blr	x8
	mov	x21, x0
	tbz	w0, #31, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w21, #0
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_HAS_SIGNAL,4,2              ; @FE_HAS_SIGNAL
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.comm	_FE_HAS_VITERBI,4,2             ; @FE_HAS_VITERBI
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.comm	_TUNE_STATUS_NOT_TUNED,4,2      ; @TUNE_STATUS_NOT_TUNED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"as102: tuner status: 0x%02x, strength %d, per: %d, ber: %d\n"

	.no_dead_strip	_as102_fe_read_status
.subsections_via_symbols
