	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24123_read_status
_cx24123_read_status:                   ## @cx24123_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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_cx24123_readreg
	movl	%eax, %r15d
	movl	$0, (%r14)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movl	$0, -36(%rbp)
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	*%rcx
	movl	-36(%rbp), %eax
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_cx24123_readreg
	testb	$1, %al
	jne	LBB0_6
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	_TUNER_STATUS_LOCKED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_6:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_7:
	testb	$2, %r15b
	jne	LBB0_8
## %bb.9:
	testb	$4, %r15b
	jne	LBB0_10
LBB0_11:
	testb	$8, %r15b
	jne	LBB0_12
LBB0_13:
	testb	$-128, %r15b
	je	LBB0_15
LBB0_14:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_15:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	testb	$4, %r15b
	je	LBB0_11
LBB0_10:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	testb	$8, %r15b
	je	LBB0_13
LBB0_12:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	testb	$-128, %r15b
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_TUNER_STATUS_LOCKED,4,2        ## @TUNER_STATUS_LOCKED
	.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
	.no_dead_strip	_cx24123_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24123_read_status
_cx24123_read_status:                   ; @cx24123_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	ldr	x22, [x0, #8]
	mov	x0, x22
	mov	w1, #20
	bl	_cx24123_readreg
	mov	x20, x0
	str	wzr, [x19]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.1:
	str	wzr, [sp, #12]
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	add	x1, sp, #12
	mov	x0, x21
	blr	x8
	ldr	w8, [sp, #12]
LBB0_3:
Lloh0:
	adrp	x9, _TUNER_STATUS_LOCKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TUNER_STATUS_LOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	tbnz	w20, #1, LBB0_11
; %bb.6:
	tbnz	w20, #2, LBB0_12
LBB0_7:
	tbnz	w20, #3, LBB0_13
LBB0_8:
	tbz	w20, #7, LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _FE_HAS_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh9:
	adrp	x8, _FE_HAS_CARRIER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	tbz	w20, #2, LBB0_7
LBB0_12:
Lloh12:
	adrp	x8, _FE_HAS_VITERBI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	tbz	w20, #3, LBB0_8
LBB0_13:
Lloh15:
	adrp	x8, _FE_HAS_SYNC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	tbnz	w20, #7, LBB0_9
	b	LBB0_10
LBB0_14:
	mov	x0, x22
	mov	w1, #32
	bl	_cx24123_readreg
	tbnz	w0, #0, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TUNER_STATUS_LOCKED,4,2        ; @TUNER_STATUS_LOCKED
	.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
	.no_dead_strip	_cx24123_read_status
.subsections_via_symbols
