	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyctl_revoke_key              ## -- Begin function keyctl_revoke_key
	.p2align	4, 0x90
_keyctl_revoke_key:                     ## @keyctl_revoke_key
	.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
	movl	%edi, %r14d
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lookup_user_key
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_PTR_ERR
	movq	_EACCES@GOTPCREL(%rip), %rcx
	movq	%rax, %rdx
	addq	(%rcx), %rdx
	jne	LBB0_4
## %bb.2:
	movq	_KEY_SETATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_lookup_user_key
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movl	%ebx, %edi
	callq	_key_ref_to_ptr
	movl	%eax, %edi
	callq	_key_revoke
	movl	%ebx, %edi
	callq	_key_ref_put
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_EACCES,8,3                     ## @EACCES
	.comm	_KEY_SETATTR,4,2                ## @KEY_SETATTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyctl_revoke_key              ; -- Begin function keyctl_revoke_key
	.p2align	2
_keyctl_revoke_key:                     ; @keyctl_revoke_key
	.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	x20, x0
Lloh0:
	adrp	x8, _KEY_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lookup_user_key
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
Lloh3:
	adrp	x8, _EACCES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmn	x0, x8
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _KEY_SETATTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_SETATTR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_lookup_user_key
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	mov	x0, x19
	bl	_key_ref_to_ptr
	bl	_key_revoke
	mov	x0, x19
	bl	_key_ref_put
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_EACCES,8,3                     ; @EACCES
	.comm	_KEY_SETATTR,4,2                ; @KEY_SETATTR
.subsections_via_symbols
