	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cached_realpath                ## -- Begin function cached_realpath
	.p2align	4, 0x90
_cached_realpath:                       ## @cached_realpath
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_5
## %bb.2:
	movq	%rsi, %r15
	xorl	%eax, %eax
	callq	_get_cached_realpaths
	movq	%rax, %r12
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_Var_Value
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strlcpy
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_realpath
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_Var_Set
	jmp	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	-40(%rbp), %rdi
	callq	_free
	testq	%r14, %r14
	cmoveq	%r14, %r15
LBB0_10:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cached_realpath                ; -- Begin function cached_realpath
	.p2align	2
_cached_realpath:                       ; @cached_realpath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x19, x1
	bl	_get_cached_realpaths
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_Var_Value
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_strlcpy
	b	LBB0_7
LBB0_4:
	mov	x0, #0
	b	LBB0_8
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	bl	_realpath
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	bl	_Var_Set
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_free
	cmp	x20, #0
	csel	x0, xzr, x19, eq
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
.subsections_via_symbols
