	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_unregister               ## -- Begin function proto_unregister
	.p2align	4, 0x90
_proto_unregister:                      ## @proto_unregister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_proto_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock
	movq	%rbx, %rdi
	callq	_release_proto_idx
	leaq	24(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_write_unlock
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_kmem_cache_destroy
	movq	$0, 16(%rbx)
LBB0_2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_kmem_cache_destroy
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	callq	_kfree
	movq	8(%rbx), %rax
	movq	$0, (%rax)
LBB0_5:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_kmem_cache_destroy
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_kfree
	movq	(%rbx), %rax
	movq	$0, (%rax)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_proto_list_lock,4,2            ## @proto_list_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_unregister               ; -- Begin function proto_unregister
	.p2align	2
_proto_unregister:                      ; @proto_unregister
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _proto_list_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _proto_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_write_lock
	mov	x0, x19
	bl	_release_proto_idx
	add	x0, x19, #24
	bl	_list_del
	mov	x0, x20
	bl	_write_unlock
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_kmem_cache_destroy
	str	xzr, [x19, #16]
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_kmem_cache_destroy
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
	bl	_kfree
	ldr	x8, [x19, #8]
	str	xzr, [x8]
LBB0_5:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_kmem_cache_destroy
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_proto_list_lock,4,2            ; @proto_list_lock
.subsections_via_symbols
