	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24120_read_status
_cx24120_read_status:                   ## @cx24120_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, %r14
	movq	(%rdi), %r12
	movq	_CX24120_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cx24120_readreg
	movl	%eax, %ebx
	movq	24(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	movl	$0, (%r15)
	movq	_CX24120_HAS_SIGNAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_CX24120_HAS_CARRIER@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
LBB0_5:
	movq	_CX24120_HAS_VITERBI@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, %eax
	movl	%eax, (%r15)
LBB0_7:
	movq	_CX24120_HAS_LOCK@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
LBB0_9:
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_cx24120_get_stats
	cmpq	$0, 8(%r12)
	je	LBB0_14
## %bb.10:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	callq	_cx24120_set_clock_ratios
	cmpl	$0, 16(%r12)
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_cx24120_msg_mpeg_output_global_config
LBB0_13:
	movq	$0, 8(%r12)
LBB0_14:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX24120_REG_STATUS,4,2         ## @CX24120_REG_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status = 0x%02x\n"

	.comm	_CX24120_HAS_SIGNAL,4,2         ## @CX24120_HAS_SIGNAL
	.comm	_FE_HAS_SIGNAL,4,2              ## @FE_HAS_SIGNAL
	.comm	_CX24120_HAS_CARRIER,4,2        ## @CX24120_HAS_CARRIER
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.comm	_CX24120_HAS_VITERBI,4,2        ## @CX24120_HAS_VITERBI
	.comm	_FE_HAS_VITERBI,4,2             ## @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.comm	_CX24120_HAS_LOCK,4,2           ## @CX24120_HAS_LOCK
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.no_dead_strip	_cx24120_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24120_read_status
_cx24120_read_status:                   ; @cx24120_read_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _CX24120_REG_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX24120_REG_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cx24120_readreg
	mov	x22, x0
	ldr	x0, [x19, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	str	wzr, [x21]
Lloh5:
	adrp	x8, _CX24120_HAS_SIGNAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CX24120_HAS_SIGNAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
Lloh11:
	adrp	x9, _CX24120_HAS_CARRIER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CX24120_HAS_CARRIER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21]
LBB0_5:
Lloh17:
	adrp	x9, _CX24120_HAS_VITERBI@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CX24120_HAS_VITERBI@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_7
; %bb.6:
Lloh20:
	adrp	x9, _FE_HAS_VITERBI@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _FE_HAS_SYNC@GOTPAGE
Lloh24:
	ldr	x10, [x10, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_7:
Lloh26:
	adrp	x9, _CX24120_HAS_LOCK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CX24120_HAS_LOCK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x23, _FE_HAS_LOCK@GOTPAGE
Lloh30:
	ldr	x23, [x23, _FE_HAS_LOCK@GOTPAGEOFF]
	tst	w9, w22
	b.eq	LBB0_9
; %bb.8:
	ldr	w9, [x23]
	orr	w8, w8, w9
	str	w8, [x21]
LBB0_9:
	str	w8, [x19]
	mov	x0, x19
	bl	_cx24120_get_stats
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	w8, [x21]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.11:
	mov	x0, x20
	bl	_cx24120_set_clock_ratios
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #1
	bl	_cx24120_msg_mpeg_output_global_config
LBB0_13:
	str	xzr, [x19, #8]
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CX24120_REG_STATUS,4,2         ; @CX24120_REG_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status = 0x%02x\n"

	.comm	_CX24120_HAS_SIGNAL,4,2         ; @CX24120_HAS_SIGNAL
	.comm	_FE_HAS_SIGNAL,4,2              ; @FE_HAS_SIGNAL
	.comm	_CX24120_HAS_CARRIER,4,2        ; @CX24120_HAS_CARRIER
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.comm	_CX24120_HAS_VITERBI,4,2        ; @CX24120_HAS_VITERBI
	.comm	_FE_HAS_VITERBI,4,2             ; @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.comm	_CX24120_HAS_LOCK,4,2           ; @CX24120_HAS_LOCK
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.no_dead_strip	_cx24120_read_status
.subsections_via_symbols
