	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyring_destroy
_keyring_destroy:                       ## @keyring_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_5
## %bb.1:
	movq	_keyring_name_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.2:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_list_del
LBB0_4:
	movq	_keyring_name_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock
LBB0_5:
	movl	(%rbx), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r14
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.7:
	incq	%rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	8(%r14), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_key_put
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_keyring_name_lock,4,2          ## @keyring_name_lock
	.no_dead_strip	_keyring_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyring_destroy
_keyring_destroy:                       ; @keyring_destroy
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x0, _keyring_name_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _keyring_name_lock@GOTPAGEOFF]
	bl	_write_lock
	mov	x20, x19
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_list_empty
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_list_del
LBB0_4:
Lloh2:
	adrp	x0, _keyring_name_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _keyring_name_lock@GOTPAGEOFF]
	bl	_write_unlock
LBB0_5:
	ldr	w0, [x19]
	bl	_rcu_dereference
	cbz	x0, LBB0_10
; %bb.6:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	add	x20, x8, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w20, #2
	ldr	x9, [x19, #8]
	ldr	w0, [x9, w8, uxtw #2]
	bl	_key_put
	sub	x20, x20, #1
	cmp	x20, #1
	b.hi	LBB0_8
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_keyring_name_lock,4,2          ; @keyring_name_lock
	.no_dead_strip	_keyring_destroy
.subsections_via_symbols
