	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9005_get_statistic
_af9005_get_statistic:                  ## @af9005_get_statistic
	.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	%rdi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_af9005_is_fecmon_available
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	cmpl	$0, -28(%rbp)
	je	LBB0_2
## %bb.3:
	leaq	40(%r14), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_af9005_get_pre_vit_err_bit_count
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_af9005_reset_pre_viterbi
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.6:
	imull	$1000000000, (%r15), %edi       ## imm = 0x3B9ACA00
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_do_div
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_deb_info
	jmp	LBB0_10
LBB0_5:
	movl	$-1, %eax
LBB0_7:
	movl	%eax, 8(%r14)
LBB0_8:
	leaq	32(%r14), %rsi
	leaq	28(%r14), %rdx
	leaq	16(%r14), %rcx
	movq	%rbx, %rdi
	callq	_af9005_get_post_vit_ber
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_af9005_reset_post_viterbi
	movl	16(%r14), %ecx
	addl	%ecx, 24(%r14)
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET STATISTIC\n"

L_.str.1:                               ## @.str.1
	.asciz	"fecmon not available\n"

	.no_dead_strip	_af9005_get_statistic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9005_get_statistic
_af9005_get_statistic:                  ; @af9005_get_statistic
	.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	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	add	x1, sp, #12
	mov	x0, x20
	bl	_af9005_is_fecmon_available
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.2:
	add	x21, x19, #40
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_af9005_get_pre_vit_err_bit_count
	cbnz	w0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_af9005_reset_pre_viterbi
	ldr	x1, [x19]
	cmp	x1, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	w8, [x21]
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	mul	w0, w8, w9
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_do_div
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
	b	LBB0_9
LBB0_6:
	mov	w0, #-1
LBB0_7:
	str	w0, [x19, #8]
LBB0_8:
	add	x1, x19, #32
	add	x2, x19, #28
	add	x3, x19, #16
	mov	x0, x20
	bl	_af9005_get_post_vit_ber
	cbz	w0, LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
	mov	x0, x20
	bl	_af9005_reset_post_viterbi
	ldr	w8, [x19, #16]
	ldr	w9, [x19, #24]
	add	w8, w9, w8
	str	w8, [x19, #24]
	cbnz	w0, LBB0_10
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET STATISTIC\n"

l_.str.1:                               ; @.str.1
	.asciz	"fecmon not available\n"

	.no_dead_strip	_af9005_get_statistic
.subsections_via_symbols
