	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lgdt3305_read_status
LCPI0_0:
	.long	8                               ## 0x8
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lgdt3305_read_status:                  ## @lgdt3305_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movl	$0, (%rsi)
	movq	_LGDT3305_GEN_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lgdt3305_read_reg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_20
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	-64(%rbp), %ecx
	testb	$16, %cl
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %r12d
	movq	%r14, %rbx
	movl	%r12d, %r14d
	andb	$4, %r14b
	shrb	$2, %r14b
	movl	%r12d, %r13d
	shrb	$3, %r13b
	leaq	L_.str.3(%rip), %rdx
	testb	$1, %r12b
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rcx
	testb	%r13b, %r13b
	cmovneq	%rax, %rcx
	leaq	L_.str.5(%rip), %r8
	testb	%r14b, %r14b
	cmovneq	%rax, %r8
	leaq	L_.str.6(%rip), %r9
	testb	$2, %r12b
	cmovneq	%rax, %r9
	leaq	L_.str(%rip), %rdi
	callq	_lg_dbg
	leaq	-60(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lgdt3305_read_cr_lock_status
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	je	LBB0_2
LBB0_20:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	testb	$16, -52(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_4:
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	orl	%ecx, (%rdx)
LBB0_6:
	testb	%r14b, %r14b
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_8
## %bb.7:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
LBB0_8:
	testb	%r13b, %r13b
	jne	LBB0_10
## %bb.9:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
LBB0_10:
	movl	(%rdi), %ecx
	leal	-129(%rcx), %edx
	cmpl	$2, %edx
	jae	LBB0_11
## %bb.13:
	movq	_LGDT3304@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rdi), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_16
## %bb.14:
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_16:
	leaq	-56(%rbp), %rsi
	callq	_lgdt3305_read_fec_lock_status
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_20
## %bb.17:
	cmpl	$0, -56(%rbp)
	jne	LBB0_18
	jmp	LBB0_20
LBB0_11:
	cmpl	$128, %ecx
	jne	LBB0_19
## %bb.12:
	testb	$1, %r12b
	je	LBB0_20
LBB0_18:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_20
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_LGDT3305_GEN_STATUS,4,2        ## @LGDT3305_GEN_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s%s%s%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"SIGNALEXIST "

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

L_.str.3:                               ## @.str.3
	.asciz	"INLOCK "

L_.str.4:                               ## @.str.4
	.asciz	"SYNCLOCK "

L_.str.5:                               ## @.str.5
	.asciz	"NOFECERR "

L_.str.6:                               ## @.str.6
	.asciz	"SNRGOOD "

	.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	_LGDT3304,4,2                   ## @LGDT3304
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lgdt3305_read_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_status
_lgdt3305_read_status:                  ; @lgdt3305_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
	ldr	x20, [x0]
	str	wzr, [x1]
Lloh0:
	adrp	x8, _LGDT3305_GEN_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LGDT3305_GEN_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_lgdt3305_read_reg
	mov	x21, x0
	bl	_lg_fail
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w22, [sp, #12]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	tst	w22, #0x10
	csel	x1, x9, x8, eq
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
	tst	w22, #0x8
	csel	x2, x8, x9, eq
Lloh9:
	adrp	x8, l_.str.4@PAGE
Lloh10:
	add	x8, x8, l_.str.4@PAGEOFF
	tst	w22, #0x4
	csel	x3, x9, x8, eq
Lloh11:
	adrp	x8, l_.str.5@PAGE
Lloh12:
	add	x8, x8, l_.str.5@PAGEOFF
	tst	w22, #0x2
	csel	x4, x9, x8, eq
Lloh13:
	adrp	x8, l_.str.6@PAGE
Lloh14:
	add	x8, x8, l_.str.6@PAGEOFF
	tst	w22, #0x1
	csel	x5, x9, x8, eq
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lg_dbg
	add	x1, sp, #8
	mov	x0, x20
	bl	_lgdt3305_read_cr_lock_status
	mov	x21, x0
	bl	_lg_fail
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x21
	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_3:
	tbz	w22, #4, LBB0_5
; %bb.4:
Lloh17:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_7
; %bb.6:
Lloh20:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_7:
	tbz	w22, #1, LBB0_9
; %bb.8:
Lloh23:
	adrp	x9, _FE_HAS_VITERBI@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_9:
	tbz	w22, #2, LBB0_11
; %bb.10:
Lloh26:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_11:
	ldr	w9, [x20]
	sub	w10, w9, #129
	cmp	w10, #2
	b.hs	LBB0_17
; %bb.12:
Lloh29:
	adrp	x9, _LGDT3304@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LGDT3304@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	x10, [x20, #8]
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.13:
	cbz	w8, LBB0_15
; %bb.14:
Lloh32:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_15:
	add	x1, sp, #4
	mov	x0, x20
	bl	_lgdt3305_read_fec_lock_status
	mov	x21, x0
	bl	_lg_fail
	cbnz	x0, LBB0_2
; %bb.16:
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_19
	b	LBB0_2
LBB0_17:
	cmp	w9, #128
	b.ne	LBB0_20
; %bb.18:
	tbnz	w22, #3, LBB0_2
LBB0_19:
Lloh35:
	adrp	x8, _FE_HAS_LOCK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_2
LBB0_20:
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_LGDT3305_GEN_STATUS,4,2        ; @LGDT3305_GEN_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s%s%s%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"SIGNALEXIST "

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

l_.str.3:                               ; @.str.3
	.asciz	"INLOCK "

l_.str.4:                               ; @.str.4
	.asciz	"SYNCLOCK "

l_.str.5:                               ; @.str.5
	.asciz	"NOFECERR "

l_.str.6:                               ; @.str.6
	.asciz	"SNRGOOD "

	.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	_LGDT3304,4,2                   ; @LGDT3304
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lgdt3305_read_status
.subsections_via_symbols
