	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_dotdot_tests
_prepare_dotdot_tests:                  ## @prepare_dotdot_tests
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_getcwd
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ATF_REQUIRE
	movq	_abspath@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_asprintf
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	movq	_dirfd@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	notl	%eax
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_ATF_REQUIRE
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_mkdirat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_mkdirat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %r14
	movq	%r14, %rsi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_mkdirat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_touchat
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_touchat
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_touchat
	movl	(%rbx), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rdi
	callq	_symlinkat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	(%rbx), %esi
	leaq	L_.str.9(%rip), %rdi
	leaq	L_.str.10(%rip), %rdx
	callq	_symlinkat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	(%rbx), %esi
	leaq	L_.str.11(%rip), %rdi
	leaq	L_.str.12(%rip), %rdx
	callq	_symlinkat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	(%rbx), %esi
	leaq	L_.str.13(%rip), %rdi
	leaq	L_.str.14(%rip), %rdx
	callq	_symlinkat
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_abspath,4,2                    ## @abspath
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/testdir/d1/f1"

L_.str.1:                               ## @.str.1
	.asciz	"testdir"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_dirfd,4,2                      ## @dirfd
L_.str.2:                               ## @.str.2
	.asciz	"d1"

L_.str.3:                               ## @.str.3
	.asciz	"d1/d2"

L_.str.4:                               ## @.str.4
	.asciz	"d1/d2/d3"

L_.str.5:                               ## @.str.5
	.asciz	"d1/f1"

L_.str.6:                               ## @.str.6
	.asciz	"d1/d2/f2"

L_.str.7:                               ## @.str.7
	.asciz	"d1/d2/d3/f3"

L_.str.8:                               ## @.str.8
	.asciz	"l3"

L_.str.9:                               ## @.str.9
	.asciz	"../testdir/d1"

L_.str.10:                              ## @.str.10
	.asciz	"lup"

L_.str.11:                              ## @.str.11
	.asciz	"../.."

L_.str.12:                              ## @.str.12
	.asciz	"d1/d2/d3/ld1"

L_.str.13:                              ## @.str.13
	.asciz	"../../f1"

L_.str.14:                              ## @.str.14
	.asciz	"d1/d2/d3/lf1"

	.no_dead_strip	_prepare_dotdot_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_dotdot_tests
_prepare_dotdot_tests:                  ; @prepare_dotdot_tests
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_getcwd
	cmp	x0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
Lloh8:
	adrp	x0, _abspath@GOTPAGE
Lloh9:
	ldr	x0, [x0, _abspath@GOTPAGEOFF]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_asprintf
Lloh12:
	adrp	x19, l_.str.1@PAGE
Lloh13:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #511
	bl	_mkdir
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
Lloh14:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
Lloh17:
	adrp	x20, _dirfd@GOTPAGE
Lloh18:
	ldr	x20, [x20, _dirfd@GOTPAGEOFF]
	str	w0, [x20]
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_ATF_REQUIRE
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #511
	bl	_mkdirat
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #511
	bl	_mkdirat
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [x20]
Lloh23:
	adrp	x19, l_.str.4@PAGE
Lloh24:
	add	x19, x19, l_.str.4@PAGEOFF
	mov	x1, x19
	mov	w2, #511
	bl	_mkdirat
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [x20]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_touchat
	ldr	w0, [x20]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_touchat
	ldr	w0, [x20]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_touchat
	ldr	w1, [x20]
Lloh31:
	adrp	x2, l_.str.8@PAGE
Lloh32:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_symlinkat
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w1, [x20]
Lloh33:
	adrp	x0, l_.str.9@PAGE
Lloh34:
	add	x0, x0, l_.str.9@PAGEOFF
Lloh35:
	adrp	x2, l_.str.10@PAGE
Lloh36:
	add	x2, x2, l_.str.10@PAGEOFF
	bl	_symlinkat
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w1, [x20]
Lloh37:
	adrp	x0, l_.str.11@PAGE
Lloh38:
	add	x0, x0, l_.str.11@PAGEOFF
Lloh39:
	adrp	x2, l_.str.12@PAGE
Lloh40:
	add	x2, x2, l_.str.12@PAGEOFF
	bl	_symlinkat
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w1, [x20]
Lloh41:
	adrp	x0, l_.str.13@PAGE
Lloh42:
	add	x0, x0, l_.str.13@PAGEOFF
Lloh43:
	adrp	x2, l_.str.14@PAGE
Lloh44:
	add	x2, x2, l_.str.14@PAGEOFF
	bl	_symlinkat
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldur	x8, [x29, #-24]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_abspath,4,2                    ; @abspath
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/testdir/d1/f1"

l_.str.1:                               ; @.str.1
	.asciz	"testdir"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_dirfd,4,2                      ; @dirfd
l_.str.2:                               ; @.str.2
	.asciz	"d1"

l_.str.3:                               ; @.str.3
	.asciz	"d1/d2"

l_.str.4:                               ; @.str.4
	.asciz	"d1/d2/d3"

l_.str.5:                               ; @.str.5
	.asciz	"d1/f1"

l_.str.6:                               ; @.str.6
	.asciz	"d1/d2/f2"

l_.str.7:                               ; @.str.7
	.asciz	"d1/d2/d3/f3"

l_.str.8:                               ; @.str.8
	.asciz	"l3"

l_.str.9:                               ; @.str.9
	.asciz	"../testdir/d1"

l_.str.10:                              ; @.str.10
	.asciz	"lup"

l_.str.11:                              ; @.str.11
	.asciz	"../.."

l_.str.12:                              ; @.str.12
	.asciz	"d1/d2/d3/ld1"

l_.str.13:                              ; @.str.13
	.asciz	"../../f1"

l_.str.14:                              ; @.str.14
	.asciz	"d1/d2/d3/lf1"

	.no_dead_strip	_prepare_dotdot_tests
.subsections_via_symbols
