	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateDirectory                ## -- Begin function UpdateDirectory
	.p2align	4, 0x90
_UpdateDirectory:                       ## @UpdateDirectory
	.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	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edi, %edi
	je	LBB0_9
## %bb.1:
	movq	_deviceType@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TYPE_RECENT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.2:
	movq	_rootdir@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	_fileDir@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	%rsp, %r15
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncpy
	movslq	%r12d, %rax
	movb	$0, (%r14,%rax)
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_strtok
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	notl	%r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	movq	_fileDir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rdi, %rdx
	movq	%r14, %rcx
	callq	_sprintf
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_4:
	movl	$-1, %r12d
LBB0_8:
	movq	(%r13), %rdi
	callq	_strlen
	movq	(%r13), %rcx
	addl	%r12d, %eax
	cltq
	movb	$0, (%rcx,%rax)
	movl	$1, %ebx
	movq	%r15, %rsp
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_deviceType,8,3                 ## @deviceType
	.comm	_TYPE_RECENT,8,3                ## @TYPE_RECENT
	.comm	_rootdir,8,3                    ## @rootdir
	.comm	_fileDir,8,3                    ## @fileDir
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateDirectory                ; -- Begin function UpdateDirectory
	.p2align	2
_UpdateDirectory:                       ; @UpdateDirectory
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _deviceType@GOTPAGE
Lloh4:
	ldr	x8, [x8, _deviceType@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TYPE_RECENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TYPE_RECENT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_11
LBB0_3:
Lloh9:
	adrp	x8, _fileDir@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fileDir@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x0
	mov	x3, x19
	bl	_sprintf
	mov	w0, #1
	b	LBB0_11
LBB0_4:
Lloh14:
	adrp	x9, _rootdir@GOTPAGE
Lloh15:
	ldr	x9, [x9, _rootdir@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w0, [x9, x8, lsl #2]
Lloh17:
	adrp	x23, _fileDir@GOTPAGE
Lloh18:
	ldr	x23, [x23, _fileDir@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.5:
	mov	x24, sp
Lloh19:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	x9, x8
Lloh22:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh23:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x1, [x23]
	mov	x0, x20
	bl	_strcpy
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strtok
	cbz	x0, LBB0_9
; %bb.6:
	mov	x22, x0
Lloh26:
	adrp	x20, l_.str@PAGE
Lloh27:
	add	x20, x20, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_strncpy
	strb	wzr, [x19, w21, sxtw]
	mov	x0, #0
	mov	x1, x20
	bl	_strtok
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.8:
	mvn	w19, w21
	b	LBB0_10
LBB0_9:
	mov	w19, #-1
LBB0_10:
	ldr	x0, [x23]
	bl	_strlen
	ldr	x8, [x23]
	add	w9, w0, w19
	strb	wzr, [x8, w9, sxtw]
	mov	w0, #1
	mov	sp, x24
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_deviceType,8,3                 ; @deviceType
	.comm	_TYPE_RECENT,8,3                ; @TYPE_RECENT
	.comm	_rootdir,8,3                    ; @rootdir
	.comm	_fileDir,8,3                    ; @fileDir
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s/"

.subsections_via_symbols
