	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt312_read_status
_mt312_read_status:                     ## @mt312_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	(%rdi), %rdi
	movl	$0, (%rsi)
	movq	_QPSK_STAT_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	$12, %ecx
	callq	_mt312_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	-28(%rbp), %esi
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movl	-28(%rbp), %ecx
	testb	$-64, %cl
	je	LBB0_3
## %bb.2:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_3:
	testb	$4, %cl
	je	LBB0_5
## %bb.4:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_5:
	movl	-20(%rbp), %eax
	testb	$2, %al
	je	LBB0_7
## %bb.6:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rbx)
LBB0_7:
	testb	$4, %al
	je	LBB0_9
## %bb.8:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_9:
	xorl	%eax, %eax
	testb	$1, %cl
	je	LBB0_11
## %bb.10:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_QPSK_STAT_H,4,2                ## @QPSK_STAT_H
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QPSK_STAT_H: 0x%02x, QPSK_STAT_L: 0x%02x, FEC_STATUS: 0x%02x\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
	.no_dead_strip	_mt312_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt312_read_status
_mt312_read_status:                     ; @mt312_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x0, [x0]
	str	wzr, [x1]
Lloh3:
	adrp	x8, _QPSK_STAT_H@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QPSK_STAT_H@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #12
	bl	_mt312_read
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldp	w1, w2, [sp, #12]
	ldr	w3, [sp, #20]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w8, [sp, #12]
	tst	w8, #0xc0
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _FE_HAS_SIGNAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_3:
	tbnz	w8, #2, LBB0_10
; %bb.4:
	ldr	w9, [sp, #20]
	tbnz	w9, #1, LBB0_11
LBB0_5:
	tbnz	w9, #2, LBB0_12
LBB0_6:
	mov	w0, #0
	tbz	w8, #0, LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _FE_HAS_LOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
Lloh17:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w9, [sp, #20]
	tbz	w9, #1, LBB0_5
LBB0_11:
Lloh20:
	adrp	x10, _FE_HAS_VITERBI@GOTPAGE
Lloh21:
	ldr	x10, [x10, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	ldr	w11, [x19]
	orr	w10, w11, w10
	str	w10, [x19]
	tbz	w9, #2, LBB0_6
LBB0_12:
Lloh23:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	mov	w0, #0
	tbnz	w8, #0, LBB0_7
	b	LBB0_8
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_QPSK_STAT_H,4,2                ; @QPSK_STAT_H
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QPSK_STAT_H: 0x%02x, QPSK_STAT_L: 0x%02x, FEC_STATUS: 0x%02x\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
	.no_dead_strip	_mt312_read_status
.subsections_via_symbols
