	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_symlink
_is_symlink:                            ## @is_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	%r12
	pushq	%rbx
	subq	$336, %rsp                      ## imm = 0x150
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_assertion_count
	leaq	-360(%rbp), %rsi
	movq	%r15, %rdi
	callq	_lstat
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rcx
	callq	_failure_start
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_failure_finish
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$336, %rsp                      ## imm = 0x150
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-360(%rbp), %edi
	callq	_S_ISLNK
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	leaq	-352(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$300, %edx                      ## imm = 0x12C
	callq	_readlink
	movb	$0, -352(%rbp,%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Symlink should exist: %s"

	.no_dead_strip	_is_symlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_symlink
_is_symlink:                            ; @is_symlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_assertion_count
	add	x1, sp, #8
	mov	x0, x20
	bl	_lstat
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	bl	_failure_start
	mov	x0, #0
	bl	_failure_finish
	mov	w0, #0
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.3:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_4:
	ldr	w0, [sp, #8]
	bl	_S_ISLNK
	cbz	w0, LBB0_2
; %bb.5:
	cbz	x19, LBB0_7
; %bb.6:
	add	x21, sp, #12
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #300
	bl	_readlink
	strb	wzr, [x21, x0]
	add	x0, sp, #12
	mov	x1, x19
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_2
LBB0_7:
	mov	w0, #1
	b	LBB0_2
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Symlink should exist: %s"

	.no_dead_strip	_is_symlink
.subsections_via_symbols
