	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyctl_get_keyring_ID          ## -- Begin function keyctl_get_keyring_ID
	.p2align	4, 0x90
_keyctl_get_keyring_ID:                 ## @keyctl_get_keyring_ID
	.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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_KEY_LOOKUP_CREATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	_KEY_SEARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lookup_user_key
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movl	%ebx, %edi
	callq	_key_ref_to_ptr
	movq	(%rax), %r14
	movl	%ebx, %edi
	callq	_key_ref_put
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_LOOKUP_CREATE,8,3          ## @KEY_LOOKUP_CREATE
	.comm	_KEY_SEARCH,4,2                 ## @KEY_SEARCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keyctl_get_keyring_ID          ; -- Begin function keyctl_get_keyring_ID
	.p2align	2
_keyctl_get_keyring_ID:                 ; @keyctl_get_keyring_ID
	.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
Lloh0:
	adrp	x8, _KEY_LOOKUP_CREATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_LOOKUP_CREATE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w1, #0
	csel	x1, xzr, x8, eq
Lloh3:
	adrp	x8, _KEY_SEARCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_SEARCH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_lookup_user_key
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
	mov	x0, x19
	bl	_key_ref_to_ptr
	ldr	x20, [x0]
	mov	x0, x19
	bl	_key_ref_put
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_LOOKUP_CREATE,8,3          ; @KEY_LOOKUP_CREATE
	.comm	_KEY_SEARCH,4,2                 ; @KEY_SEARCH
.subsections_via_symbols
