	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fc0013_rc_cal_add              ## -- Begin function fc0013_rc_cal_add
	.p2align	4, 0x90
_fc0013_rc_cal_add:                     ## @fc0013_rc_cal_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_2:
	movq	%r14, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_fc0013_writereg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_fc0013_readreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	-44(%rbp), %r13d
	andl	$15, %r13d
	movl	%r13d, -44(%rbp)
	movq	%r14, %rdi
	movl	$13, %esi
	movl	$17, %edx
	callq	_fc0013_writereg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	addl	%r15d, %r13d
	xorl	%eax, %eax
	testl	%r13d, %r13d
	cmovgl	%r13d, %eax
	cmpl	$15, %eax
	movl	$15, %edx
	cmovll	%eax, %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_fc0013_writereg
	movl	%eax, %ebx
LBB0_6:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fc0013_rc_cal_add              ; -- Begin function fc0013_rc_cal_add
	.p2align	2
_fc0013_rc_cal_add:                     ; @fc0013_rc_cal_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	ldp	x8, x20, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_2:
	mov	x0, x20
	mov	w1, #16
	mov	w2, #0
	bl	_fc0013_writereg
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.3:
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #16
	bl	_fc0013_readreg
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
	and	w23, w8, #0xf
	str	w23, [sp, #12]
	mov	x0, x20
	mov	w1, #13
	mov	w2, #17
	bl	_fc0013_writereg
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	add	w8, w23, w21
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	mov	w9, #15
	cmp	w8, #15
	csel	w2, w8, w9, lt
	mov	x0, x20
	mov	w1, #16
	bl	_fc0013_writereg
	mov	x22, x0
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
