	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3305_read_cr_lock_status
_lgdt3305_read_cr_lock_status:          ## @lgdt3305_read_cr_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, (%rsi)
	movq	_LGDT3305_CR_LOCK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_lgdt3305_read_reg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movl	(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.5:
	movl	-28(%rbp), %eax
	testb	$2, %al
	je	LBB0_7
## %bb.6:
	movl	$1, (%r14)
LBB0_7:
	andl	$7, %eax
	cmpl	$7, %eax
	ja	LBB0_12
## %bb.8:
	leaq	L_.str.1(%rip), %rdx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_15
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.3:
	testb	$-128, -28(%rbp)
	je	LBB0_14
## %bb.4:
	movl	$1, (%r14)
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_14:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.4(%rip), %rdx
LBB0_15:
	movl	(%r14), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_lg_dbg
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_LGDT3305_CR_LOCK_STATUS,4,2    ## @LGDT3305_CR_LOCK_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"QAM UNLOCK"

L_.str.2:                               ## @.str.2
	.asciz	"QAM 1stLock"

L_.str.3:                               ## @.str.3
	.asciz	"QAM 2ndLock"

L_.str.4:                               ## @.str.4
	.asciz	"QAM FinalLock"

L_.str.5:                               ## @.str.5
	.asciz	"CLOCKQAM-INVALID!"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.7:                               ## @.str.7
	.asciz	"(%d) %s\n"

	.no_dead_strip	_lgdt3305_read_cr_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_cr_lock_status
_lgdt3305_read_cr_lock_status:          ; @lgdt3305_read_cr_lock_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
	str	wzr, [x1]
Lloh0:
	adrp	x8, _LGDT3305_CR_LOCK_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LGDT3305_CR_LOCK_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_lgdt3305_read_reg
	mov	x20, x0
	bl	_lg_fail
	cbnz	x0, LBB0_16
; %bb.1:
	ldr	w8, [x21]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_7
; %bb.2:
	ldr	w8, [sp, #12]
	tbz	w8, #1, LBB0_4
; %bb.3:
	mov	w9, #1
	str	w9, [x19]
LBB0_4:
	and	w8, w8, #0x7
	cmp	w8, #7
	b.hi	LBB0_12
; %bb.5:
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_7:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.8:
	ldrb	w8, [sp, #12]
	tbz	w8, #7, LBB0_11
; %bb.9:
	mov	w8, #1
	str	w8, [x19]
Lloh9:
	adrp	x2, l_.str.6@PAGE
Lloh10:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_15
LBB0_10:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
LBB0_12:
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_15:
	ldr	w1, [x19]
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_lg_dbg
LBB0_16:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_LGDT3305_CR_LOCK_STATUS,4,2    ; @LGDT3305_CR_LOCK_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"QAM UNLOCK"

l_.str.2:                               ; @.str.2
	.asciz	"QAM 1stLock"

l_.str.3:                               ; @.str.3
	.asciz	"QAM 2ndLock"

l_.str.4:                               ; @.str.4
	.asciz	"QAM FinalLock"

l_.str.5:                               ; @.str.5
	.asciz	"CLOCKQAM-INVALID!"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.7:                               ; @.str.7
	.asciz	"(%d) %s\n"

	.no_dead_strip	_lgdt3305_read_cr_lock_status
.subsections_via_symbols
