	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marshall_symlink
_marshall_symlink:                      ## @marshall_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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -40(%rbp)
	movl	(%rdx), %eax
	leal	4(,%rax,4), %eax
	movw	%ax, -26(%rbp)
	cmpq	$0, 8(%rdx)
	je	LBB0_2
## %bb.1:
	movq	_NO_ERROR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r15d
	jmp	LBB0_7
LBB0_2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	leaq	-40(%rbp), %rdi
	leaq	-26(%rbp), %rdx
	movl	$2, %ecx
	callq	_safe_write
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movzwl	-26(%rbp), %eax
	cmpw	%ax, (%r14)
	jbe	LBB0_5
## %bb.4:
	movq	_CP_UTF8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	-40(%rbp), %r8d
	movzwl	%ax, %r9d
	shrl	$2, %r9d
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_MultiByteToWideChar
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	movq	_ERROR_BUFFER_OVERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_ERROR,4,2                   ## @NO_ERROR
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_ERROR_BUFFER_OVERFLOW,4,2      ## @ERROR_BUFFER_OVERFLOW
	.no_dead_strip	_marshall_symlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marshall_symlink
_marshall_symlink:                      ; @marshall_symlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	x0, [sp, #8]
	ldrh	w8, [x2]
	lsl	w8, w8, #2
	add	w8, w8, #4
	strh	w8, [sp, #6]
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_ERROR@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
	mov	x19, x2
	mov	x20, x1
	add	x0, sp, #8
	add	x2, sp, #6
	mov	w3, #2
	bl	_safe_write
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldrh	w9, [x20]
	ldrh	w8, [sp, #6]
	cmp	w9, w8
	b.ls	LBB0_7
; %bb.6:
Lloh2:
	adrp	x9, _CP_UTF8@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CP_UTF8@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	ldp	w3, w2, [x19]
	ldr	w4, [sp, #8]
	lsr	w5, w8, #2
	mov	w1, #0
	bl	_MultiByteToWideChar
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_4
LBB0_7:
Lloh5:
	adrp	x8, _ERROR_BUFFER_OVERFLOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR_BUFFER_OVERFLOW@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_ERROR,4,2                   ; @NO_ERROR
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_ERROR_BUFFER_OVERFLOW,4,2      ; @ERROR_BUFFER_OVERFLOW
	.no_dead_strip	_marshall_symlink
.subsections_via_symbols
