	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sp887x_read_status
_sp887x_read_status:                    ## @sp887x_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$3862, %esi                     ## imm = 0xF16
	callq	_sp887x_readreg
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_sp887x_readreg
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$3863, %esi                     ## imm = 0xF17
	callq	_sp887x_readreg
	movl	$0, (%r15)
	xorl	%ecx, %ecx
	cmpl	$16, %r12d
	jl	LBB0_2
## %bb.1:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
LBB0_2:
	andl	$15, %eax
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.3:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rax
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rdx
	orl	(%rax), %ecx
	orl	(%rdx), %ecx
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
LBB0_4:
	testb	$1, %r14b
	je	LBB0_6
## %bb.5:
	movl	%r14d, %eax
	shrl	$4, %eax
	andl	$15, %eax
	movl	%eax, %esi
	negl	%esi
	testb	$-128, %r14b
	cmovel	%eax, %esi
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_HAS_SIGNAL,4,2              ## @FE_HAS_SIGNAL
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.comm	_FE_HAS_VITERBI,4,2             ## @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sp887x: implement tuner adjustment (%+i steps)!!\n"

	.no_dead_strip	_sp887x_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sp887x_read_status
_sp887x_read_status:                    ; @sp887x_read_status
	.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, x1
	ldr	x21, [x0]
	mov	x0, x21
	mov	w1, #3862
	bl	_sp887x_readreg
	mov	x22, x0
	mov	x0, x21
	mov	w1, #512
	bl	_sp887x_readreg
	mov	x20, x0
	mov	x0, x21
	mov	w1, #3863
	bl	_sp887x_readreg
	mov	w8, #0
	str	wzr, [x19]
	cmp	w22, #16
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_2:
	and	w9, w0, #0xf
	cmp	w9, #2
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _FE_HAS_LOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _FE_HAS_VITERBI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FE_HAS_VITERBI@GOTPAGEOFF]
	str	w8, [x19]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FE_HAS_SYNC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh11:
	adrp	x11, _FE_HAS_CARRIER@GOTPAGE
Lloh12:
	ldr	x11, [x11, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_4:
	tbz	w20, #0, LBB0_6
; %bb.5:
	ubfx	w8, w20, #4, #4
	tst	w20, #0x80
	cneg	w1, w8, ne
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
LBB0_6:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_HAS_SIGNAL,4,2              ; @FE_HAS_SIGNAL
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.comm	_FE_HAS_VITERBI,4,2             ; @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sp887x: implement tuner adjustment (%+i steps)!!\n"

	.no_dead_strip	_sp887x_read_status
.subsections_via_symbols
