	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_ccnt
_calc_ccnt:                             ## @calc_ccnt
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_CCNT_POS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_read_ccnt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movzwl	-28(%rbp), %r15d
	movq	_CCNT_POS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read_ccnt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	-28(%rbp), %eax
	shll	$16, %eax
	orl	%r15d, %eax
	addl	%eax, (%r14)
	movq	_CCNT_NEG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read_ccnt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movzwl	-28(%rbp), %r15d
	movq	_CCNT_NEG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read_ccnt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	-28(%rbp), %eax
	shll	$16, %eax
	orl	%r15d, %eax
	subl	%eax, 4(%r14)
	movq	_CCNT_SPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read_ccnt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	-28(%rbp), %eax
	addl	%eax, 8(%r14)
	movq	_CCNT_SNEG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read_ccnt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCNT_POS1,4,2                  ## @CCNT_POS1
	.comm	_CCNT_POS2,4,2                  ## @CCNT_POS2
	.comm	_CCNT_NEG1,4,2                  ## @CCNT_NEG1
	.comm	_CCNT_NEG2,4,2                  ## @CCNT_NEG2
	.comm	_CCNT_SPOS,4,2                  ## @CCNT_SPOS
	.comm	_CCNT_SNEG,4,2                  ## @CCNT_SNEG
	.no_dead_strip	_calc_ccnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_ccnt
_calc_ccnt:                             ; @calc_ccnt
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CCNT_POS1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCNT_POS1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_read_ccnt
	cbnz	w0, LBB0_6
; %bb.1:
	ldrh	w21, [sp, #12]
Lloh3:
	adrp	x8, _CCNT_POS2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCNT_POS2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_read_ccnt
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w8, [sp, #12]
	bfi	w21, w8, #16, #16
	ldr	w8, [x20]
	add	w8, w21, w8
	str	w8, [x20]
Lloh6:
	adrp	x8, _CCNT_NEG1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCNT_NEG1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_read_ccnt
	cbnz	w0, LBB0_6
; %bb.3:
	ldrh	w21, [sp, #12]
Lloh9:
	adrp	x8, _CCNT_NEG2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CCNT_NEG2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_read_ccnt
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
	bfi	w21, w8, #16, #16
	ldr	w8, [x20, #4]
	sub	w8, w8, w21
	str	w8, [x20, #4]
Lloh12:
	adrp	x8, _CCNT_SPOS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CCNT_SPOS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_read_ccnt
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
	ldr	w9, [x20, #8]
	add	w8, w9, w8
	str	w8, [x20, #8]
Lloh15:
	adrp	x8, _CCNT_SNEG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CCNT_SNEG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_read_ccnt
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CCNT_POS1,4,2                  ; @CCNT_POS1
	.comm	_CCNT_POS2,4,2                  ; @CCNT_POS2
	.comm	_CCNT_NEG1,4,2                  ; @CCNT_NEG1
	.comm	_CCNT_NEG2,4,2                  ; @CCNT_NEG2
	.comm	_CCNT_SPOS,4,2                  ; @CCNT_SPOS
	.comm	_CCNT_SNEG,4,2                  ; @CCNT_SNEG
	.no_dead_strip	_calc_ccnt
.subsections_via_symbols
