	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function basic
_basic:                                 ## @basic
	.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
	movl	$8216, %eax                     ## imm = 0x2018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mountunion
	movq	_TFILE@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_xput_tfile
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_xread_tfile
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_2:
	leaq	L_.str.1(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_xput_tfile
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xread_tfile
	movq	_ENOENT@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_atf_tc_fail
LBB0_4:
	xorl	%eax, %eax
	callq	_FSTEST_ENTER
	movq	(%r13), %rdi
	callq	_rump_sys_unlink
	movl	%eax, %edi
	callq	_RL
	movl	(%r14), %ebx
	movq	(%r13), %rdi
	leaq	-8256(%rbp), %rsi
	callq	_rump_sys_stat
	xorl	%esi, %esi
	cmpl	$-1, %eax
	sete	%sil
	movl	%ebx, %edi
	callq	_ATF_REQUIRE_ERRNO
	xorl	%eax, %eax
	callq	_FSTEST_EXIT
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, -8248(%rbp)               ## 8-byte Spill
	movq	%r12, %rdi
	callq	_rump_sys_open
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_RL
	leaq	-8240(%rbp), %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_rump_sys_getdents
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_RL
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.5:
	movslq	%r12d, %rax
	leaq	(%rax,%rbp), %r14
	addq	$-8240, %r14                    ## imm = 0xDFD0
	leaq	-8232(%rbp), %rax
	movq	_DT_WHT@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	__DIRENT_NEXT
	movq	%rax, %rbx
	addq	$8, %rax
	cmpq	%rbx, %r14
	jbe	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edi
	movq	(%r13), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_atf_tc_fail
	jmp	LBB0_9
LBB0_10:
	movl	%r15d, %edi
	callq	_rump_sys_close
	movl	%eax, %edi
	callq	_RL
	movq	-8248(%rbp), %rdi               ## 8-byte Reload
	xorl	%esi, %esi
	callq	_rump_sys_unmount
	movl	%eax, %edi
	callq	_RL
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_TFILE,8,3                      ## @TFILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"union compare failed: %d (%s)"

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

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"invisibility failed: %d (%s)"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_DT_WHT,8,3                     ## @DT_WHT
L_.str.3:                               ## @.str.3
	.asciz	"removed file non-white-outed"

	.no_dead_strip	_basic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function basic
_basic:                                 ; @basic
	.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
	mov	w9, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #16
	mov	x19, sp
	mov	x20, x1
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh5:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x0, x1
	mov	x1, x21
	bl	_mountunion
Lloh10:
	adrp	x24, _TFILE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _TFILE@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x21
	bl	_xput_tfile
	ldr	x1, [x24]
	mov	x0, x20
	bl	_xread_tfile
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #-16]!
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_atf_tc_fail
	add	sp, sp, #16
LBB0_2:
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_xput_tfile
	mov	x0, x21
	mov	x1, x22
	bl	_xread_tfile
Lloh16:
	adrp	x22, _ENOENT@GOTPAGE
Lloh17:
	ldr	x22, [x22, _ENOENT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x21, x0
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #-16]!
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail
	add	sp, sp, #16
LBB0_4:
	bl	_FSTEST_ENTER
	ldr	x0, [x24]
	bl	_rump_sys_unlink
	bl	_RL
	ldr	w21, [x22]
	ldr	x0, [x24]
	add	x1, x19, #0
	bl	_rump_sys_stat
	cmn	w0, #1
	cset	w1, eq
	mov	x0, x21
	bl	_ATF_REQUIRE_ERRNO
	bl	_FSTEST_EXIT
Lloh20:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rump_sys_open
	mov	x21, x0
	bl	_RL
	add	x22, x19, #8
	add	x1, x19, #8
	mov	x0, x21
	mov	w2, #8192
	bl	_rump_sys_getdents
	mov	x23, x0
	bl	_RL
	cmp	w23, #1
	b.lt	LBB0_10
; %bb.5:
	add	x25, x22, w23, sxtw
	add	x8, x22, #8
Lloh23:
	adrp	x26, _DT_WHT@GOTPAGE
Lloh24:
	ldr	x26, [x26, _DT_WHT@GOTPAGEOFF]
Lloh25:
	adrp	x23, l_.str.3@PAGE
Lloh26:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	__DIRENT_NEXT
	mov	x22, x0
	add	x8, x0, #8
	cmp	x25, x0
	b.ls	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8]
	ldr	x1, [x24]
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_atf_tc_fail
	b	LBB0_6
LBB0_10:
	mov	x0, x21
	bl	_rump_sys_close
	bl	_RL
	mov	x0, x20
	mov	w1, #0
	bl	_rump_sys_unmount
	bl	_RL
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_TFILE,8,3                      ; @TFILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"union compare failed: %d (%s)"

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

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"invisibility failed: %d (%s)"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_DT_WHT,8,3                     ; @DT_WHT
l_.str.3:                               ; @.str.3
	.asciz	"removed file non-white-outed"

	.no_dead_strip	_basic
.subsections_via_symbols
