	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitCwd
_InitCwd:                               ## @InitCwd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_Cwd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	xorl	%eax, %eax
	cmpq	$0, (%rsi)
	jne	LBB0_7
## %bb.1:
	movq	__MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_GetModuleFileName
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rdi
	movl	$92, %esi
	callq	_wcsrchr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movl	$47, %esi
	callq	_wcsrchr
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	xorl	%ecx, %ecx
	cmpq	(%rbx), %rax
	sete	%cl
	movq	$0, (%rax,%rcx,8)
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cwd,8,3                        ## @Cwd
	.comm	__MAX_PATH,4,2                  ## @_MAX_PATH
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_InitCwd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitCwd
_InitCwd:                               ; @InitCwd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _Cwd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Cwd@GOTPAGEOFF]
	ldr	x1, [x19]
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
Lloh2:
	adrp	x8, __MAX_PATH@GOTPAGE
Lloh3:
	ldr	x8, [x8, __MAX_PATH@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, #0
	bl	_GetModuleFileName
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x0, [x19]
	mov	w1, #92
	bl	_wcsrchr
	mov	x8, x0
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	mov	w1, #47
	bl	_wcsrchr
	mov	x8, x0
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #0
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w9, eq
	str	xzr, [x8, w9, uxtw #3]
	b	LBB0_7
LBB0_6:
	bl	_GetLastError
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Cwd,8,3                        ; @Cwd
	.comm	__MAX_PATH,4,2                  ; @_MAX_PATH
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_InitCwd
.subsections_via_symbols
