	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_symlink
_handle_symlink:                        ## @handle_symlink
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_10
## %bb.1:
	movq	8(%r14), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	$47, (%rax)
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$92, %cl
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%cl, %cl
	jne	LBB0_3
## %bb.6:
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.7:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	movl	8(%rbx), %ecx
	movl	32(%rbx), %edi
	leaq	36(%rbx), %rsi
	leaq	24(%rbx), %rdx
	callq	_nfs41_remove
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movl	%eax, %r15d
	movq	8(%r14), %rbx
	movl	%eax, %edi
	callq	_nfs_error_string
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_10:
	movl	32(%rbx), %edi
	movq	_NFS41_MAX_PATH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	20(%r14), %ecx
	leaq	-72(%rbp), %r8
	movq	%rbx, %rsi
	callq	_nfs41_readlink
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movl	%r15d, %edi
	callq	_nfs_error_string
	leaq	L_.str.3(%rip), %rdi
LBB0_9:
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_eprintf
	movl	%r15d, %edi
	callq	_map_symlink_errors
	jmp	LBB0_16
LBB0_12:
	movl	$2, -40(%rbp)
	movq	-32(%rbp), %rax
	movq	$0, (%rax)
	movq	_FATTR4_WORD1_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	movl	$511, -48(%rbp)                 ## imm = 0x1FF
	movl	32(%rbx), %edi
	movq	_NF4LNK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rcx
	leaq	36(%rbx), %r8
	leaq	-72(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rdx
	movq	%rbx, %r9
	callq	_nfs41_create
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %ebx
	movq	8(%r14), %r14
	movl	%eax, %edi
	callq	_nfs_error_string
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_eprintf
	movl	%ebx, %edi
	callq	_map_symlink_errors
	jmp	LBB0_16
LBB0_14:
	movzwl	-72(%rbp), %eax
	movw	%ax, 16(%r14)
	movl	20(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	$2, %edi
	callq	_dprintf
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_ERROR,4,2                   ## @NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle_symlink: attempting to create a symlink when the file=%s was already created on open; sending REMOVE first\n"

L_.str.1:                               ## @.str.1
	.asciz	"nfs41_remove() for symlink=%s failed with %s\n"

	.comm	_FATTR4_WORD1_MODE,8,3          ## @FATTR4_WORD1_MODE
	.comm	_NF4LNK,4,2                     ## @NF4LNK
L_.str.2:                               ## @.str.2
	.asciz	"nfs41_create() for symlink=%s failed with %s\n"

	.comm	_NFS41_MAX_PATH_LEN,4,2         ## @NFS41_MAX_PATH_LEN
L_.str.3:                               ## @.str.3
	.asciz	"nfs41_readlink() for filename=%s failed with %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"returning symlink target '%s'\n"

	.no_dead_strip	_handle_symlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_symlink
_handle_symlink:                        ; @handle_symlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x8, [x19, #8]
	mov	w9, #47
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	w9, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	w10, #92
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w10, LBB0_3
; %bb.6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	x8, [x20]
	ldr	x1, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	ldr	w0, [x20, #32]
	add	x1, x20, #36
	add	x2, x20, #24
	ldr	w3, [x20, #8]
	bl	_nfs41_remove
	cbz	w0, LBB0_12
; %bb.8:
	mov	x21, x0
	ldr	x19, [x19, #8]
	bl	_nfs_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldr	w0, [x20, #32]
Lloh4:
	adrp	x8, _NFS41_MAX_PATH_LEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NFS41_MAX_PATH_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	ldr	w3, [x19, #20]
	add	x4, sp, #40
	mov	x1, x20
	bl	_nfs41_readlink
	cbz	w0, LBB0_14
; %bb.10:
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x19, [x8]
	bl	_nfs_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	mov	x1, x19
	bl	_eprintf
	mov	x0, x21
	bl	_map_symlink_errors
	b	LBB0_15
LBB0_12:
	mov	w8, #2
	str	w8, [sp, #24]
	ldr	x8, [sp, #32]
	str	xzr, [x8]
Lloh9:
	adrp	x9, _FATTR4_WORD1_MODE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FATTR4_WORD1_MODE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	mov	w8, #511
	str	w8, [sp, #16]
	ldr	w0, [x20, #32]
Lloh12:
	adrp	x8, _NF4LNK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NF4LNK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x3, [x19, #8]
	add	x4, x20, #36
	add	x2, sp, #16
	add	x6, sp, #40
	mov	x5, x20
	bl	_nfs41_create
	cbz	w0, LBB0_15
; %bb.13:
	mov	x20, x0
	ldr	x19, [x19, #8]
	bl	_nfs_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_eprintf
	mov	x0, x20
	bl	_map_symlink_errors
	b	LBB0_15
LBB0_14:
	ldr	x8, [sp, #40]
	strh	w8, [x19, #16]
	ldr	w2, [x19, #20]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #2
	bl	_dprintf
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_ERROR,4,2                   ; @NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle_symlink: attempting to create a symlink when the file=%s was already created on open; sending REMOVE first\n"

l_.str.1:                               ; @.str.1
	.asciz	"nfs41_remove() for symlink=%s failed with %s\n"

	.comm	_FATTR4_WORD1_MODE,8,3          ; @FATTR4_WORD1_MODE
	.comm	_NF4LNK,4,2                     ; @NF4LNK
l_.str.2:                               ; @.str.2
	.asciz	"nfs41_create() for symlink=%s failed with %s\n"

	.comm	_NFS41_MAX_PATH_LEN,4,2         ; @NFS41_MAX_PATH_LEN
l_.str.3:                               ; @.str.3
	.asciz	"nfs41_readlink() for filename=%s failed with %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"returning symlink target '%s'\n"

	.no_dead_strip	_handle_symlink
.subsections_via_symbols
