	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3306a_check_lock_status
_lgdt3306a_check_lock_status:           ## @lgdt3306a_check_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	$0, -12(%rbp)
	leal	-128(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_29
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	%rbx, %rdi
	callq	_lgdt3306a_check_oper_mode
	movq	_LG3306_QAM64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_16
## %bb.14:
	movq	_LG3306_QAM256@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_16
## %bb.15:
	movq	_LG3306_UNKNOWN_LOCK@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_29:
	movq	_LG3306_UNKNOWN_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_pr_warn
	jmp	LBB0_30
LBB0_2:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$166, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.3:
	testb	$-128, -12(%rbp)
	jne	LBB0_4
## %bb.5:
	movq	_LG3306_UNLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_21:
	movq	%rbx, %rdi
	callq	_lgdt3306a_check_oper_mode
	movq	_LG3306_QAM64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_24
## %bb.22:
	movq	_LG3306_QAM256@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_24
## %bb.23:
	movq	_LG3306_UNKNOWN_LOCK@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_8:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.9:
	testb	$64, -12(%rbp)
	jne	LBB0_10
## %bb.11:
	movq	_LG3306_UNLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_16:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4244, %esi                     ## imm = 0x1094
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.17:
	testb	$-128, -12(%rbp)
	jne	LBB0_18
## %bb.19:
	movq	_LG3306_UNLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_24:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.25:
	testb	$16, -12(%rbp)
	jne	LBB0_26
## %bb.27:
	movq	_LG3306_UNLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_4:
	movq	_LG3306_LOCK@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_10:
	movq	_LG3306_LOCK@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	movl	%ebx, %esi
	callq	_dbg_info
LBB0_30:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_18:
	movq	_LG3306_LOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_26:
	movq	_LG3306_LOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_21
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_LG3306_UNKNOWN_MODE,4,2        ## @LG3306_UNKNOWN_MODE
	.comm	_LG3306_LOCK,4,2                ## @LG3306_LOCK
	.comm	_LG3306_UNLOCK,4,2              ## @LG3306_UNLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SYNC_LOCK=%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"AGC_LOCK=%x\n"

	.comm	_LG3306_QAM64,4,2               ## @LG3306_QAM64
	.comm	_LG3306_QAM256,4,2              ## @LG3306_QAM256
	.comm	_LG3306_UNKNOWN_LOCK,4,2        ## @LG3306_UNKNOWN_LOCK
L_.str.2:                               ## @.str.2
	.asciz	"TR_LOCK=%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"FEC_LOCK=%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"UNKNOWN whatLock=%d\n"

	.no_dead_strip	_lgdt3306a_check_lock_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3306a_check_lock_status
_lgdt3306a_check_lock_status:           ; @lgdt3306a_check_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, [sp, #12]
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_lgdt3306a_check_oper_mode
Lloh2:
	adrp	x8, _LG3306_QAM64@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LG3306_QAM64@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _LG3306_QAM256@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LG3306_QAM256@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_13
; %bb.3:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #4244
	bl	_lgdt3306a_read_reg
	mov	x19, x0
	cbnz	w0, LBB0_18
; %bb.4:
Lloh8:
	adrp	x8, _LG3306_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LG3306_LOCK@GOTPAGEOFF]
Lloh10:
	adrp	x9, _LG3306_UNLOCK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LG3306_UNLOCK@GOTPAGEOFF]
	ldrb	w10, [sp, #12]
	tst	w10, #0x80
	csel	x8, x9, x8, eq
	b	LBB0_14
LBB0_5:
Lloh12:
	adrp	x8, _LG3306_UNKNOWN_LOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LG3306_UNKNOWN_LOCK@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_warn
	b	LBB0_18
LBB0_6:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #166
	bl	_lgdt3306a_read_reg
	mov	x19, x0
	cbnz	w0, LBB0_18
; %bb.7:
Lloh17:
	adrp	x8, _LG3306_UNLOCK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LG3306_UNLOCK@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh19:
	adrp	x10, _LG3306_LOCK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _LG3306_LOCK@GOTPAGEOFF]
	tst	w9, #0x80
	csel	x8, x8, x10, eq
	ldr	w19, [x8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_8:
	mov	x0, x19
	bl	_lgdt3306a_check_oper_mode
Lloh23:
	adrp	x8, _LG3306_QAM64@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LG3306_QAM64@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _LG3306_QAM256@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LG3306_QAM256@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_15
; %bb.9:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #128
	bl	_lgdt3306a_read_reg
	mov	x19, x0
	cbnz	w0, LBB0_18
; %bb.10:
Lloh29:
	adrp	x8, _LG3306_LOCK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LG3306_LOCK@GOTPAGEOFF]
Lloh31:
	adrp	x9, _LG3306_UNLOCK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _LG3306_UNLOCK@GOTPAGEOFF]
	ldrb	w10, [sp, #12]
	tst	w10, #0x10
	csel	x8, x9, x8, eq
	b	LBB0_16
LBB0_11:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #128
	bl	_lgdt3306a_read_reg
	mov	x19, x0
	cbnz	w0, LBB0_18
; %bb.12:
Lloh33:
	adrp	x8, _LG3306_UNLOCK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LG3306_UNLOCK@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh35:
	adrp	x10, _LG3306_LOCK@GOTPAGE
Lloh36:
	ldr	x10, [x10, _LG3306_LOCK@GOTPAGEOFF]
	tst	w9, #0x40
	csel	x8, x8, x10, eq
	ldr	w19, [x8]
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_13:
Lloh39:
	adrp	x8, _LG3306_UNKNOWN_LOCK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _LG3306_UNKNOWN_LOCK@GOTPAGEOFF]
LBB0_14:
	ldr	w19, [x8]
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh43:
	adrp	x8, _LG3306_UNKNOWN_LOCK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _LG3306_UNKNOWN_LOCK@GOTPAGEOFF]
LBB0_16:
	ldr	w19, [x8]
Lloh45:
	adrp	x0, l_.str.3@PAGE
Lloh46:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	mov	x1, x19
	bl	_dbg_info
LBB0_18:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_LG3306_UNKNOWN_MODE,4,2        ; @LG3306_UNKNOWN_MODE
	.comm	_LG3306_LOCK,4,2                ; @LG3306_LOCK
	.comm	_LG3306_UNLOCK,4,2              ; @LG3306_UNLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SYNC_LOCK=%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"AGC_LOCK=%x\n"

	.comm	_LG3306_QAM64,4,2               ; @LG3306_QAM64
	.comm	_LG3306_QAM256,4,2              ; @LG3306_QAM256
	.comm	_LG3306_UNKNOWN_LOCK,4,2        ; @LG3306_UNKNOWN_LOCK
l_.str.2:                               ; @.str.2
	.asciz	"TR_LOCK=%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"FEC_LOCK=%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"UNKNOWN whatLock=%d\n"

	.no_dead_strip	_lgdt3306a_check_lock_status
.subsections_via_symbols
