	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_calculate_totals               ## -- Begin function calculate_totals
	.p2align	4, 0x90
_calculate_totals:                      ## @calculate_totals
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_filemap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_13
## %bb.1:
	leaq	8(%rax), %r12
	xorl	%r13d, %r13d
	movq	_FILE_TYPE_REGULAR@GOTPCREL(%rip), %rsi
	movq	_FILE_ACTION_COPY@GOTPCREL(%rip), %r8
	leaq	-52(%rbp), %r14
	movq	_BLCKSZ@GOTPCREL(%rip), %r15
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, (%r12)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	%r10d, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	24(%rax), %rcx
	movq	(%rcx,%r13,8), %rdi
	movq	(%rdi), %rcx
	cmpq	(%rsi), %rcx
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rdi), %rcx
	addq	%rcx, 16(%rax)
	movq	8(%rdi), %rdx
	cmpq	(%r8), %rdx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FILE_ACTION_COPY_TAIL@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	subq	24(%rdi), %rcx
	addq	%rcx, (%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%rdi)
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rdi
	callq	_datapagemap_iterate
	movq	%rax, %rbx
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rsi
	callq	_datapagemap_next
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r15), %rax
	addq	%rax, (%r12)
	movq	%rbx, %rdi
	jmp	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_pg_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r10d
	movq	_FILE_TYPE_REGULAR@GOTPCREL(%rip), %rsi
	movq	_FILE_ACTION_COPY@GOTPCREL(%rip), %r8
	jmp	LBB0_12
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_filemap,8,3                    ## @filemap
	.comm	_FILE_TYPE_REGULAR,8,3          ## @FILE_TYPE_REGULAR
	.comm	_FILE_ACTION_COPY,8,3           ## @FILE_ACTION_COPY
	.comm	_FILE_ACTION_COPY_TAIL,8,3      ## @FILE_ACTION_COPY_TAIL
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_calculate_totals               ; -- Begin function calculate_totals
	.p2align	2
_calculate_totals:                      ; @calculate_totals
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _filemap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _filemap@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	x21, x20
	str	xzr, [x21, #8]!
	str	xzr, [x20, #16]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x22, #0
Lloh3:
	adrp	x23, _FILE_TYPE_REGULAR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FILE_TYPE_REGULAR@GOTPAGEOFF]
Lloh5:
	adrp	x24, _FILE_ACTION_COPY@GOTPAGE
Lloh6:
	ldr	x24, [x24, _FILE_ACTION_COPY@GOTPAGEOFF]
Lloh7:
	adrp	x25, _FILE_ACTION_COPY_TAIL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FILE_ACTION_COPY_TAIL@GOTPAGEOFF]
Lloh9:
	adrp	x26, _BLCKSZ@GOTPAGE
Lloh10:
	ldr	x26, [x26, _BLCKSZ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x21]
	add	x9, x10, x9
	str	x9, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x9, [x20, #24]
	ldr	x0, [x9, x22, lsl #3]
	ldr	x9, [x0]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x0, #32]
	ldr	x10, [x20, #16]
	add	x10, x10, x9
	str	x10, [x20, #16]
	ldr	x10, [x0, #8]
	ldr	x11, [x24]
	cmp	x10, x11
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x25]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x0, #24]
	ldr	x11, [x21]
	sub	x9, x9, x10
	add	x9, x9, x11
	str	x9, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x0, #16]!
	cmp	x9, #1
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_datapagemap_iterate
	mov	x19, x0
	add	x1, sp, #12
	bl	_datapagemap_next
	cbz	x0, LBB0_11
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	ldr	x9, [x21]
	add	x8, x9, x8
	str	x8, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_datapagemap_next
	cbnz	x0, LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_pg_free
	ldr	w8, [x20]
	b	LBB0_3
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_filemap,8,3                    ; @filemap
	.comm	_FILE_TYPE_REGULAR,8,3          ; @FILE_TYPE_REGULAR
	.comm	_FILE_ACTION_COPY,8,3           ; @FILE_ACTION_COPY
	.comm	_FILE_ACTION_COPY_TAIL,8,3      ; @FILE_ACTION_COPY_TAIL
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
.subsections_via_symbols
