	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chk_lnk                        ## -- Begin function chk_lnk
	.p2align	4, 0x90
_chk_lnk:                               ## @chk_lnk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ltab@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	$-1, %r15d
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_PAX_DIR@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.2:
	cmpl	$2, 24(%r14)
	jl	LBB0_18
## %bb.3:
	movq	32(%r14), %rcx
	movq	_L_TAB_SZ@GOTPCREL(%rip), %rdi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	(%rdi)
	movl	%edx, %r15d
	movq	(%rsi,%r15,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	leaq	(%rsi,%r15,8), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rbx), %rax
	addq	$24, %rbx
	movq	%rbx, %r13
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rax
	cmpq	40(%r14), %rax
	jne	LBB0_7
## %bb.11:
	movq	16(%r14), %rdi
	movq	32(%rbx), %rsi
	movl	$7, %edx
	callq	_l_strncpy
	movq	%rax, 8(%r14)
	movq	16(%r14), %rcx
	movb	$0, (%rcx,%rax)
	movq	(%r14), %rax
	movq	_PAX_REG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	movq	_PAX_HRG@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	%rax, %rbx
	movl	48(%r14), %edi
	callq	_strdup
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movups	32(%r14), %xmm0
	movups	%xmm0, (%rbx)
	movl	24(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rcx
	movq	%rcx, 24(%rbx)
	movq	%rbx, (%rax,%r15,8)
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_16:
	movq	%rbx, %rdi
	callq	_free
LBB0_17:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_paxwarn
	movl	$-1, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_PAX_HLK@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	16(%rbx), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movl	$1, %r15d
	cmpl	$2, %eax
	jg	LBB0_18
## %bb.15:
	movq	24(%rbx), %rax
	movq	%rax, (%r13)
	movq	32(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ltab,8,3                       ## @ltab
	.comm	_PAX_DIR,8,3                    ## @PAX_DIR
	.comm	_L_TAB_SZ,4,2                   ## @L_TAB_SZ
	.comm	_PAX_REG,8,3                    ## @PAX_REG
	.comm	_PAX_HRG,8,3                    ## @PAX_HRG
	.comm	_PAX_HLK,8,3                    ## @PAX_HLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hard link table out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chk_lnk                        ; -- Begin function chk_lnk
	.p2align	2
_chk_lnk:                               ; @chk_lnk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _ltab@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ltab@GOTPAGEOFF]
	ldr	x9, [x21]
	cbz	x9, LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x10, _PAX_DIR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PAX_DIR@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19, #24]
	cmp	w8, #2
	b.ge	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_16
LBB0_4:
Lloh5:
	adrp	x10, _L_TAB_SZ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _L_TAB_SZ@GOTPAGEOFF]
	ldr	x8, [x19, #32]
Lloh7:
	ldr	w10, [x10]
	udiv	w11, w8, w10
	msub	w22, w11, w10, w8
	add	x23, x9, w22, uxtw #3
	ldr	x20, [x23]
	cbnz	x20, LBB0_9
LBB0_5:
	mov	w0, #40
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.6:
	mov	x20, x0
	ldr	w0, [x19, #48]
	bl	_strdup
	str	x0, [x20, #32]
	cbz	x0, LBB0_13
; %bb.7:
	mov	w0, #0
	ldr	q0, [x19, #32]
	str	q0, [x20]
	ldr	w8, [x19, #24]
	str	w8, [x20, #16]
	ldr	x8, [x21]
	lsl	x9, x22, #3
	ldr	x10, [x8, x9]
	str	x10, [x20, #24]
	str	x20, [x8, x9]
	b	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x20, #24]!
	mov	x23, x20
	mov	x20, x9
	cbz	x9, LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x20, #8]
	ldr	x10, [x19, #40]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.11:
	ldr	x0, [x19, #16]
	ldr	x1, [x20, #32]
	mov	w2, #7
	bl	_l_strncpy
	str	x0, [x19, #8]
	ldr	x8, [x19, #16]
	strb	wzr, [x8, x0]
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _PAX_REG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PAX_REG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _PAX_HRG@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PAX_HRG@GOTPAGEOFF]
Lloh13:
	adrp	x11, _PAX_HLK@GOTPAGE
Lloh14:
	ldr	x11, [x11, _PAX_HLK@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w8, [x20, #16]
	sub	w9, w8, #1
	str	w9, [x20, #16]
	cmp	w8, #2
	b.gt	LBB0_17
; %bb.12:
	ldr	x8, [x20, #24]
	str	x8, [x23]
	ldr	x0, [x20, #32]
	bl	_free
	mov	x0, x20
	bl	_free
	mov	w0, #1
	b	LBB0_16
LBB0_13:
	mov	x0, x20
	bl	_free
LBB0_14:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_paxwarn
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #1
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ltab,8,3                       ; @ltab
	.comm	_PAX_DIR,8,3                    ; @PAX_DIR
	.comm	_L_TAB_SZ,4,2                   ; @L_TAB_SZ
	.comm	_PAX_REG,8,3                    ; @PAX_REG
	.comm	_PAX_HRG,8,3                    ; @PAX_HRG
	.comm	_PAX_HLK,8,3                    ; @PAX_HLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hard link table out of memory"

.subsections_via_symbols
