	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vsb_post_rs_pck_err
_get_vsb_post_rs_pck_err:               ## @get_vsb_post_rs_pck_err
	.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	%rdx, %r14
	movq	%rsi, %r15
	movl	$0, -28(%rbp)
	movq	_FEC_RS_NR_FAILURES__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_drxj_dap_read_reg16
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_2:
	movq	_FEC_RS_MEASUREMENT_PERIOD@GOTPCREL(%rip), %rax
	movq	_FEC_RS_MEASUREMENT_PRESCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	movl	-28(%rbp), %esi
	movq	_FEC_RS_NR_FAILURES_EXP__M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_FEC_RS_NR_FAILURES_EXP__B@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_FEC_RS_NR_FAILURES_FIXED_MANT__M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movl	%esi, (%r15)
	imull	$77, %edx, %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_RS_NR_FAILURES__A,4,2      ## @FEC_RS_NR_FAILURES__A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_FEC_RS_NR_FAILURES_FIXED_MANT__M,4,2 ## @FEC_RS_NR_FAILURES_FIXED_MANT__M
	.comm	_FEC_RS_NR_FAILURES_EXP__M,4,2  ## @FEC_RS_NR_FAILURES_EXP__M
	.comm	_FEC_RS_NR_FAILURES_EXP__B,4,2  ## @FEC_RS_NR_FAILURES_EXP__B
	.comm	_FEC_RS_MEASUREMENT_PERIOD,4,2  ## @FEC_RS_MEASUREMENT_PERIOD
	.comm	_FEC_RS_MEASUREMENT_PRESCALE,4,2 ## @FEC_RS_MEASUREMENT_PRESCALE
L_.str.1:                               ## @.str.1
	.asciz	"error: period and/or prescale is zero!\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_get_vsb_post_rs_pck_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vsb_post_rs_pck_err
_get_vsb_post_rs_pck_err:               ; @get_vsb_post_rs_pck_err
	.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, x2
	mov	x21, x1
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _FEC_RS_NR_FAILURES__A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FEC_RS_NR_FAILURES__A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #0
	bl	_drxj_dap_read_reg16
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _FEC_RS_MEASUREMENT_PERIOD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FEC_RS_MEASUREMENT_PERIOD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _FEC_RS_MEASUREMENT_PRESCALE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FEC_RS_MEASUREMENT_PRESCALE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mul	w8, w9, w8
	cbz	w8, LBB0_4
; %bb.3:
	mov	w20, #0
	ldr	w9, [sp, #12]
Lloh11:
	adrp	x10, _FEC_RS_NR_FAILURES_EXP__M@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FEC_RS_NR_FAILURES_EXP__M@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _FEC_RS_NR_FAILURES_EXP__B@GOTPAGE
Lloh15:
	ldr	x11, [x11, _FEC_RS_NR_FAILURES_EXP__B@GOTPAGEOFF]
	and	w10, w10, w9
Lloh16:
	ldr	w11, [x11]
	asr	w10, w10, w11
Lloh17:
	adrp	x11, _FEC_RS_NR_FAILURES_FIXED_MANT__M@GOTPAGE
Lloh18:
	ldr	x11, [x11, _FEC_RS_NR_FAILURES_FIXED_MANT__M@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	and	w9, w11, w9
	lsl	w9, w9, w10
	str	w9, [x21]
	mov	w9, #77
	mul	w8, w8, w9
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_RS_NR_FAILURES__A,4,2      ; @FEC_RS_NR_FAILURES__A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_FEC_RS_NR_FAILURES_FIXED_MANT__M,4,2 ; @FEC_RS_NR_FAILURES_FIXED_MANT__M
	.comm	_FEC_RS_NR_FAILURES_EXP__M,4,2  ; @FEC_RS_NR_FAILURES_EXP__M
	.comm	_FEC_RS_NR_FAILURES_EXP__B,4,2  ; @FEC_RS_NR_FAILURES_EXP__B
	.comm	_FEC_RS_MEASUREMENT_PERIOD,4,2  ; @FEC_RS_MEASUREMENT_PERIOD
	.comm	_FEC_RS_MEASUREMENT_PRESCALE,4,2 ; @FEC_RS_MEASUREMENT_PRESCALE
l_.str.1:                               ; @.str.1
	.asciz	"error: period and/or prescale is zero!\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_get_vsb_post_rs_pck_err
.subsections_via_symbols
