	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tncs_deinit                    ## -- Begin function tncs_deinit
	.p2align	4, 0x90
_tncs_deinit:                           ## @tncs_deinit
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	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, %r15
	movq	_TNC_MAX_IMV_ID@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_os_free
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	_tncs_global_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.5:
	cmpq	%r15, %rcx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r15, %rcx
	jne	LBB0_7
	jmp	LBB0_9
LBB0_11:
	retq
LBB0_6:
	xorl	%edx, %edx
LBB0_9:
	leaq	8(%rdx), %rcx
	testq	%rdx, %rdx
	movq	8(%r15), %rdx
	cmoveq	%rax, %rcx
	movq	%rdx, (%rcx)
LBB0_10:
	movq	(%r15), %rdi
	callq	_os_free
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TNC_MAX_IMV_ID,4,2             ## @TNC_MAX_IMV_ID
	.comm	_tncs_global_data,8,3           ## @tncs_global_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tncs_deinit                    ; -- Begin function tncs_deinit
	.p2align	2
_tncs_deinit:                           ; @tncs_deinit
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_8
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x0
Lloh0:
	adrp	x20, _TNC_MAX_IMV_ID@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TNC_MAX_IMV_ID@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x21, lsl #3]
	bl	_os_free
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
Lloh2:
	adrp	x8, _tncs_global_data@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tncs_global_data@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_11
; %bb.5:
	cmp	x9, x19
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x9, x19
	b.ne	LBB0_6
	b	LBB0_10
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
LBB0_9:
	.cfi_restore_state
	mov	x10, #0
LBB0_10:
	ldr	x9, [x19, #8]
	add	x11, x10, #8
	cmp	x10, #0
	csel	x8, x8, x11, eq
	str	x9, [x8]
LBB0_11:
	ldr	x0, [x19]
	bl	_os_free
	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	_os_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TNC_MAX_IMV_ID,4,2             ; @TNC_MAX_IMV_ID
	.comm	_tncs_global_data,8,3           ; @tncs_global_data
.subsections_via_symbols
