	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uni_fini
_uni_fini:                              ## @uni_fini
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_UNIMEM_TYPES@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	movq	_nguni_freemem@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	_UNIMEM_TYPES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	movq	_nguni_freemem@GOTPCREL(%rip), %r14
	jae	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_4 Depth 2
	leaq	(,%r12,4), %r15
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	_M_UNI@GOTPCREL(%rip), %r13
	je	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_nguni_usedmem@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	leaq	L_.str(%rip), %r14
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	_unimem_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rsi
	movl	16(%rbx), %edx
	movq	(%rbx), %rcx
	movl	8(%rbx), %r8d
	movq	%r14, %rdi
	callq	_printf
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	_nguni_usedmem@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	_nguni_unilist_mtx@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_destroy                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIMEM_TYPES,8,3               ## @UNIMEM_TYPES
	.comm	_nguni_freemem,8,3              ## @nguni_freemem
	.comm	_link,4,2                       ## @link
	.comm	_M_UNI,4,2                      ## @M_UNI
	.comm	_nguni_usedmem,8,3              ## @nguni_usedmem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ng_uni: %s in use: %p (%s,%u)\n"

	.comm	_unimem_names,8,3               ## @unimem_names
	.comm	_nguni_unilist_mtx,4,2          ## @nguni_unilist_mtx
	.no_dead_strip	_uni_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uni_fini
_uni_fini:                              ; @uni_fini
	.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
Lloh0:
	adrp	x21, _UNIMEM_TYPES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UNIMEM_TYPES@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x22, #0
Lloh2:
	adrp	x23, _nguni_freemem@GOTPAGE
Lloh3:
	ldr	x23, [x23, _nguni_freemem@GOTPAGEOFF]
Lloh4:
	adrp	x24, _nguni_usedmem@GOTPAGE
Lloh5:
	ldr	x24, [x24, _nguni_usedmem@GOTPAGEOFF]
Lloh6:
	adrp	x25, _link@GOTPAGE
Lloh7:
	ldr	x25, [x25, _link@GOTPAGEOFF]
Lloh8:
	adrp	x26, _unimem_names@GOTPAGE
Lloh9:
	ldr	x26, [x26, _unimem_names@GOTPAGEOFF]
Lloh10:
	adrp	x19, l_.str@PAGE
Lloh11:
	add	x19, x19, l_.str@PAGEOFF
Lloh12:
	adrp	x27, _M_UNI@GOTPAGE
Lloh13:
	ldr	x27, [x27, _M_UNI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x23]
	add	x0, x8, x22, lsl #2
	bl	_LIST_FIRST
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_LIST_REMOVE
	ldr	w1, [x27]
	mov	x0, x20
	bl	_free
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w1, [x25]
	mov	x0, x20
	bl	_LIST_REMOVE
	ldr	x8, [x26]
	ldr	x1, [x8, x22, lsl #3]
	ldr	w2, [x20, #16]
	ldr	x3, [x20]
	ldr	w4, [x20, #8]
	mov	x0, x19
	bl	_printf
	ldr	w1, [x27]
	mov	x0, x20
	bl	_free
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	add	x0, x8, x22, lsl #2
	bl	_LIST_FIRST
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_7:
Lloh14:
	adrp	x0, _nguni_unilist_mtx@GOTPAGE
Lloh15:
	ldr	x0, [x0, _nguni_unilist_mtx@GOTPAGEOFF]
	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	_mtx_destroy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIMEM_TYPES,8,3               ; @UNIMEM_TYPES
	.comm	_nguni_freemem,8,3              ; @nguni_freemem
	.comm	_link,4,2                       ; @link
	.comm	_M_UNI,4,2                      ; @M_UNI
	.comm	_nguni_usedmem,8,3              ; @nguni_usedmem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ng_uni: %s in use: %p (%s,%u)\n"

	.comm	_unimem_names,8,3               ; @unimem_names
	.comm	_nguni_unilist_mtx,4,2          ; @nguni_unilist_mtx
	.no_dead_strip	_uni_fini
.subsections_via_symbols
