	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyring_clear                  ## -- Begin function keyring_clear
	.p2align	4, 0x90
_keyring_clear:                         ## @keyring_clear
	.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	8(%rdi), %rax
	cmpq	_key_type_keyring@GOTPCREL(%rip), %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	%rdi, %r14
	callq	_down_write
	movq	%r14, %rdi
	callq	_rcu_dereference_locked_keyring
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_key_payload_reserve
	movl	4(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	movq	%r14, %rdi
	callq	_up_write
	movq	_keyring_clear_rcu_disposal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_call_rcu
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_up_write
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.comm	_key_type_keyring,4,2           ## @key_type_keyring
	.comm	_keyring_clear_rcu_disposal,4,2 ## @keyring_clear_rcu_disposal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyring_clear                  ; -- Begin function keyring_clear
	.p2align	2
_keyring_clear:                         ; @keyring_clear
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _key_type_keyring@GOTPAGE
Lloh1:
	ldr	x9, [x9, _key_type_keyring@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	bl	_down_write
	mov	x0, x19
	bl	_rcu_dereference_locked_keyring
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #4
	bl	_key_payload_reserve
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_rcu_assign_pointer
	mov	x0, x19
	bl	_up_write
Lloh5:
	adrp	x8, _keyring_clear_rcu_disposal@GOTPAGE
Lloh6:
	ldr	x8, [x8, _keyring_clear_rcu_disposal@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_call_rcu
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_up_write
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.comm	_key_type_keyring,4,2           ; @key_type_keyring
	.comm	_keyring_clear_rcu_disposal,4,2 ; @keyring_clear_rcu_disposal
.subsections_via_symbols
