	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_directory_descriptors
_calculate_directory_descriptors:       ## @calculate_directory_descriptors
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_DIR_REC_SELF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rsi), %rcx
	movq	%r15, %rsi
	callq	_get_dir_rec_size
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DIR_REC_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rcx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_dir_rec_size
	movl	$1, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r15)
	jle	LBB0_10
## %bb.1:
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	_VDD_JOLIET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r14, %rcx
	je	LBB0_4
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	incl	%r12d
	cmpl	8(%rcx), %r12d
	jge	LBB0_10
LBB0_4:
	addl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	8(%rax), %rax
	cmpq	%rax, %rdx
	jge	LBB0_10
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rdx,8), %r14
	movq	(%r14), %rax
	movq	16(%rax), %r15
	testq	%r15, %r15
	cmoveq	%rax, %r15
	leaq	8(%r15), %rax
	movq	%rax, (%r15)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movb	%al, %cl
	addl	%ecx, %ebx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	testq	%rax, %rax
	movq	%r12, %rcx
	je	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_DIR_REC_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %r12
	movq	(%rcx), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_get_dir_rec_size
	movl	%r13d, %edx
	addl	%eax, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r13d
	movq	_LOGICAL_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	setg	%al
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%edx, %r13d
	jmp	LBB0_8
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_REC_SELF,4,2               ## @DIR_REC_SELF
	.comm	_DIR_REC_PARENT,4,2             ## @DIR_REC_PARENT
	.comm	_VDD_JOLIET,8,3                 ## @VDD_JOLIET
	.comm	_DIR_REC_NORMAL,4,2             ## @DIR_REC_NORMAL
	.comm	_LOGICAL_BLOCK_SIZE,4,2         ## @LOGICAL_BLOCK_SIZE
	.no_dead_strip	_calculate_directory_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_directory_descriptors
_calculate_directory_descriptors:       ; @calculate_directory_descriptors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _DIR_REC_SELF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIR_REC_SELF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	x3, [x1]
	mov	x1, x19
	bl	_get_dir_rec_size
	mov	x23, x0
Lloh3:
	adrp	x8, _DIR_REC_PARENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIR_REC_PARENT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	x3, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_get_dir_rec_size
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _VDD_JOLIET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VDD_JOLIET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
; %bb.3:
	add	w8, w22, #1
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.ge	LBB0_8
LBB0_4:
	mov	x24, #0
	add	w26, w0, w23
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x25, [x8, #16]
	mov	w22, #1
Lloh9:
	adrp	x27, _DIR_REC_NORMAL@GOTPAGE
Lloh10:
	ldr	x27, [x27, _DIR_REC_NORMAL@GOTPAGEOFF]
Lloh11:
	adrp	x28, _LOGICAL_BLOCK_SIZE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _LOGICAL_BLOCK_SIZE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x23, [x25, x24, lsl #3]
	ldr	x8, [x23]
	ldr	x9, [x8, #16]
	cmp	x9, #0
	csel	x19, x8, x9, eq
	add	x8, x19, #8
	str	x8, [x19]
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x27]
	ldr	x3, [x20]
	mov	x0, x21
	mov	x1, x23
	bl	_get_dir_rec_size
	ldr	w8, [x28]
	add	w9, w0, w26
	cmp	w9, w8
	cinc	w22, w22, gt
	csel	w26, w0, w9, gt
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [x19]
	cbnz	x8, LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldrsw	x8, [x8, #8]
	cmp	x24, x8
	b.lt	LBB0_5
	b	LBB0_9
LBB0_8:
	mov	w22, #1
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_REC_SELF,4,2               ; @DIR_REC_SELF
	.comm	_DIR_REC_PARENT,4,2             ; @DIR_REC_PARENT
	.comm	_VDD_JOLIET,8,3                 ; @VDD_JOLIET
	.comm	_DIR_REC_NORMAL,4,2             ; @DIR_REC_NORMAL
	.comm	_LOGICAL_BLOCK_SIZE,4,2         ; @LOGICAL_BLOCK_SIZE
	.no_dead_strip	_calculate_directory_descriptors
.subsections_via_symbols
