	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_fe_read_status
_af9005_fe_read_status:                 ## @af9005_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	8(%rdi), %r15
	movl	$0, (%rsi)
	movl	8(%r15), %edi
	movq	_xd_p_agc_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_agc_lock_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_agc_lock_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	callq	_af9005_read_register_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	cmpq	$0, -32(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_5:
	movl	8(%r15), %edi
	movq	_xd_p_fd_tpsd_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fd_tpsd_lock_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fd_tpsd_lock_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	callq	_af9005_read_register_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	cmpq	$0, -32(%rbp)
	je	LBB0_8
## %bb.7:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_8:
	movl	8(%r15), %edi
	movq	_xd_r_mp2if_sync_byte_locked@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mp2if_sync_byte_locked_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	movl	%ecx, %edx
	callq	_af9005_read_register_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	cmpq	$0, -32(%rbp)
	je	LBB0_11
## %bb.10:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
LBB0_11:
	cmpq	$0, 16(%r15)
	je	LBB0_13
## %bb.12:
	movl	8(%r15), %edi
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%r14), %esi
	callq	_af9005_led_control
LBB0_13:
	movl	8(%r15), %edi
	movq	_xd_p_reg_strong_sginal_detected@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_reg_strong_sginal_detected_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_reg_strong_sginal_detected_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	callq	_af9005_read_register_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	-32(%rbp), %rsi
	xorl	%ebx, %ebx
	cmpq	(%r15), %rsi
	je	LBB0_16
## %bb.15:
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	movq	-32(%rbp), %rax
	movq	%rax, (%r15)
	jmp	LBB0_16
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_xd_p_agc_lock,4,2              ## @xd_p_agc_lock
	.comm	_agc_lock_pos,4,2               ## @agc_lock_pos
	.comm	_agc_lock_len,4,2               ## @agc_lock_len
	.comm	_FE_HAS_SIGNAL,4,2              ## @FE_HAS_SIGNAL
	.comm	_xd_p_fd_tpsd_lock,4,2          ## @xd_p_fd_tpsd_lock
	.comm	_fd_tpsd_lock_pos,4,2           ## @fd_tpsd_lock_pos
	.comm	_fd_tpsd_lock_len,4,2           ## @fd_tpsd_lock_len
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.comm	_xd_r_mp2if_sync_byte_locked,4,2 ## @xd_r_mp2if_sync_byte_locked
	.comm	_mp2if_sync_byte_locked_pos,4,2 ## @mp2if_sync_byte_locked_pos
	.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	_xd_p_reg_strong_sginal_detected,4,2 ## @xd_p_reg_strong_sginal_detected
	.comm	_reg_strong_sginal_detected_pos,4,2 ## @reg_strong_sginal_detected_pos
	.comm	_reg_strong_sginal_detected_len,4,2 ## @reg_strong_sginal_detected_len
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adjust for strong signal %d\n"

	.no_dead_strip	_af9005_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 af9005_fe_read_status
_af9005_fe_read_status:                 ; @af9005_fe_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0, #8]
	str	wzr, [x1]
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _xd_p_agc_lock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xd_p_agc_lock@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _agc_lock_pos@GOTPAGE
Lloh4:
	ldr	x8, [x8, _agc_lock_pos@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _agc_lock_len@GOTPAGE
Lloh7:
	ldr	x8, [x8, _agc_lock_len@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_af9005_read_register_bits
	cbnz	w0, LBB0_16
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	ldr	w0, [x20, #8]
Lloh12:
	adrp	x8, _xd_p_fd_tpsd_lock@GOTPAGE
Lloh13:
	ldr	x8, [x8, _xd_p_fd_tpsd_lock@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _fd_tpsd_lock_pos@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fd_tpsd_lock_pos@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _fd_tpsd_lock_len@GOTPAGE
Lloh19:
	ldr	x8, [x8, _fd_tpsd_lock_len@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_af9005_read_register_bits
	cbnz	w0, LBB0_16
; %bb.5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _FE_HAS_CARRIER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	ldr	w0, [x20, #8]
Lloh24:
	adrp	x8, _xd_r_mp2if_sync_byte_locked@GOTPAGE
Lloh25:
	ldr	x8, [x8, _xd_r_mp2if_sync_byte_locked@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _mp2if_sync_byte_locked_pos@GOTPAGE
Lloh28:
	ldr	x8, [x8, _mp2if_sync_byte_locked_pos@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x3, x2
	bl	_af9005_read_register_bits
	cbnz	w0, LBB0_16
; %bb.8:
	ldr	x9, [sp, #8]
Lloh30:
	adrp	x8, _FE_HAS_LOCK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FE_HAS_LOCK@GOTPAGEOFF]
	cbz	x9, LBB0_10
; %bb.9:
Lloh32:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _FE_HAS_VITERBI@GOTPAGE
Lloh36:
	ldr	x10, [x10, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x8]
	orr	w9, w9, w10
	ldr	w10, [x19]
	orr	w9, w9, w10
	str	w9, [x19]
LBB0_10:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_12
; %bb.11:
	ldr	w0, [x20, #8]
	ldr	w9, [x19]
	ldr	w8, [x8]
	and	w1, w8, w9
	bl	_af9005_led_control
LBB0_12:
	ldr	w0, [x20, #8]
Lloh38:
	adrp	x8, _xd_p_reg_strong_sginal_detected@GOTPAGE
Lloh39:
	ldr	x8, [x8, _xd_p_reg_strong_sginal_detected@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _reg_strong_sginal_detected_pos@GOTPAGE
Lloh42:
	ldr	x8, [x8, _reg_strong_sginal_detected_pos@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x8, _reg_strong_sginal_detected_len@GOTPAGE
Lloh45:
	ldr	x8, [x8, _reg_strong_sginal_detected_len@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	add	x4, sp, #8
	bl	_af9005_read_register_bits
	cbnz	w0, LBB0_16
; %bb.13:
	ldr	x1, [sp, #8]
	ldr	x8, [x20]
	cmp	x1, x8
	b.ne	LBB0_17
; %bb.14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh47:
	adrp	x8, _ENODEV@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_17:
Lloh50:
	adrp	x0, l_.str@PAGE
Lloh51:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x20]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_xd_p_agc_lock,4,2              ; @xd_p_agc_lock
	.comm	_agc_lock_pos,4,2               ; @agc_lock_pos
	.comm	_agc_lock_len,4,2               ; @agc_lock_len
	.comm	_FE_HAS_SIGNAL,4,2              ; @FE_HAS_SIGNAL
	.comm	_xd_p_fd_tpsd_lock,4,2          ; @xd_p_fd_tpsd_lock
	.comm	_fd_tpsd_lock_pos,4,2           ; @fd_tpsd_lock_pos
	.comm	_fd_tpsd_lock_len,4,2           ; @fd_tpsd_lock_len
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.comm	_xd_r_mp2if_sync_byte_locked,4,2 ; @xd_r_mp2if_sync_byte_locked
	.comm	_mp2if_sync_byte_locked_pos,4,2 ; @mp2if_sync_byte_locked_pos
	.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	_xd_p_reg_strong_sginal_detected,4,2 ; @xd_p_reg_strong_sginal_detected
	.comm	_reg_strong_sginal_detected_pos,4,2 ; @reg_strong_sginal_detected_pos
	.comm	_reg_strong_sginal_detected_len,4,2 ; @reg_strong_sginal_detected_len
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adjust for strong signal %d\n"

	.no_dead_strip	_af9005_fe_read_status
.subsections_via_symbols
