	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3305_read_fec_lock_status
_lgdt3305_read_fec_lock_status:         ## @lgdt3305_read_fec_lock_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, (%rsi)
	movl	$-129, %eax
	addl	(%rdi), %eax
	cmpl	$1, %eax
	ja	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	movq	_LGDT3305_FEC_LOCK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_lgdt3305_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_fail
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	andl	$8, %edi
	movl	%eax, %ecx
	notl	%ecx
	movl	%edi, %edx
	shrl	$3, %edx
	xorl	%esi, %esi
	testb	$5, %cl
	cmovel	%edx, %esi
	testb	$1, %al
	leaq	L_.str.2(%rip), %r9
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%r9, %rdx
	testb	$4, %al
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%r9, %rcx
	testl	%edi, %edi
	movl	%esi, (%r14)
	leaq	L_.str.4(%rip), %r8
	cmoveq	%r9, %r8
	leaq	L_.str(%rip), %rdi
	callq	_lg_dbg
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LGDT3305_FEC_LOCK_STATUS,4,2   ## @LGDT3305_FEC_LOCK_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) %s%s%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"mpeg lock  "

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"fec lock  "

L_.str.4:                               ## @.str.4
	.asciz	"viterbi lock"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lgdt3305_read_fec_lock_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3305_read_fec_lock_status
_lgdt3305_read_fec_lock_status:         ; @lgdt3305_read_fec_lock_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	wzr, [x1]
	ldr	w8, [x0]
	sub	w8, w8, #129
	cmp	w8, #1
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _LGDT3305_FEC_LOCK_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LGDT3305_FEC_LOCK_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_lgdt3305_read_reg
	mov	x19, x0
	bl	_lg_fail
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	ands	w9, w8, #0x8
	lsr	w9, w9, #3
Lloh3:
	adrp	x10, l_.str.2@PAGE
Lloh4:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh5:
	adrp	x11, l_.str.4@PAGE
Lloh6:
	add	x11, x11, l_.str.4@PAGEOFF
	csel	x4, x10, x11, eq
	mov	w11, #5
	bics	wzr, w11, w8
	csel	w1, w9, wzr, eq
	str	w1, [x20]
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
	tst	w8, #0x1
Lloh9:
	adrp	x11, l_.str.3@PAGE
Lloh10:
	add	x11, x11, l_.str.3@PAGEOFF
	csel	x2, x10, x9, eq
	tst	w8, #0x4
	csel	x3, x10, x11, eq
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lg_dbg
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LGDT3305_FEC_LOCK_STATUS,4,2   ; @LGDT3305_FEC_LOCK_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) %s%s%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"mpeg lock  "

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"fec lock  "

l_.str.4:                               ; @.str.4
	.asciz	"viterbi lock"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lgdt3305_read_fec_lock_status
.subsections_via_symbols
