	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ijkio_manager_destroy          ## -- Begin function ijkio_manager_destroy
	.p2align	4, 0x90
_ijkio_manager_destroy:                 ## @ijkio_manager_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_10
## %bb.1:
	leaq	8(%rbx), %r14
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.2:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	24(%rax), %rdi
	movq	_ijkio_manager_save_tree_to_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_ijk_map_traversal_handle
	movq	%r15, %rdi
	callq	_fclose
LBB0_4:
	movq	(%r14), %rax
	movq	24(%rax), %rdi
	movq	_tree_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_ijk_map_traversal_handle
	movq	(%r14), %rax
	movq	24(%rax), %rdi
	callq	_ijk_map_destroy
	movq	(%r14), %rax
	movq	$0, 24(%rax)
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_IJK_IMMEDIATE_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ijk_threadpool_destroy
	movq	(%r14), %rax
LBB0_6:
	movl	12(%rax), %edi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_9
## %bb.8:
	callq	_close
LBB0_9:
	movq	(%r14), %rdi
	addq	$8, %rdi
	callq	_pthread_mutex_destroy
	movq	%r14, %rdi
	callq	_ijkio_application_closep
LBB0_10:
	movq	(%rbx), %rdi
	callq	_ijk_map_destroy
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_ijkio_manager_save_tree_to_file,4,2 ## @ijkio_manager_save_tree_to_file
	.comm	_tree_destroy,4,2               ## @tree_destroy
	.comm	_IJK_IMMEDIATE_SHUTDOWN,4,2     ## @IJK_IMMEDIATE_SHUTDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ijkio_manager_destroy          ; -- Begin function ijkio_manager_destroy
	.p2align	2
_ijkio_manager_destroy:                 ; @ijkio_manager_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
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_10
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x0, [x8, #24]
Lloh2:
	adrp	x8, _ijkio_manager_save_tree_to_file@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ijkio_manager_save_tree_to_file@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_ijk_map_traversal_handle
	mov	x0, x21
	bl	_fclose
LBB0_4:
	ldr	x8, [x20]
	ldr	x0, [x8, #24]
Lloh5:
	adrp	x8, _tree_destroy@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tree_destroy@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_ijk_map_traversal_handle
	ldr	x8, [x20]
	ldr	x0, [x8, #24]
	bl	_ijk_map_destroy
	ldr	x8, [x20]
	str	xzr, [x8, #24]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _IJK_IMMEDIATE_SHUTDOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IJK_IMMEDIATE_SHUTDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ijk_threadpool_destroy
	ldr	x8, [x20]
LBB0_6:
	ldr	w0, [x8, #12]
	bl	_strlen
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x20]
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_9
; %bb.8:
	bl	_close
LBB0_9:
	ldr	x8, [x20]
	add	x0, x8, #8
	bl	_pthread_mutex_destroy
	mov	x0, x20
	bl	_ijkio_application_closep
LBB0_10:
	ldr	x0, [x19]
	bl	_ijk_map_destroy
	str	xzr, [x19]
	mov	x0, x19
	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	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_ijkio_manager_save_tree_to_file,4,2 ; @ijkio_manager_save_tree_to_file
	.comm	_tree_destroy,4,2               ; @tree_destroy
	.comm	_IJK_IMMEDIATE_SHUTDOWN,4,2     ; @IJK_IMMEDIATE_SHUTDOWN
.subsections_via_symbols
