	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocdir                       ## -- Begin function allocdir
	.p2align	4, 0x90
_allocdir:                              ## @allocdir
	.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	%rdi, %r14
	movq	_IFDIR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_allocino
	movq	%rax, %rbx
	movq	_dirhead@GOTPCREL(%rip), %rax
	movq	%rbx, 8(%rax)
	movq	%r14, (%rax)
	movq	%rbx, %rdi
	callq	_ginode
	movq	%rax, %r12
	movq	_di_db@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_DIP
	movq	_sblock@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movl	%eax, %edi
	callq	_getdirblk
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
LBB0_2:
	callq	_freeino
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_3:
	movq	%rax, %r13
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdi
	movq	_dirhead@GOTPCREL(%rip), %rsi
	movl	$16, %edx
	callq	_memmove
	movq	_DIRBLKSIZ@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	cmpq	(%r15), %rbx
	jge	LBB0_6
## %bb.4:
	addq	(%r13), %rbx
	movq	_emptydir@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memmove
	addq	(%r12), %rbx
	movq	(%r13), %rax
	addq	(%r15), %rax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_dirty
	movq	_di_nlink@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_DIP_SET
	movq	%rbx, %rdi
	callq	_inodirty
	movq	_UFS_ROOTINO@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	cmpq	(%rax), %r13
	jne	LBB0_8
## %bb.7:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_DIP
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_inoinfo
	movl	%r14d, (%rax)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_cacheino
	jmp	LBB0_13
LBB0_8:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_INO_IS_DVALID
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_cacheino
	movq	%r13, %rdi
	callq	_getinoinfo
	movq	%r12, 8(%rax)
	movq	%r12, (%rax)
	movq	%r12, %rdi
	callq	_inoinfo
	movq	8(%rax), %r15
	movq	%r13, %rdi
	callq	_inoinfo
	movq	%r15, 8(%rax)
	movq	%r13, %rdi
	callq	_inoinfo
	movq	8(%rax), %rax
	movq	_DSTATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_DIP
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_inoinfo
	movl	%r15d, (%rax)
	movq	%r12, %rdi
	callq	_inoinfo
	incl	(%rax)
LBB0_12:
	movq	%r12, %rdi
	callq	_ginode
	movq	%rax, %r15
	movl	(%r14), %r14d
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_DIP
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_DIP_SET
	movq	%r15, %rdi
	callq	_inodirty
LBB0_13:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r13, %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_IFDIR,4,2                      ## @IFDIR
	.comm	_dirhead,16,3                   ## @dirhead
	.comm	_di_db,8,3                      ## @di_db
	.comm	_sblock,8,3                     ## @sblock
	.comm	_DIRBLKSIZ,8,3                  ## @DIRBLKSIZ
	.comm	_emptydir,16,3                  ## @emptydir
	.comm	_di_nlink,4,2                   ## @di_nlink
	.comm	_UFS_ROOTINO,8,3                ## @UFS_ROOTINO
	.comm	_DSTATE,8,3                     ## @DSTATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocdir                       ; -- Begin function allocdir
	.p2align	2
_allocdir:                              ; @allocdir
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _IFDIR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFDIR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w1, w9, w2
	mov	x0, x8
	bl	_allocino
	mov	x19, x0
Lloh3:
	adrp	x8, _dirhead@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dirhead@GOTPAGEOFF]
	stp	x20, x0, [x8]
	bl	_ginode
	mov	x21, x0
Lloh5:
	adrp	x8, _di_db@GOTPAGE
Lloh6:
	ldr	x8, [x8, _di_db@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_DIP
Lloh8:
	adrp	x25, _sblock@GOTPAGE
Lloh9:
	ldr	x25, [x25, _sblock@GOTPAGEOFF]
	ldr	x1, [x25]
	bl	_getdirblk
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_freeino
	mov	x19, #0
	b	LBB0_11
LBB0_2:
	mov	x22, x0
	ldr	x0, [x0]
Lloh10:
	adrp	x1, _dirhead@GOTPAGE
Lloh11:
	ldr	x1, [x1, _dirhead@GOTPAGEOFF]
	mov	w2, #16
	bl	_memmove
Lloh12:
	adrp	x26, _DIRBLKSIZ@GOTPAGE
Lloh13:
	ldr	x26, [x26, _DIRBLKSIZ@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.3:
	ldr	x9, [x22]
	add	x23, x9, x8
Lloh14:
	adrp	x24, _emptydir@GOTPAGE
Lloh15:
	ldr	x24, [x24, _emptydir@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	w2, #16
	bl	_memmove
	ldr	x8, [x26]
	add	x23, x23, x8
	ldr	x8, [x22]
	ldr	x9, [x25]
	add	x8, x8, x9
	cmp	x23, x8
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x22
	bl	_dirty
Lloh16:
	adrp	x22, _di_nlink@GOTPAGE
Lloh17:
	ldr	x22, [x22, _di_nlink@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #2
	bl	_DIP_SET
	mov	x0, x21
	bl	_inodirty
Lloh18:
	adrp	x8, _UFS_ROOTINO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UFS_ROOTINO@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_DIP
	mov	x20, x0
	mov	x0, x19
	bl	_inoinfo
	str	w20, [x0]
	mov	x0, x21
	mov	x1, x19
	bl	_cacheino
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_INO_IS_DVALID
	cbz	w0, LBB0_1
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	bl	_cacheino
	mov	x0, x19
	bl	_getinoinfo
	stp	x20, x20, [x0]
	mov	x0, x20
	bl	_inoinfo
	ldr	x23, [x0, #8]
	mov	x0, x19
	bl	_inoinfo
	str	x23, [x0, #8]
	mov	x0, x19
	bl	_inoinfo
	ldr	x8, [x0, #8]
Lloh21:
	adrp	x9, _DSTATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DSTATE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_DIP
	mov	x21, x0
	mov	x0, x19
	bl	_inoinfo
	str	w21, [x0]
	mov	x0, x20
	bl	_inoinfo
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_10:
	mov	x0, x20
	bl	_ginode
	mov	x20, x0
	ldr	w21, [x22]
	mov	x1, x21
	bl	_DIP
	add	w2, w0, #1
	mov	x0, x20
	mov	x1, x21
	bl	_DIP_SET
	mov	x0, x20
	bl	_inodirty
LBB0_11:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IFDIR,4,2                      ; @IFDIR
	.comm	_dirhead,16,3                   ; @dirhead
	.comm	_di_db,8,3                      ; @di_db
	.comm	_sblock,8,3                     ; @sblock
	.comm	_DIRBLKSIZ,8,3                  ; @DIRBLKSIZ
	.comm	_emptydir,16,3                  ; @emptydir
	.comm	_di_nlink,4,2                   ; @di_nlink
	.comm	_UFS_ROOTINO,8,3                ; @UFS_ROOTINO
	.comm	_DSTATE,8,3                     ; @DSTATE
.subsections_via_symbols
