	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2880_read_status
_cxd2880_read_status:                   ## @cxd2880_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movl	$0, (%r14)
	movq	8(%r12), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.5:
	leaq	8(%r12), %rbx
	movl	4(%r12), %edi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_SYS_DVBT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_dvbt_mon_sync_stat
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_7:
	movq	_SYS_DVBT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_cxd2880_tnrdmd_dvbt2_mon_sync_stat
LBB0_9:
	movl	%eax, %ebx
	movl	4(%r12), %edi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.10:
	movl	16(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_29
LBB0_13:
	cmpl	$6, -40(%rbp)
	jne	LBB0_15
## %bb.14:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
LBB0_15:
	cmpl	$0, -36(%rbp)
	je	LBB0_16
## %bb.17:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rax
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r14), %esi
	movl	%esi, (%r14)
	jmp	LBB0_18
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
LBB0_12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movl	4(%r12), %edi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_16:
	movl	(%r14), %esi
LBB0_18:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_debug
	cmpl	$0, (%r12)
	je	LBB0_19
LBB0_28:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_cxd2880_get_stats
	xorl	%ebx, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	(%r14), %eax
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.20:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.21:
	movl	4(%r12), %edi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_SYS_DVBT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	callq	_cxd2880_set_ber_per_period_t
LBB0_26:
	movl	(%r14), %eax
	movl	%eax, (%r12)
	jmp	LBB0_27
LBB0_23:
	movq	_SYS_DVBT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.24:
	movq	%r15, %rdi
	callq	_cxd2880_check_l1post_plp
	testl	%eax, %eax
	je	LBB0_25
LBB0_27:
	movl	4(%r12), %edi
	callq	_mutex_unlock
	jmp	LBB0_28
LBB0_30:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_12
LBB0_25:
	movq	%r15, %rdi
	callq	_cxd2880_set_ber_per_period_t2
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ## @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_SYS_DVBT,8,3                   ## @SYS_DVBT
	.comm	_SYS_DVBT2,8,3                  ## @SYS_DVBT2
L_.str.1:                               ## @.str.1
	.asciz	"invalid system"

L_.str.2:                               ## @.str.2
	.asciz	"failed. sys = %d\n"

	.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
L_.str.3:                               ## @.str.3
	.asciz	"status %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid system\n"

	.no_dead_strip	_cxd2880_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd2880_read_status
_cxd2880_read_status:                   ; @cxd2880_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
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x0
	mov	w1, #0
	ldr	x22, [x0, #8]
	str	wzr, [x20]
	mov	x21, x22
	ldr	x8, [x21, #8]!
Lloh0:
	adrp	x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.3:
	ldr	w0, [x22, #4]
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _SYS_DVBT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SYS_DVBT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x21
	bl	_cxd2880_tnrdmd_dvbt_mon_sync_stat
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_20
LBB0_7:
Lloh11:
	adrp	x9, _SYS_DVBT2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SYS_DVBT2@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.8:
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x21
	bl	_cxd2880_tnrdmd_dvbt2_mon_sync_stat
LBB0_9:
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	_mutex_unlock
	cbz	w21, LBB0_11
; %bb.10:
	ldr	w8, [x22, #16]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_20
LBB0_11:
	ldr	w8, [sp, #28]
	cmp	w8, #6
	b.ne	LBB0_13
; %bb.12:
Lloh16:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_13:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_17
; %bb.14:
Lloh22:
	adrp	x8, _FE_HAS_VITERBI@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _FE_HAS_LOCK@GOTPAGE
Lloh29:
	ldr	x10, [x10, _FE_HAS_LOCK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh30:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w1, w8, w9
	str	w1, [x20]
	b	LBB0_18
LBB0_15:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_16:
	bl	_pr_err
	ldr	w0, [x22, #4]
	bl	_mutex_unlock
	b	LBB0_6
LBB0_17:
	ldr	w1, [x20]
LBB0_18:
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x22]
	cbz	w8, LBB0_21
LBB0_19:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cxd2880_get_stats
	mov	w21, #0
LBB0_20:
	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
LBB0_21:
	ldr	w8, [x20]
Lloh35:
	adrp	x9, _FE_HAS_LOCK@GOTPAGE
Lloh36:
	ldr	x9, [x9, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.22:
Lloh38:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh39:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.23:
	ldr	w0, [x22, #4]
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh41:
	adrp	x9, _SYS_DVBT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SYS_DVBT@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.24:
	mov	x0, x19
	bl	_cxd2880_set_ber_per_period_t
LBB0_25:
	ldr	w8, [x20]
	str	w8, [x22]
	b	LBB0_28
LBB0_26:
Lloh44:
	adrp	x9, _SYS_DVBT2@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SYS_DVBT2@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.27:
	mov	x0, x19
	bl	_cxd2880_check_l1post_plp
	cbz	w0, LBB0_30
LBB0_28:
	ldr	w0, [x22, #4]
	bl	_mutex_unlock
	b	LBB0_19
LBB0_29:
Lloh47:
	adrp	x0, l_.str.4@PAGE
Lloh48:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_30:
	mov	x0, x19
	bl	_cxd2880_set_ber_per_period_t2
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ; @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_SYS_DVBT,8,3                   ; @SYS_DVBT
	.comm	_SYS_DVBT2,8,3                  ; @SYS_DVBT2
l_.str.1:                               ; @.str.1
	.asciz	"invalid system"

l_.str.2:                               ; @.str.2
	.asciz	"failed. sys = %d\n"

	.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
l_.str.3:                               ; @.str.3
	.asciz	"status %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid system\n"

	.no_dead_strip	_cxd2880_read_status
.subsections_via_symbols
