	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_get_post_vit_err_cw_count
_af9005_get_post_vit_err_cw_count:      ## @af9005_get_post_vit_err_cw_count
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	(%rdi), %r12
	movl	$0, (%rsi)
	movl	$0, (%rdx)
	movl	(%r12), %edi
	movq	_xd_r_fec_rsd_ber_rdy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fec_rsd_ber_rdy_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fec_rsd_ber_rdy_len@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r8
	callq	_af9005_read_register_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, -64(%rbp)
	je	LBB0_2
## %bb.3:
	movl	(%r12), %edi
	movq	_xd_r_fec_rsd_abort_packet_cnt_7_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_af9005_read_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movl	(%r12), %edi
	movq	_xd_r_fec_rsd_abort_packet_cnt_15_8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_af9005_read_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movl	-44(%rbp), %eax
	shll	$8, %eax
	addl	-48(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	movq	_xd_r_fec_rsd_bit_err_cnt_7_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_af9005_read_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movl	(%r12), %edi
	movq	_xd_r_fec_rsd_bit_err_cnt_15_8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_af9005_read_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movl	(%r12), %edi
	movq	_xd_r_fec_rsd_bit_err_cnt_23_16@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_af9005_read_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movl	-60(%rbp), %eax
	shll	$16, %eax
	movl	-44(%rbp), %ecx
	shll	$8, %ecx
	addl	%eax, %ecx
	addl	-48(%rbp), %ecx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	shll	$6, %eax
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	subl	%eax, %ecx
	movl	%ecx, (%r13)
	movl	(%r12), %edi
	movq	_xd_p_fec_rsd_packet_unit_7_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_af9005_read_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movl	(%r12), %edi
	movq	_xd_p_fec_rsd_packet_unit_15_8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_af9005_read_ofdm_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movl	-44(%rbp), %r13d
	shll	$8, %r13d
	addl	-48(%rbp), %r13d
	je	LBB0_11
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_deb_info
	subl	%r12d, %r13d
	movl	%r13d, (%r15)
	movl	%r12d, (%r14)
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movl	$100, %ebx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_xd_r_fec_rsd_ber_rdy,4,2       ## @xd_r_fec_rsd_ber_rdy
	.comm	_fec_rsd_ber_rdy_pos,4,2        ## @fec_rsd_ber_rdy_pos
	.comm	_fec_rsd_ber_rdy_len,4,2        ## @fec_rsd_ber_rdy_len
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rsd counter not ready\n"

	.comm	_xd_r_fec_rsd_abort_packet_cnt_7_0,4,2 ## @xd_r_fec_rsd_abort_packet_cnt_7_0
	.comm	_xd_r_fec_rsd_abort_packet_cnt_15_8,4,2 ## @xd_r_fec_rsd_abort_packet_cnt_15_8
	.comm	_xd_r_fec_rsd_bit_err_cnt_7_0,4,2 ## @xd_r_fec_rsd_bit_err_cnt_7_0
	.comm	_xd_r_fec_rsd_bit_err_cnt_15_8,4,2 ## @xd_r_fec_rsd_bit_err_cnt_15_8
	.comm	_xd_r_fec_rsd_bit_err_cnt_23_16,4,2 ## @xd_r_fec_rsd_bit_err_cnt_23_16
	.comm	_xd_p_fec_rsd_packet_unit_7_0,4,2 ## @xd_p_fec_rsd_packet_unit_7_0
	.comm	_xd_p_fec_rsd_packet_unit_15_8,4,2 ## @xd_p_fec_rsd_packet_unit_15_8
L_.str.1:                               ## @.str.1
	.asciz	"wrong RSD packet count"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"POST abort count %d err count %d rsd packets %d\n"

	.no_dead_strip	_af9005_get_post_vit_err_cw_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_get_post_vit_err_cw_count
_af9005_get_post_vit_err_cw_count:      ; @af9005_get_post_vit_err_cw_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	str	wzr, [x1]
	str	wzr, [x2]
	ldr	w0, [x22]
Lloh0:
	adrp	x8, _xd_r_fec_rsd_ber_rdy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xd_r_fec_rsd_ber_rdy@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _fec_rsd_ber_rdy_pos@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fec_rsd_ber_rdy_pos@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _fec_rsd_ber_rdy_len@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fec_rsd_ber_rdy_len@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #44
	bl	_af9005_read_register_bits
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_12
; %bb.3:
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _xd_r_fec_rsd_abort_packet_cnt_7_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xd_r_fec_rsd_abort_packet_cnt_7_0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	w0, [x22]
Lloh12:
	adrp	x8, _xd_r_fec_rsd_abort_packet_cnt_15_8@GOTPAGE
Lloh13:
	ldr	x8, [x8, _xd_r_fec_rsd_abort_packet_cnt_15_8@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #36
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_1
; %bb.5:
	ldp	w23, w24, [sp, #36]
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _xd_r_fec_rsd_bit_err_cnt_7_0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _xd_r_fec_rsd_bit_err_cnt_7_0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_1
; %bb.6:
	ldr	w0, [x22]
Lloh18:
	adrp	x8, _xd_r_fec_rsd_bit_err_cnt_15_8@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xd_r_fec_rsd_bit_err_cnt_15_8@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #36
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_1
; %bb.7:
	ldr	w0, [x22]
Lloh21:
	adrp	x8, _xd_r_fec_rsd_bit_err_cnt_23_16@GOTPAGE
Lloh22:
	ldr	x8, [x8, _xd_r_fec_rsd_bit_err_cnt_23_16@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #32
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_1
; %bb.8:
	add	w23, w24, w23, lsl #8
	ldp	w8, w9, [sp, #32]
	lsl	w9, w9, #8
	add	w8, w9, w8, lsl #16
	ldr	w9, [sp, #40]
	add	w24, w8, w9
	sub	w8, w24, w23, lsl #6
	str	w8, [x21]
	ldr	w0, [x22]
Lloh24:
	adrp	x8, _xd_p_fec_rsd_packet_unit_7_0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _xd_p_fec_rsd_packet_unit_7_0@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_1
; %bb.9:
	ldr	w0, [x22]
Lloh27:
	adrp	x8, _xd_p_fec_rsd_packet_unit_15_8@GOTPAGE
Lloh28:
	ldr	x8, [x8, _xd_p_fec_rsd_packet_unit_15_8@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, sp, #36
	bl	_af9005_read_ofdm_register
	cbnz	w0, LBB0_1
; %bb.10:
	ldp	w8, w9, [sp, #36]
	adds	w21, w9, w8, lsl #8
	b.eq	LBB0_13
; %bb.11:
	stp	x24, x21, [sp, #8]
	str	x23, [sp]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
	mov	w0, #0
	sub	w8, w21, w23
	str	w8, [x20]
	str	w23, [x19]
	b	LBB0_1
LBB0_12:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	mov	w0, #100
	b	LBB0_1
LBB0_13:
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
Lloh36:
	adrp	x8, _EIO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_xd_r_fec_rsd_ber_rdy,4,2       ; @xd_r_fec_rsd_ber_rdy
	.comm	_fec_rsd_ber_rdy_pos,4,2        ; @fec_rsd_ber_rdy_pos
	.comm	_fec_rsd_ber_rdy_len,4,2        ; @fec_rsd_ber_rdy_len
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rsd counter not ready\n"

	.comm	_xd_r_fec_rsd_abort_packet_cnt_7_0,4,2 ; @xd_r_fec_rsd_abort_packet_cnt_7_0
	.comm	_xd_r_fec_rsd_abort_packet_cnt_15_8,4,2 ; @xd_r_fec_rsd_abort_packet_cnt_15_8
	.comm	_xd_r_fec_rsd_bit_err_cnt_7_0,4,2 ; @xd_r_fec_rsd_bit_err_cnt_7_0
	.comm	_xd_r_fec_rsd_bit_err_cnt_15_8,4,2 ; @xd_r_fec_rsd_bit_err_cnt_15_8
	.comm	_xd_r_fec_rsd_bit_err_cnt_23_16,4,2 ; @xd_r_fec_rsd_bit_err_cnt_23_16
	.comm	_xd_p_fec_rsd_packet_unit_7_0,4,2 ; @xd_p_fec_rsd_packet_unit_7_0
	.comm	_xd_p_fec_rsd_packet_unit_15_8,4,2 ; @xd_p_fec_rsd_packet_unit_15_8
l_.str.1:                               ; @.str.1
	.asciz	"wrong RSD packet count"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"POST abort count %d err count %d rsd packets %d\n"

	.no_dead_strip	_af9005_get_post_vit_err_cw_count
.subsections_via_symbols
