	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xc_debug_dump
_xc_debug_dump:                         ## @xc_debug_dump
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -36(%rbp)
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movl	$100, %edi
	callq	_msleep
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_adc_envelope
	movl	-64(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_frequency_error
	movl	-36(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-60(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_lock_status
	movl	-60(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-28(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	leaq	-16(%rbp), %r8
	movq	%rbx, %rdi
	callq	_xc_get_version
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_buildversion
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %r8d
	movl	-16(%rbp), %r9d
	movl	-12(%rbp), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_hsync_freq
	movl	-32(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_frame_lines
	movl	-56(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_quality
	movl	-52(%rbp), %edx
	andl	$7, %edx
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_analogsnr
	movl	-48(%rbp), %edx
	andl	$63, %edx
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xc_get_totalgain
	movl	-44(%rbp), %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movl	%ecx, %edx
	sarl	$8, %edx
	andl	$-256, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %eax
	leal	255(%rax), %ecx
	testw	%ax, %ax
	cmovnsl	%eax, %ecx
	movswl	%cx, %ecx
	sarl	$8, %ecx
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_xc5000_readreg
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-40(%rbp), %edx
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_3:
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*** ADC envelope (0-1023) = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"*** Frequency error = %d Hz\n"

L_.str.2:                               ## @.str.2
	.asciz	"*** Lock status (0-Wait, 1-Locked, 2-No-signal) = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"*** HW: V%d.%d, FW: V %d.%d.%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"*** Horizontal sync frequency = %d Hz\n"

L_.str.5:                               ## @.str.5
	.asciz	"*** Frame lines = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"*** Quality (0:<8dB, 7:>56dB) = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"*** Unweighted analog SNR = %d dB\n"

L_.str.8:                               ## @.str.8
	.asciz	"*** Total gain = %d.%d dB\n"

L_.str.9:                               ## @.str.9
	.asciz	"*** PLL lock status = 0x%04x\n"

	.no_dead_strip	_xc_debug_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xc_debug_dump
_xc_debug_dump:                         ; @xc_debug_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stur	wzr, [x29, #-24]
	stur	wzr, [x29, #-32]
	stur	wzr, [x29, #-52]
	str	wzr, [sp, #56]
	str	xzr, [sp, #48]
	str	wzr, [sp, #44]
	mov	w20, #100
	mov	w0, #100
	bl	_msleep
	sub	x1, x29, #20
	mov	x0, x19
	bl	_xc_get_adc_envelope
	ldur	w2, [x29, #-20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	sub	x1, x29, #24
	mov	x0, x19
	bl	_xc_get_frequency_error
	ldur	w2, [x29, #-24]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	sub	x1, x29, #28
	mov	x0, x19
	bl	_xc_get_lock_status
	ldur	w2, [x29, #-28]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	sub	x1, x29, #52
	add	x2, sp, #56
	add	x3, sp, #52
	add	x4, sp, #48
	mov	x0, x19
	bl	_xc_get_version
	add	x1, sp, #44
	mov	x0, x19
	bl	_xc_get_buildversion
	ldur	w2, [x29, #-52]
	ldp	w9, w8, [sp, #52]
	ldp	w11, w10, [sp, #44]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	sub	x1, x29, #32
	mov	x0, x19
	bl	_xc_get_hsync_freq
	ldur	w2, [x29, #-32]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	sub	x1, x29, #36
	mov	x0, x19
	bl	_xc_get_frame_lines
	ldur	w2, [x29, #-36]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	sub	x1, x29, #40
	mov	x0, x19
	bl	_xc_get_quality
	ldur	w8, [x29, #-40]
	and	w2, w8, #0x7
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	sub	x1, x29, #44
	mov	x0, x19
	bl	_xc_get_analogsnr
	ldur	w8, [x29, #-44]
	and	w2, w8, #0x3f
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	sub	x1, x29, #48
	mov	x0, x19
	bl	_xc_get_totalgain
	ldur	w8, [x29, #-48]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w2, w9, #8
	and	w9, w9, #0xffffff00
	sub	w8, w8, w9
	mul	w8, w8, w20
	sxth	w9, w8
	lsr	w9, w9, #23
	add	w8, w8, w9, uxtb
	sxth	w8, w8
	sbfx	x8, x8, #8, #24
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldr	x1, [x19]
	cbz	x1, LBB0_3
; %bb.1:
	add	x2, sp, #40
	mov	x0, x19
	bl	_xc5000_readreg
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w2, [sp, #40]
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*** ADC envelope (0-1023) = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"*** Frequency error = %d Hz\n"

l_.str.2:                               ; @.str.2
	.asciz	"*** Lock status (0-Wait, 1-Locked, 2-No-signal) = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"*** HW: V%d.%d, FW: V %d.%d.%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"*** Horizontal sync frequency = %d Hz\n"

l_.str.5:                               ; @.str.5
	.asciz	"*** Frame lines = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"*** Quality (0:<8dB, 7:>56dB) = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"*** Unweighted analog SNR = %d dB\n"

l_.str.8:                               ; @.str.8
	.asciz	"*** Total gain = %d.%d dB\n"

l_.str.9:                               ; @.str.9
	.asciz	"*** PLL lock status = 0x%04x\n"

	.no_dead_strip	_xc_debug_dump
.subsections_via_symbols
