	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lnk_creat                      ## -- Begin function lnk_creat
	.p2align	4, 0x90
_lnk_creat:                             ## @lnk_creat
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	leaq	-16(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	movl	4(%rbx), %edx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_paxwarn
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_syswarn
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %eax
	leaq	-16(%rbp), %rsi
	movl	%edx, %edi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_mk_link
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to link to %s from %s"

L_.str.1:                               ## @.str.1
	.asciz	"A hard link to the directory %s is not allowed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lnk_creat                      ; -- Begin function lnk_creat
	.p2align	2
_lnk_creat:                             ; @lnk_creat
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	add	x1, sp, #8
	bl	_lstat
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	ldr	w2, [x19, #4]
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_paxwarn
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldp	w4, w3, [x19]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_syswarn
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19]
	add	x1, sp, #8
	mov	x0, x2
	mov	x2, x8
	mov	w3, #0
	bl	_mk_link
LBB0_5:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to link to %s from %s"

l_.str.1:                               ; @.str.1
	.asciz	"A hard link to the directory %s is not allowed"

.subsections_via_symbols
