	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addentry                       ## -- Begin function addentry
	.p2align	4, 0x90
_addentry:                              ## @addentry
	.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
	movl	%edx, %r12d
	movq	%rdi, %r15
	movq	_freelist@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	64(%r13), %rcx
	movq	%rcx, (%rax)
	movl	$72, %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edi
	movl	$72, %esi
	callq	_calloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_panic
LBB0_4:
	movq	_LINK@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	notl	%eax
	andl	%r12d, %eax
	movl	%eax, (%r13)
	movq	%r15, %rdi
	callq	_lookupparent
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rdi
	callq	_savename
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, 56(%r13)
	movq	%rbx, 48(%r13)
	movq	32(%rbx), %rax
	movq	%rax, 40(%r13)
	movq	%r13, 32(%rbx)
	testl	%r12d, (%r14)
	je	LBB0_13
## %bb.10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_lookupino
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_panic
LBB0_12:
	movq	%r14, 24(%r13)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r13)
	movq	%r13, 16(%rbx)
	jmp	LBB0_18
LBB0_5:
	movq	_UFS_ROOTINO@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, (%rbx)
	jne	LBB0_7
## %bb.6:
	callq	_lookupino
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_panic
LBB0_8:
	movq	%r15, %rdi
	callq	_savename
	movq	%rax, 8(%r13)
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, 56(%r13)
	movq	%r13, 48(%r13)
	movq	(%rbx), %rdi
	jmp	LBB0_17
LBB0_13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.14:
	movq	%rbx, %rdi
	callq	_lookupino
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_panic
LBB0_16:
	movq	%rbx, %rdi
LBB0_17:
	movq	%r13, %rsi
	callq	_addino
LBB0_18:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_freelist,8,3                   ## @freelist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory to extend symbol table\n"

	.comm	_LINK,4,2                       ## @LINK
	.comm	_UFS_ROOTINO,8,3                ## @UFS_ROOTINO
L_.str.1:                               ## @.str.1
	.asciz	"bad name to addentry %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"link to non-existent name\n"

L_.str.3:                               ## @.str.3
	.asciz	"duplicate entry\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_addentry                       ; -- Begin function addentry
	.p2align	2
_addentry:                              ; @addentry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _freelist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _freelist@GOTPAGEOFF]
	ldr	x19, [x8]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x9, [x19, #64]
	str	x9, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	b	LBB0_4
LBB0_2:
	mov	w0, #1
	mov	w1, #72
	bl	_calloc
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_4:
Lloh4:
	adrp	x24, _LINK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _LINK@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w8, w22, w8
	str	w8, [x19]
	mov	x0, x21
	bl	_lookupparent
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x0
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	add	x0, x0, #1
	bl	_savename
	str	x0, [x19, #8]
	bl	_strlen
	str	x0, [x19, #56]
	ldr	x8, [x23, #32]
	stp	x8, x23, [x19, #40]
	str	x19, [x23, #32]
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.6:
	mov	x0, x20
	bl	_lookupino
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
LBB0_8:
	ldr	x8, [x21, #16]
	stp	x8, x20, [x19, #16]
	str	x19, [x21, #16]
	b	LBB0_18
LBB0_9:
Lloh8:
	adrp	x22, _UFS_ROOTINO@GOTPAGE
Lloh9:
	ldr	x22, [x22, _UFS_ROOTINO@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_lookupino
	cbz	x0, LBB0_12
LBB0_11:
	str	x21, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_12:
	mov	x0, x21
	bl	_savename
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_strlen
	stp	x19, x0, [x19, #48]
	ldr	x0, [x22]
	b	LBB0_17
LBB0_13:
	cbz	x20, LBB0_18
; %bb.14:
	mov	x0, x20
	bl	_lookupino
	cbz	x0, LBB0_16
; %bb.15:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_panic
LBB0_16:
	mov	x0, x20
LBB0_17:
	mov	x1, x19
	bl	_addino
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_freelist,8,3                   ; @freelist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory to extend symbol table\n"

	.comm	_LINK,4,2                       ; @LINK
	.comm	_UFS_ROOTINO,8,3                ; @UFS_ROOTINO
l_.str.1:                               ; @.str.1
	.asciz	"bad name to addentry %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"link to non-existent name\n"

l_.str.3:                               ; @.str.3
	.asciz	"duplicate entry\n"

.subsections_via_symbols
