	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_instantiation_keyring
_get_instantiation_keyring:             ## @get_instantiation_keyring
	.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	$0, (%rdx)
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r14
	jle	LBB0_5
## %bb.2:
	movq	_KEY_LOOKUP_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lookup_user_key
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_IS_ERR
	movl	%ebx, %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	_KEY_SPEC_REQKEY_AUTH_KEY@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	callq	_key_ref_to_ptr
	jmp	LBB0_12
LBB0_8:
	movq	_KEY_SPEC_REQUESTOR_KEYRING@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_11
## %bb.9:
	movq	_ENOKEY@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_14
LBB0_11:
	movl	(%rsi), %edi
	callq	_key_get
LBB0_12:
	movq	%rax, (%r14)
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_LOOKUP_CREATE,4,2          ## @KEY_LOOKUP_CREATE
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_KEY_SPEC_REQKEY_AUTH_KEY,8,3   ## @KEY_SPEC_REQKEY_AUTH_KEY
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_KEY_SPEC_REQUESTOR_KEYRING,8,3 ## @KEY_SPEC_REQUESTOR_KEYRING
	.comm	_ENOKEY,8,3                     ## @ENOKEY
	.no_dead_strip	_get_instantiation_keyring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_instantiation_keyring
_get_instantiation_keyring:             ; @get_instantiation_keyring
	.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
	str	xzr, [x2]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x2
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _KEY_LOOKUP_CREATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_LOOKUP_CREATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _KEY_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_lookup_user_key
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _KEY_SPEC_REQKEY_AUTH_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_SPEC_REQKEY_AUTH_KEY@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_key_ref_to_ptr
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x8, _KEY_SPEC_REQUESTOR_KEYRING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_SPEC_REQUESTOR_KEYRING@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_10
; %bb.8:
Lloh14:
	adrp	x8, _ENOKEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOKEY@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_12
LBB0_10:
	ldr	w0, [x1]
	bl	_key_get
LBB0_11:
	mov	x8, x0
	mov	x0, #0
	str	x8, [x19]
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_LOOKUP_CREATE,4,2          ; @KEY_LOOKUP_CREATE
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_KEY_SPEC_REQKEY_AUTH_KEY,8,3   ; @KEY_SPEC_REQKEY_AUTH_KEY
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_KEY_SPEC_REQUESTOR_KEYRING,8,3 ; @KEY_SPEC_REQUESTOR_KEYRING
	.comm	_ENOKEY,8,3                     ; @ENOKEY
	.no_dead_strip	_get_instantiation_keyring
.subsections_via_symbols
