	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3306a_vsb_lock_poll
_lgdt3306a_vsb_lock_poll:               ## @lgdt3306a_vsb_lock_poll
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str.1(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	$10, %ebx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_lgdt3306a_sync_lock_poll
	movq	_LG3306_UNLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_lgdt3306a_pre_monitoring
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_lgdt3306a_get_packet_error
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_lgdt3306a_calculate_snr_x100
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dbg_info
	cmpl	$1500, %r13d                    ## imm = 0x5DC
	jl	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$254, %r12d
	jg	LBB0_1
## %bb.7:
	movq	_LG3306_LOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_9:
	xorl	%eax, %eax
	callq	_dbg_info
	movq	_LG3306_UNLOCK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LG3306_UNLOCK,8,3              ## @LG3306_UNLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no sync lock!\n"

L_.str.1:                               ## @.str.1
	.asciz	"cnt=%d errors=%d snr=%d\n"

	.comm	_LG3306_LOCK,4,2                ## @LG3306_LOCK
L_.str.2:                               ## @.str.2
	.asciz	"not locked!\n"

	.no_dead_strip	_lgdt3306a_vsb_lock_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3306a_vsb_lock_poll
_lgdt3306a_vsb_lock_poll:               ; @lgdt3306a_vsb_lock_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w24, #0
Lloh0:
	adrp	x23, _LG3306_UNLOCK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LG3306_UNLOCK@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	cmp	w24, #10
	b.eq	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_lgdt3306a_sync_lock_poll
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #20
	bl	_msleep
	mov	x0, x19
	bl	_lgdt3306a_pre_monitoring
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_lgdt3306a_get_packet_error
	mov	x21, x0
	mov	x0, x19
	bl	_lgdt3306a_calculate_snr_x100
	mov	x22, x0
	stp	x21, x22, [sp, #8]
	str	x24, [sp]
	mov	x0, x20
	bl	_dbg_info
	cmp	w22, #1500
	b.lt	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #254
	b.gt	LBB0_1
; %bb.6:
Lloh4:
	adrp	x8, _LG3306_LOCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LG3306_LOCK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_dbg_info
	ldr	w0, [x23]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LG3306_UNLOCK,8,3              ; @LG3306_UNLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no sync lock!\n"

l_.str.1:                               ; @.str.1
	.asciz	"cnt=%d errors=%d snr=%d\n"

	.comm	_LG3306_LOCK,4,2                ; @LG3306_LOCK
l_.str.2:                               ; @.str.2
	.asciz	"not locked!\n"

	.no_dead_strip	_lgdt3306a_vsb_lock_poll
.subsections_via_symbols
