	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_dirtest_teardown           ## -- Begin function mrb_dirtest_teardown
	.p2align	4, 0x90
_mrb_dirtest_teardown:                  ## @mrb_dirtest_teardown
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_mrb_intern_cstr
	movq	%rbx, %rdi
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mrb_cv_get
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mrb_str_to_cstr
	movq	%rax, %rdi
	callq	_opendir
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %r12
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	callq	_rmdir
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_E_RUNTIME_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r14), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mrb_str_new_cstr
	movq	%r14, %rdi
	movl	%r13d, %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %ecx
	callq	_mrb_raisef
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_closedir
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mrb_intern_cstr
	movq	%rbx, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mrb_cv_get
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mrb_str_to_cstr
	movq	%rax, %rdi
	callq	_chdir
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movq	_E_RUNTIME_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_mrb_raisef
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mrb_intern_cstr
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mrb_cv_get
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mrb_str_to_cstr
	movq	%rax, %rdi
	callq	_rmdir
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:
	movq	_E_RUNTIME_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_mrb_raisef
LBB0_9:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_true_value                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sandbox"

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

L_.str.2:                               ## @.str.2
	.asciz	".."

	.comm	_E_RUNTIME_ERROR,4,2            ## @E_RUNTIME_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"rmdir(%S) failed"

L_.str.4:                               ## @.str.4
	.asciz	"pwd"

L_.str.5:                               ## @.str.5
	.asciz	"chdir(%S) failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_dirtest_teardown           ; -- Begin function mrb_dirtest_teardown
	.p2align	2
_mrb_dirtest_teardown:                  ; @mrb_dirtest_teardown
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mrb_intern_cstr
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_cv_get
	mov	x1, x0
	mov	x0, x19
	bl	_mrb_str_to_cstr
	bl	_opendir
	mov	x21, x0
	bl	_readdir
Lloh2:
	adrp	x27, _E_RUNTIME_ERROR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _E_RUNTIME_ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x25, x0
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh6:
	adrp	x23, l_.str.2@PAGE
Lloh7:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh8:
	adrp	x24, l_.str.3@PAGE
Lloh9:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_readdir
	mov	x25, x0
	cbz	x0, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x25]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x25]
	bl	_rmdir
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w26, [x27]
	ldr	x1, [x25]
	mov	x0, x19
	bl	_mrb_str_new_cstr
	mov	x3, x0
	mov	x0, x19
	mov	x1, x26
	mov	x2, x24
	bl	_mrb_raisef
	b	LBB0_2
LBB0_7:
	mov	x0, x21
	bl	_closedir
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mrb_intern_cstr
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_cv_get
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mrb_str_to_cstr
	bl	_chdir
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
	ldr	w1, [x27]
Lloh12:
	adrp	x2, l_.str.5@PAGE
Lloh13:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_mrb_raisef
LBB0_9:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mrb_intern_cstr
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_cv_get
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_to_cstr
	bl	_rmdir
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	w1, [x27]
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_mrb_raisef
LBB0_11:
	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
	b	_mrb_true_value
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sandbox"

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

l_.str.2:                               ; @.str.2
	.asciz	".."

	.comm	_E_RUNTIME_ERROR,4,2            ; @E_RUNTIME_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"rmdir(%S) failed"

l_.str.4:                               ; @.str.4
	.asciz	"pwd"

l_.str.5:                               ; @.str.5
	.asciz	"chdir(%S) failed"

.subsections_via_symbols
