	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda10071_read_status
_tda10071_read_status:                  ## @tda10071_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %r12
	movq	32(%r12), %r15
	movl	$0, (%rsi)
	xorl	%ebx, %ebx
	cmpl	$0, 28(%r12)
	je	LBB0_29
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	24(%r12), %edi
	leaq	-84(%rbp), %rdx
	movl	$57, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_29:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-84(%rbp), %eax
	testb	$2, %al
	jne	LBB0_3
## %bb.4:
	testb	$4, %al
	jne	LBB0_5
LBB0_6:
	testb	$8, %al
	jne	LBB0_8
LBB0_7:
	movl	(%r13), %eax
	jmp	LBB0_9
LBB0_3:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, (%r13)
	testb	$4, %al
	je	LBB0_6
LBB0_5:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r13)
	testb	$8, %al
	je	LBB0_7
LBB0_8:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	(%r13), %eax
	movl	%eax, (%r13)
LBB0_9:
	movl	%eax, (%r12)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	24(%r14), %rdx
	movq	%rcx, 8(%rdx)
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	movl	24(%r12), %edi
	leaq	-80(%rbp), %rdx
	movl	$58, %esi
	movl	$2, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.11:
	movq	_FE_SCALE_DECIBEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	-80(%rbp), %eax
	shll	$8, %eax
	orl	-76(%rbp), %eax
	imull	$100, %eax, %eax
	movl	%eax, (%rcx)
	movl	(%r12), %eax
	jmp	LBB0_13
LBB0_12:
	movq	(%r13), %rcx
	movq	16(%r14), %rdx
	movq	%rcx, 8(%rdx)
