	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_tmpdir
_cleanup_tmpdir:                        ## @cleanup_tmpdir
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_atf_fs_unlink
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_atf_error_is
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%ebx, %edi
	callq	_atf_libc_error_code
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	jmp	LBB0_4
LBB0_5:
	movl	%ebx, %edi
	callq	_atf_is_error
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_INV
	jmp	LBB0_6
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_INV
	movl	%ebx, %edi
	callq	_atf_error_free
LBB0_6:
	movq	%r15, %rdi
	callq	_atf_fs_unlink
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_atf_is_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_atf_error_is
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	%ebx, %edi
	callq	_atf_libc_error_code
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	jmp	LBB0_10
LBB0_11:
	movl	%ebx, %edi
	callq	_atf_is_error
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_INV
	jmp	LBB0_12
LBB0_8:
	xorl	%edi, %edi
LBB0_10:
	callq	_INV
	movl	%ebx, %edi
	callq	_atf_error_free
LBB0_12:
	movq	%r14, %rdi
	callq	_atf_fs_rmdir
	movl	%eax, %edi
	callq	_atf_is_error
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_INV                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"libc"

	.comm	_ENOENT,8,3                     ## @ENOENT
	.no_dead_strip	_cleanup_tmpdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_tmpdir
_cleanup_tmpdir:                        ; @cleanup_tmpdir
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_atf_fs_unlink
	mov	x21, x0
	bl	_atf_is_error
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_atf_error_is
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_atf_libc_error_code
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
LBB0_3:
	bl	_INV
	mov	x0, x21
	bl	_atf_error_free
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_atf_is_error
	cmp	x0, #0
	cset	w0, eq
	bl	_INV
LBB0_5:
	mov	x0, x20
	bl	_atf_fs_unlink
	mov	x20, x0
	bl	_atf_is_error
	cbz	x0, LBB0_9
; %bb.6:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_atf_error_is
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_atf_libc_error_code
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
LBB0_8:
	bl	_INV
	mov	x0, x20
	bl	_atf_error_free
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_atf_is_error
	cmp	x0, #0
	cset	w0, eq
	bl	_INV
LBB0_10:
	mov	x0, x19
	bl	_atf_fs_rmdir
	bl	_atf_is_error
	cmp	x0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_INV
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"libc"

	.comm	_ENOENT,8,3                     ; @ENOENT
	.no_dead_strip	_cleanup_tmpdir
.subsections_via_symbols
