	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_createlinks                    ## -- Begin function createlinks
	.p2align	4, 0x90
_createlinks:                           ## @createlinks
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_UFS_WINO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_lookupino
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_vprintf
	movq	_NEW@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_myname
	movl	%eax, %edi
	callq	_addwhiteout
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_5:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_vprintf
	movq	_UFS_ROOTINO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_maxino@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_16
## %bb.6:
	movq	_NEW@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	movq	_maxino@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_16
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_lookupino
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r12
	movq	16(%rax), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, %rdi
	callq	_myname
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_linkit
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	16(%rbx), %rbx
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r12, %rdi
	callq	_myname
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_strcpy
	movq	8(%r12), %rax
	movq	_HARDLINK@GOTPCREL(%rip), %r14
	movq	_NODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_SYMLINK@GOTPCREL(%rip), %r14
	jmp	LBB0_13
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_UFS_WINO,8,3                   ## @UFS_WINO
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Add whiteouts\n"

	.comm	_NEW,4,2                        ## @NEW
L_.str.1:                               ## @.str.1
	.asciz	"Add links\n"

	.comm	_UFS_ROOTINO,8,3                ## @UFS_ROOTINO
	.comm	_maxino,8,3                     ## @maxino
	.comm	_NODE,8,3                       ## @NODE
	.comm	_SYMLINK,4,2                    ## @SYMLINK
	.comm	_HARDLINK,4,2                   ## @HARDLINK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_createlinks                    ; -- Begin function createlinks
	.p2align	2
_createlinks:                           ; @createlinks
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _UFS_WINO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UFS_WINO@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	bl	_lookupino
Lloh11:
	adrp	x21, _stdout@GOTPAGE
Lloh12:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
Lloh13:
	adrp	x23, _NEW@GOTPAGE
Lloh14:
	ldr	x23, [x23, _NEW@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x21]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vprintf
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_myname
	bl	_addwhiteout
	ldr	w8, [x23]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	b	LBB0_2
LBB0_5:
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_vprintf
Lloh19:
	adrp	x8, _UFS_ROOTINO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UFS_ROOTINO@GOTPAGEOFF]
Lloh21:
	ldr	x20, [x8]
Lloh22:
	adrp	x8, _maxino@GOTPAGE
Lloh23:
	ldr	x8, [x8, _maxino@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_13
; %bb.6:
Lloh25:
	adrp	x25, _NODE@GOTPAGE
Lloh26:
	ldr	x25, [x25, _NODE@GOTPAGEOFF]
Lloh27:
	adrp	x26, _SYMLINK@GOTPAGE
Lloh28:
	ldr	x26, [x26, _SYMLINK@GOTPAGEOFF]
Lloh29:
	adrp	x27, _HARDLINK@GOTPAGE
Lloh30:
	ldr	x27, [x27, _HARDLINK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
Lloh31:
	adrp	x8, _maxino@GOTPAGE
Lloh32:
	ldr	x8, [x8, _maxino@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x20
	bl	_lookupino
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	ldr	x22, [x0, #16]
	cbnz	x22, LBB0_11
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_7
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x21
	bl	_myname
	mov	x1, x0
	mov	x0, x19
	bl	_strcpy
	ldr	x28, [x21, #8]
	ldr	x24, [x25]
	mov	x0, x22
	bl	_myname
	mov	x1, x0
	cmp	x28, x24
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x19
	bl	_linkit
	ldr	w8, [x23]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	b	LBB0_10
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_UFS_WINO,8,3                   ; @UFS_WINO
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add whiteouts\n"

	.comm	_NEW,4,2                        ; @NEW
l_.str.1:                               ; @.str.1
	.asciz	"Add links\n"

	.comm	_UFS_ROOTINO,8,3                ; @UFS_ROOTINO
	.comm	_maxino,8,3                     ; @maxino
	.comm	_NODE,8,3                       ; @NODE
	.comm	_SYMLINK,4,2                    ; @SYMLINK
	.comm	_HARDLINK,4,2                   ; @HARDLINK
.subsections_via_symbols
