	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0900_get_err_count
_stv0900_get_err_count:                 ## @stv0900_get_err_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$1, %esi
	movq	_ERR_CNT12@GOTPCREL(%rip), %rax
	cmoveq	_ERR_CNT22@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ERR_CNT11@GOTPCREL(%rip), %rbx
	cmoveq	_ERR_CNT21@GOTPCREL(%rip), %rbx
	movq	_ERR_CNT10@GOTPCREL(%rip), %r12
	cmoveq	_ERR_CNT20@GOTPCREL(%rip), %r12
	callq	_stv0900_get_bits
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_stv0900_get_bits
	shll	$16, %r15d
	shll	$8, %ebx
	addl	%r15d, %ebx
	addl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_CNT12,4,2                  ## @ERR_CNT12
	.comm	_ERR_CNT11,4,2                  ## @ERR_CNT11
	.comm	_ERR_CNT10,4,2                  ## @ERR_CNT10
	.comm	_ERR_CNT22,4,2                  ## @ERR_CNT22
	.comm	_ERR_CNT21,4,2                  ## @ERR_CNT21
	.comm	_ERR_CNT20,4,2                  ## @ERR_CNT20
	.no_dead_strip	_stv0900_get_err_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0900_get_err_count
_stv0900_get_err_count:                 ; @stv0900_get_err_count
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x8, _ERR_CNT22@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_CNT22@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ERR_CNT12@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ERR_CNT12@GOTPAGEOFF]
	cmp	w1, #1
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _ERR_CNT21@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_CNT21@GOTPAGEOFF]
Lloh6:
	adrp	x9, _ERR_CNT11@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ERR_CNT11@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ERR_CNT20@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ERR_CNT20@GOTPAGEOFF]
	csel	x21, x8, x9, eq
Lloh10:
	adrp	x8, _ERR_CNT10@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_CNT10@GOTPAGEOFF]
	csel	x22, x10, x8, eq
	bl	_stv0900_get_bits
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stv0900_get_bits
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_stv0900_get_bits
	lsl	w8, w20, #16
	add	w8, w8, w21, lsl #8
	add	w0, w8, w0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_CNT12,4,2                  ; @ERR_CNT12
	.comm	_ERR_CNT11,4,2                  ; @ERR_CNT11
	.comm	_ERR_CNT10,4,2                  ; @ERR_CNT10
	.comm	_ERR_CNT22,4,2                  ; @ERR_CNT22
	.comm	_ERR_CNT21,4,2                  ; @ERR_CNT21
	.comm	_ERR_CNT20,4,2                  ; @ERR_CNT20
	.no_dead_strip	_stv0900_get_err_count
.subsections_via_symbols
