	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_dir                       ## -- Begin function proc_dir
	.p2align	4, 0x90
_proc_dir:                              ## @proc_dir
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_dirfd@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testl	%edi, %edi
	js	LBB0_19
## %bb.1:
	movq	_dircnt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.3:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-32, %esi
	callq	_lseek
	xorl	%r14d, %r14d
	testq	%rax, %rax
	js	LBB0_16
## %bb.4:
	movq	_SEEK_SET@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	leaq	-88(%rbp), %rsi
	movl	$32, %edx
	callq	_read
	cmpl	$32, %eax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	movl	-64(%rbp), %ebx
	movl	(%r12), %edx
	movl	%ebx, %esi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	movl	-88(%rbp), %r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_read
	cmpl	%r15d, %eax
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	movl	(%r12), %edx
	movl	%ebx, %esi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_pmode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	-72(%rbp), %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-76(%rbp), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_set_pmode
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_patime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pmtime@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_set_ftime
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%r14), %rax
	movq	_dircnt@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-32, %esi
	callq	_lseek
	incq	%r14
	testq	%rax, %rax
	jns	LBB0_5
	jmp	LBB0_16
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_15:
	movq	%rax, %r14
LBB0_16:
	movl	(%r13), %edi
LBB0_17:
	callq	_close
	movl	$-1, (%r13)
	movq	_dircnt@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_19
## %bb.18:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_paxwarn
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PAXPATHLEN,4,2                 ## @PAXPATHLEN
	.comm	_dirfd,4,2                      ## @dirfd
	.comm	_dircnt,8,3                     ## @dircnt
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_pmode,8,3                      ## @pmode
	.comm	_patime,8,3                     ## @patime
	.comm	_pmtime,8,3                     ## @pmtime
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set mode and times for created directories"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_dir                       ; -- Begin function proc_dir
	.p2align	2
_proc_dir:                              ; @proc_dir
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x22, _dirfd@GOTPAGE
Lloh9:
	ldr	x22, [x22, _dirfd@GOTPAGEOFF]
	ldr	w0, [x22]
	tbnz	w0, #31, LBB0_18
; %bb.1:
Lloh10:
	adrp	x23, _dircnt@GOTPAGE
Lloh11:
	ldr	x23, [x23, _dircnt@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.2:
Lloh12:
	adrp	x25, _SEEK_CUR@GOTPAGE
Lloh13:
	ldr	x25, [x25, _SEEK_CUR@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #-32
	bl	_lseek
	mov	x24, #0
	tbnz	x0, #63, LBB0_14
; %bb.3:
Lloh14:
	adrp	x26, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x26, [x26, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	adrp	x28, _patime@GOTPAGE
Lloh17:
	ldr	x28, [x28, _patime@GOTPAGEOFF]
Lloh18:
	adrp	x27, _pmtime@GOTPAGE
Lloh19:
	ldr	x27, [x27, _pmtime@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	sub	x1, x29, #120
	mov	w2, #32
	bl	_read
	cmp	w0, #32
	b.ne	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	ldur	w20, [x29, #-96]
	ldr	w2, [x26]
	mov	x1, x20
	bl	_lseek
	tbnz	x0, #63, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	ldur	w21, [x29, #-120]
	mov	x1, x19
	mov	x2, x21
	bl	_read
	cmp	w0, w21
	b.ne	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	ldr	w2, [x26]
	mov	x1, x20
	bl	_lseek
	tbnz	x0, #63, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x8, _pmode@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pmode@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldur	x9, [x29, #-104]
	orr	x8, x8, x9
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w1, [x29, #-108]
	mov	x0, x19
	bl	_set_pmode
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x27]
	orr	x8, x8, x9
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	w2, w1, [x29, #-116]
	mov	x0, x19
	mov	w3, #0
	bl	_set_ftime
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	ldr	w2, [x25]
	mov	w1, #-32
	bl	_lseek
	tbz	x0, #63, LBB0_4
LBB0_14:
	ldr	w0, [x22]
	b	LBB0_16
LBB0_15:
	mov	x24, #0
LBB0_16:
	bl	_close
	mov	w8, #-1
	str	w8, [x22]
	ldr	x8, [x23]
	cmp	x24, x8
	b.eq	LBB0_18
; %bb.17:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_paxwarn
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PAXPATHLEN,4,2                 ; @PAXPATHLEN
	.comm	_dirfd,4,2                      ; @dirfd
	.comm	_dircnt,8,3                     ; @dircnt
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_pmode,8,3                      ; @pmode
	.comm	_patime,8,3                     ; @patime
	.comm	_pmtime,8,3                     ; @pmtime
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set mode and times for created directories"

.subsections_via_symbols
