	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _write_directory_descriptors
__write_directory_descriptors:          ## @_write_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_wb_buffptr
	movq	%rax, %r15
	movq	_LOGICAL_BLOCK_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DIR_REC_SELF@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	(%r12), %r9
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_set_directory_record
	cltq
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	addq	%rax, %r15
	movl	(%r13), %esi
	subl	%eax, %esi
	movq	_DIR_REC_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	(%r12), %r9
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_set_directory_record
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r14)
	jle	LBB0_12
## %bb.1:
	movq	(%r12), %rax
	movq	_VDD_JOLIET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	8(%r12), %eax
	jge	LBB0_12
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	8(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r15
	movq	(%r15), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	cmoveq	%rax, %r12
	leaq	8(%r12), %rax
	movq	%rax, (%r12)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, %r13
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rcx
	movslq	%eax, %rbx
	addq	%rcx, %rbx
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%r13, %r14
	movl	%ebx, %r13d
	subl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	subl	%r13d, %esi
	movq	_DIR_REC_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_set_directory_record
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r14), %edx
	subl	%r13d, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r14), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_wb_consume
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, %r13
	movq	%rbx, %rdi
	callq	_wb_buffptr
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	_DIR_REC_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_set_directory_record
	movq	%rbx, %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subl	%ebx, %edx
	addl	(%r13), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movl	(%r13), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wb_consume                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGICAL_BLOCK_SIZE,4,2         ## @LOGICAL_BLOCK_SIZE
	.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	_WD_REMAINING,4,2               ## @WD_REMAINING
	.no_dead_strip	__write_directory_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _write_directory_descriptors
__write_directory_descriptors:          ; @_write_directory_descriptors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x25, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	bl	_wb_buffptr
	mov	x23, x0
Lloh0:
	adrp	x26, _LOGICAL_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LOGICAL_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x8, _DIR_REC_SELF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DIR_REC_SELF@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	ldr	x5, [x21]
	mov	x2, x20
	mov	x3, x22
	bl	_set_directory_record
	add	x24, x23, w0, sxtw
	ldr	w8, [x26]
	sub	w1, w8, w0
Lloh5:
	adrp	x8, _DIR_REC_PARENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIR_REC_PARENT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	ldr	x5, [x21]
	mov	x0, x24
	mov	x2, x20
	mov	x3, x22
	bl	_set_directory_record
	add	x24, x24, w0, sxtw
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _VDD_JOLIET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VDD_JOLIET@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x22]
	cbnz	w8, LBB0_4
; %bb.3:
	add	w8, w25, #1
	ldr	w9, [x21, #8]
	cmp	w8, w9
	b.ge	LBB0_12
LBB0_4:
	mov	x9, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh11:
	adrp	x28, _DIR_REC_NORMAL@GOTPAGE
Lloh12:
	ldr	x28, [x28, _DIR_REC_NORMAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	add	x9, x9, #1
	ldrsw	x8, [x8, #8]
	cmp	x9, x8
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x25, [x8, x9, lsl #3]
	ldr	x8, [x25]
	ldr	x9, [x8, #16]
	cmp	x9, #0
	csel	x20, x8, x9, eq
	add	x8, x20, #8
	str	x8, [x20]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x24, x24, w0, sxtw
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x8, [x20]
	cbz	x8, LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x26]
	sub	w27, w24, w23
	sub	w1, w8, w27
	ldr	w4, [x28]
	ldr	x5, [x21]
	mov	x0, x24
	mov	x2, x25
	mov	x3, x22
	bl	_set_directory_record
	cbnz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x26]
	sub	w2, w8, w27
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	ldr	w1, [x26]
	mov	x0, x19
	bl	_wb_consume
	tbnz	w0, #31, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x19
	bl	_wb_buffptr
	mov	x23, x0
	ldr	w1, [x26]
	ldr	w4, [x28]
	ldr	x5, [x21]
	mov	x2, x25
	mov	x3, x22
	bl	_set_directory_record
	mov	x24, x23
	b	LBB0_7
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	ldr	w8, [x26]
	sub	w9, w23, w24
	add	w2, w8, w9
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	ldr	w1, [x26]
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_wb_consume
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGICAL_BLOCK_SIZE,4,2         ; @LOGICAL_BLOCK_SIZE
	.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	_WD_REMAINING,4,2               ; @WD_REMAINING
	.no_dead_strip	__write_directory_descriptors
.subsections_via_symbols
