	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lstat_symlink
_lstat_symlink:                         ## @lstat_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rsi
	callq	_rump_sys_symlink
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rump_sys_lstat
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movl	-16(%rbp), %edi
	callq	_S_ISLNK
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ATF_CHECK
	xorl	%edi, %edi
	cmpq	$6, -24(%rbp)
	sete	%dil
	callq	_ATF_CHECK
	xorl	%eax, %eax
	callq	_FSTEST_EXIT
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USES_SYMLINKS,4,2              ## @USES_SYMLINKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"source"

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

	.no_dead_strip	_lstat_symlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lstat_symlink
_lstat_symlink:                         ; @lstat_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
	bl	_FSTEST_ENTER
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x19, l_.str.1@PAGE
Lloh3:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_rump_sys_symlink
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	mov	x1, sp
	mov	x0, x19
	bl	_rump_sys_lstat
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	w0, [sp, #8]
	bl	_S_ISLNK
	cmp	x0, #0
	cset	w0, ne
	bl	_ATF_CHECK
	ldr	x8, [sp]
	cmp	x8, #6
	cset	w0, eq
	bl	_ATF_CHECK
	bl	_FSTEST_EXIT
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USES_SYMLINKS,4,2              ; @USES_SYMLINKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"source"

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

	.no_dead_strip	_lstat_symlink
.subsections_via_symbols
