	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function symlink_len
_symlink_len:                           ## @symlink_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_rump_sys_chdir
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_RLF
	leaq	1(%r14), %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ATF_REQUIRE
	movq	%rbx, %rdi
	movl	$97, %esi
	movq	%r14, %rdx
	callq	_memset
	movb	$0, (%rbx,%r14)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rump_sys_symlink
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_rump_sys_unlink
	movl	%eax, %edi
	callq	_RL
	jmp	LBB0_3
LBB0_1:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_ATF_REQUIRE_ERRNO
LBB0_3:
	movq	%rbx, %rdi
	callq	_free
	leaq	L_.str.2(%rip), %rdi
	callq	_rump_sys_chdir
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RL                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USES_SYMLINKS,4,2              ## @USES_SYMLINKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"afile"

	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
L_.str.2:                               ## @.str.2
	.asciz	"/"

	.no_dead_strip	_symlink_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function symlink_len
_symlink_len:                           ; @symlink_len
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x0, x1
	bl	_rump_sys_chdir
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_RLF
	add	x0, x20, #1
	bl	_malloc
	mov	x19, x0
	bl	_ATF_REQUIRE
	mov	x0, x19
	mov	w1, #97
	mov	x2, x20
	bl	_memset
	strb	wzr, [x19, x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rump_sys_symlink
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rump_sys_unlink
	bl	_RL
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_ATF_REQUIRE_ERRNO
LBB0_3:
	mov	x0, x19
	bl	_free
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_rump_sys_chdir
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RL
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_USES_SYMLINKS,4,2              ; @USES_SYMLINKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"afile"

	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
l_.str.2:                               ; @.str.2
	.asciz	"/"

	.no_dead_strip	_symlink_len
.subsections_via_symbols
