	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_outcheck_ctx_destroy           ## -- Begin function outcheck_ctx_destroy
	.p2align	4, 0x90
_outcheck_ctx_destroy:                  ## @outcheck_ctx_destroy
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	cmpl	$1, (%rax)
	jne	LBB0_2
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %r12
	movl	4(%r14), %edi
	callq	_rmdir
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_6
## %bb.4:
	movq	_ENOTEMPTY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_6
## %bb.5:
	movl	4(%r14), %r15d
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_event_log_error
LBB0_6:
	cmpq	$0, (%r12)
	jne	LBB0_8
## %bb.7:
	movl	4(%r14), %edi
	callq	_hcfree
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_ENOTEMPTY,8,3                  ## @ENOTEMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_outcheck_ctx_destroy           ; -- Begin function outcheck_ctx_destroy
	.p2align	2
_outcheck_ctx_destroy:                  ; @outcheck_ctx_destroy
	.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
	ldr	x19, [x0, #8]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_3
LBB0_2:
	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
	ret
LBB0_3:
	ldr	x22, [x20]
	ldr	w0, [x19, #4]
	bl	_rmdir
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ENOTEMPTY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENOTEMPTY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_6
; %bb.5:
	ldr	w21, [x19, #4]
	bl	_strerror
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_event_log_error
LBB0_6:
	ldr	x8, [x22]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19, #4]
	bl	_hcfree
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	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	_memset
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_ENOTEMPTY,8,3                  ; @ENOTEMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s"

.subsections_via_symbols