LBB0_13:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.14:
	movl	4(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_15
## %bb.16:
	cmpl	$128, %eax
	jne	LBB0_28
## %bb.17:
	movl	$4, -88(%rbp)                   ## 4-byte Folded Spill
	movl	$77, %esi
	movl	$0, -92(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_18
LBB0_26:
	movq	(%r13), %rax
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
LBB0_27:
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_15:
	movl	$8, -88(%rbp)                   ## 4-byte Folded Spill
	movl	$76, %esi
	movl	$1, -92(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	movl	24(%r12), %edi
	leaq	-84(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.19:
	movl	8(%r12), %edx
	movl	-84(%rbp), %eax
	cmpl	%eax, %edx
	jne	LBB0_21
## %bb.20:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_21:
	movl	%eax, 8(%r12)
	movq	_CMD_BER_UPDATE_COUNTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-112(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	$0, 4(%rcx)
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rcx)
	movl	$3, -104(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%r12, %rdi
	callq	_tda10071_cmd_execute
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.22:
	movl	24(%r12), %edi
	movl	-104(%rbp), %esi
	leaq	-80(%rbp), %rdx
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.23:
	cmpl	$129, 4(%r12)
	movl	-80(%rbp), %eax
	jne	LBB0_25
## %bb.24:
	shll	$24, %eax
	movl	-76(%rbp), %ecx
	movl	-72(%rbp), %edx
	shll	$16, %ecx
	orl	%eax, %ecx
	shll	$8, %edx
	orl	%ecx, %edx
	movl	-68(%rbp), %eax
	orl	%edx, %eax
	movl	%eax, 12(%r12)
	orl	-68(%rbp), %edx
	addl	16(%r12), %edx
	movl	%edx, 16(%r12)
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	%edx, (%rcx)
	movl	-64(%rbp), %ecx
	shll	$8, %ecx
	orl	-60(%rbp), %ecx
	addl	20(%r12), %ecx
	movl	%ecx, 20(%r12)
	movq	(%r14), %rdx
	movq	%rax, 8(%rdx)
	movl	%ecx, (%rdx)
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_25:
	shll	$8, %eax
	orl	-76(%rbp), %eax
	movl	%eax, 12(%r12)
	addl	16(%r12), %eax
	movl	%eax, 16(%r12)
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r14), %rdx
	movq	%rcx, 8(%rdx)
	movl	%eax, (%rdx)
	movq	(%r13), %rax
	jmp	LBB0_27
LBB0_32:
	callq	___stack_chk_fail
	.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_VITERBI,4,2             ## @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.comm	_CMD_GET_AGCACC,4,2             ## @CMD_GET_AGCACC
	.comm	_FE_SCALE_DECIBEL,8,3           ## @FE_SCALE_DECIBEL
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"meas not ready=%02x\n"

	.comm	_CMD_BER_UPDATE_COUNTERS,4,2    ## @CMD_BER_UPDATE_COUNTERS
	.comm	_FE_SCALE_COUNTER,8,3           ## @FE_SCALE_COUNTER
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_tda10071_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda10071_read_status
_tda10071_read_status:                  ; @tda10071_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x20, [x0, #32]
	ldr	x21, [x20, #32]
	str	wzr, [x1]
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_23
; %bb.1:
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x20, #24]
	add	x2, sp, #4
	mov	w1, #57
	bl	_regmap_read
	mov	x22, x0
	cbnz	w0, LBB0_24
; %bb.2:
	ldr	w9, [sp, #4]
	tbz	w9, #1, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh5:
	adrp	x10, _FE_HAS_CARRIER@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w10, w8
	ldr	w10, [x23]
	orr	w8, w8, w10
	str	w8, [x23]
LBB0_4:
Lloh9:
	adrp	x8, _FE_HAS_VITERBI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FE_HAS_VITERBI@GOTPAGEOFF]
	tbz	w9, #2, LBB0_6
; %bb.5:
	ldr	w10, [x8]
	ldr	w11, [x23]
	orr	w10, w11, w10
	str	w10, [x23]
LBB0_6:
Lloh11:
	adrp	x25, _FE_HAS_LOCK@GOTPAGE
Lloh12:
	ldr	x25, [x25, _FE_HAS_LOCK@GOTPAGEOFF]
	tbnz	w9, #3, LBB0_8
; %bb.7:
	ldr	w9, [x23]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [x25]
	orr	w9, w10, w9
	ldr	w10, [x23]
	orr	w9, w9, w10
	str	w9, [x23]
LBB0_9:
Lloh16:
	adrp	x24, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh17:
	ldr	x24, [x24, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
	str	w9, [x20]
	ldr	x10, [x24]
	ldr	x11, [x19, #24]
	str	x10, [x11, #8]
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_12
; %bb.10:
	ldr	w0, [x20, #24]
	add	x2, sp, #24
	mov	w1, #58
	mov	w3, #2
	bl	_regmap_bulk_read
	mov	x22, x0
	cbnz	w0, LBB0_24
; %bb.11:
Lloh18:
	adrp	x8, _FE_SCALE_DECIBEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FE_SCALE_DECIBEL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	str	x8, [x9, #8]
	ldp	w8, w10, [sp, #24]
	orr	w8, w10, w8, lsl #8
	mov	w10, #100
	mul	w8, w8, w10
	str	w8, [x9]
	ldr	w9, [x20]
	b	LBB0_13
LBB0_12:
	ldr	x8, [x24]
	ldr	x10, [x19, #16]
	str	x8, [x10, #8]
LBB0_13:
	ldr	w8, [x25]
	tst	w8, w9
	b.eq	LBB0_17
; %bb.14:
	ldr	w8, [x20, #4]
	cmp	w8, #129
	b.eq	LBB0_19
; %bb.15:
	cmp	w8, #128
	b.ne	LBB0_27
; %bb.16:
	mov	w25, #0
	mov	w23, #4
	mov	w1, #77
	b	LBB0_20
LBB0_17:
	mov	w22, #0
	ldr	x8, [x24]
	ldr	x9, [x19, #8]
	str	x8, [x9, #8]
LBB0_18:
	ldr	x9, [x19]
	str	x8, [x9, #8]
	b	LBB0_25
LBB0_19:
	mov	w23, #8
	mov	w1, #76
	mov	w25, #1
LBB0_20:
	ldr	w0, [x20, #24]
	add	x2, sp, #4
	bl	_regmap_read
	mov	x22, x0
	cbnz	w0, LBB0_24
; %bb.21:
	ldr	w2, [x20, #8]
	ldr	w8, [sp, #4]
	cmp	w2, w8
	b.ne	LBB0_28
; %bb.22:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_23:
	mov	w22, #0
LBB0_24:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_dbg
LBB0_25:
	ldr	x8, [sp, #56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.26:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_27:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_24
LBB0_28:
	str	w8, [x20, #8]
Lloh31:
	adrp	x8, _CMD_BER_UPDATE_COUNTERS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CMD_BER_UPDATE_COUNTERS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	stp	w8, wzr, [x9]
	str	w25, [x9, #8]
	mov	w8, #3
	str	w8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	bl	_tda10071_cmd_execute
	mov	x22, x0
	cbnz	w0, LBB0_24
; %bb.29:
	ldr	w0, [x20, #24]
	ldr	w1, [sp, #16]
	add	x2, sp, #24
	mov	x3, x23
	bl	_regmap_bulk_read
	mov	x22, x0
	cbnz	w0, LBB0_24
; %bb.30:
	ldr	w9, [x20, #4]
	ldr	w8, [sp, #24]
	cmp	w9, #129
	b.ne	LBB0_32
; %bb.31:
	mov	w22, #0
	ldp	w9, w10, [sp, #28]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	orr	w8, w8, w10, lsl #8
	ldr	w9, [sp, #36]
	orr	w9, w8, w9
	str	w9, [x20, #12]
	ldr	w9, [sp, #36]
	orr	w8, w9, w8
	ldr	w9, [x20, #16]
	add	w8, w9, w8
	str	w8, [x20, #16]
Lloh34:
	adrp	x9, _FE_SCALE_COUNTER@GOTPAGE
Lloh35:
	ldr	x9, [x9, _FE_SCALE_COUNTER@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	str	x9, [x10, #8]
	str	w8, [x10]
	ldp	w8, w10, [sp, #40]
	orr	w8, w10, w8, lsl #8
	ldr	w10, [x20, #20]
	add	w8, w10, w8
	str	w8, [x20, #20]
	ldr	x10, [x19]
	str	x9, [x10, #8]
	str	w8, [x10]
	b	LBB0_25
LBB0_32:
	mov	w22, #0
	ldr	w9, [sp, #28]
	orr	w8, w9, w8, lsl #8
	ldr	w9, [x20, #16]
	add	w9, w9, w8
	stp	w8, w9, [x20, #12]
Lloh37:
	adrp	x8, _FE_SCALE_COUNTER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FE_SCALE_COUNTER@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	ldr	x10, [x19, #8]
	str	x8, [x10, #8]
	str	w9, [x10]
	ldr	x8, [x24]
	b	LBB0_18
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.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_VITERBI,4,2             ; @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.comm	_CMD_GET_AGCACC,4,2             ; @CMD_GET_AGCACC
	.comm	_FE_SCALE_DECIBEL,8,3           ; @FE_SCALE_DECIBEL
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"meas not ready=%02x\n"

	.comm	_CMD_BER_UPDATE_COUNTERS,4,2    ; @CMD_BER_UPDATE_COUNTERS
	.comm	_FE_SCALE_COUNTER,8,3           ; @FE_SCALE_COUNTER
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_tda10071_read_status
.subsections_via_symbols
