	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetBaseDirectory               ## -- Begin function GetBaseDirectory
	.p2align	4, 0x90
_GetBaseDirectory:                      ## @GetBaseDirectory
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_arg0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	callq	_strlen
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	(%r15), %rcx
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rbx), %eax
	cmpb	$47, %al
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$92, %al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%rbx), %rax
	testq	%rbx, %rbx
	movq	%rax, %rbx
	jg	LBB0_3
	jmp	LBB0_7
LBB0_6:
	leal	1(%rbx), %edi
	callq	_malloc
	movq	%rax, %r14
	movq	(%r15), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_strncpy
	testq	%r14, %r14
	jne	LBB0_8
LBB0_7:
	movl	$1, %edi
	callq	_malloc
	xorl	%ebx, %ebx
LBB0_8:
	movq	_BaseDirectory@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	$0, (%rax,%rcx,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_arg0,8,3                       ## @arg0
	.comm	_BaseDirectory,8,3              ## @BaseDirectory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetBaseDirectory               ; -- Begin function GetBaseDirectory
	.p2align	2
_GetBaseDirectory:                      ; @GetBaseDirectory
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _arg0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _arg0@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_7
; %bb.1:
	bl	_strlen
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x21]
	mov	w19, w0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8, x19]
	cmp	w9, #47
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #92
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x19, #1
	cmp	x19, #0
	mov	x19, x9
	b.gt	LBB0_3
	b	LBB0_7
LBB0_6:
	add	w0, w19, #1
	bl	_malloc
	mov	x20, x0
	ldr	x1, [x21]
	mov	x2, x19
	bl	_strncpy
	cbnz	x20, LBB0_8
LBB0_7:
	mov	w0, #1
	bl	_malloc
	mov	x19, #0
LBB0_8:
Lloh2:
	adrp	x8, _BaseDirectory@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BaseDirectory@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	xzr, [x8, w19, uxtw #3]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_arg0,8,3                       ; @arg0
	.comm	_BaseDirectory,8,3              ; @BaseDirectory
.subsections_via_symbols
