	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2CalculateActualSize         ## -- Begin function Cs2CalculateActualSize
	.p2align	4, 0x90
_Cs2CalculateActualSize:                ## @Cs2CalculateActualSize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Cs2Area@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movl	8(%rax), %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rsi
	movq	16(%rax), %r8
	movq	48(%rax), %rdi
	shlq	$4, %rsi
	cmpq	$0, (%rdi,%rsi)
	movq	$0, 40(%rax)
	je	LBB0_13
## %bb.1:
	testq	%r8, %r8
	jle	LBB0_13
## %bb.2:
	movq	8(%rdi,%rsi), %rsi
	movq	(%rsi,%rdx,8), %rsi
	cmpq	$1, %r8
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
LBB0_10:
	testb	$1, %r8b
	je	LBB0_13
## %bb.11:
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	movl	(%rsi), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movslq	%esi, %rcx
	addq	%rcx, %rdx
	movq	%rdx, 40(%rax)
LBB0_13:
	movl	32(%rax), %edi
	callq	_doCDReport
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rax
	movq	_CDB_HIRQ_ESEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %rax
	orl	%ecx, 24(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$-2, %rdi
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rsi), %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movslq	%ebx, %rcx
	addq	%rcx, %rdx
	movq	%rdx, 40(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rsi), %ebx
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rdx
	movq	%rdx, 40(%rax)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_ESEL,4,2              ## @CDB_HIRQ_ESEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2CalculateActualSize         ; -- Begin function Cs2CalculateActualSize
	.p2align	2
_Cs2CalculateActualSize:                ; @Cs2CalculateActualSize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x11, [x8]
	ldr	w12, [x8, #8]
	asr	w10, w12, #8
	ldr	x9, [x8, #16]
	ldr	x13, [x8, #48]
	sbfiz	x10, x10, #4, #32
	ldr	x10, [x13, x10]
	str	xzr, [x8, #40]
	cmp	x10, #0
	ccmp	x9, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	ldr	w0, [x8, #32]
	bl	_doCDReport
Lloh2:
	adrp	x8, _CDB_HIRQ_CMOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CDB_HIRQ_ESEL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CDB_HIRQ_ESEL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	ldr	w10, [x9, #24]
	orr	w8, w8, w10
	str	w8, [x9, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x10, #0
	sbfx	x12, x12, #8, #24
	add	x12, x13, x12, lsl #4
	ldr	x12, [x12, #8]
	ldr	x11, [x12, x11, lsl #3]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	subs	x9, x9, #1
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x11, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x11]
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	add	x10, x10, w12, sxtw
	str	x10, [x8, #40]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_ESEL,4,2              ; @CDB_HIRQ_ESEL
.subsections_via_symbols
