	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_fini
_ng_fini:                               ## @ng_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ngtype_list@GOTPCREL(%rip), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_link@GOTPCREL(%rip), %r15
	movq	_ngtype_list@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	_csock_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_fd_deselect
LBB0_5:
	movq	_csock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_close
	movq	_dsock_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_fd_deselect
LBB0_7:
	movq	_dsock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_close
	movq	_snmp_nodename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_free
	movq	_reg_index@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_or_unregister
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ngtype_list,4,2                ## @ngtype_list
	.comm	_link,4,2                       ## @link
	.comm	_csock_fd,8,3                   ## @csock_fd
	.comm	_csock,4,2                      ## @csock
	.comm	_dsock_fd,8,3                   ## @dsock_fd
	.comm	_dsock,4,2                      ## @dsock
	.comm	_snmp_nodename,8,3              ## @snmp_nodename
	.comm	_reg_index,4,2                  ## @reg_index
	.no_dead_strip	_ng_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_fini
_ng_fini:                               ; @ng_fini
	.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
Lloh0:
	adrp	x0, _ngtype_list@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ngtype_list@GOTPAGEOFF]
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x21, _link@GOTPAGE
Lloh3:
	ldr	x21, [x21, _link@GOTPAGEOFF]
Lloh4:
	adrp	x19, _ngtype_list@GOTPAGE
Lloh5:
	ldr	x19, [x19, _ngtype_list@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_TAILQ_FIRST
	mov	x20, x0
	cbnz	x0, LBB0_2
LBB0_3:
Lloh6:
	adrp	x8, _csock_fd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _csock_fd@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_fd_deselect
LBB0_5:
Lloh9:
	adrp	x8, _csock@GOTPAGE
Lloh10:
	ldr	x8, [x8, _csock@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_close
Lloh12:
	adrp	x8, _dsock_fd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dsock_fd@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_fd_deselect
LBB0_7:
Lloh15:
	adrp	x8, _dsock@GOTPAGE
Lloh16:
	ldr	x8, [x8, _dsock@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_close
Lloh18:
	adrp	x8, _snmp_nodename@GOTPAGE
Lloh19:
	ldr	x8, [x8, _snmp_nodename@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	bl	_free
Lloh21:
	adrp	x8, _reg_index@GOTPAGE
Lloh22:
	ldr	x8, [x8, _reg_index@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_or_unregister
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ngtype_list,4,2                ; @ngtype_list
	.comm	_link,4,2                       ; @link
	.comm	_csock_fd,8,3                   ; @csock_fd
	.comm	_csock,4,2                      ; @csock
	.comm	_dsock_fd,8,3                   ; @dsock_fd
	.comm	_dsock,4,2                      ; @dsock
	.comm	_snmp_nodename,8,3              ; @snmp_nodename
	.comm	_reg_index,4,2                  ; @reg_index
	.no_dead_strip	_ng_fini
.subsections_via_symbols
