	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_install_process_keyring_to_cred ## -- Begin function install_process_keyring_to_cred
	.p2align	4, 0x90
_install_process_keyring_to_cred:       ## @install_process_keyring_to_cred
	.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), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movl	8(%rdi), %edx
	movl	12(%rdi), %esi
	movq	_KEY_ALLOC_QUOTA_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rcx
	xorl	%r9d, %r9d
	callq	_keyring_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	(%rbx), %rdi
	callq	_spin_lock_irq
	movq	(%rbx), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.5:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, 8(%rdi)
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_6:
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	callq	_key_put
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_pid"

	.comm	_KEY_ALLOC_QUOTA_OVERRUN,4,2    ## @KEY_ALLOC_QUOTA_OVERRUN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_install_process_keyring_to_cred ; -- Begin function install_process_keyring_to_cred
	.p2align	2
_install_process_keyring_to_cred:       ; @install_process_keyring_to_cred
	.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]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x0
	ldp	w2, w1, [x0, #8]
Lloh3:
	adrp	x8, _KEY_ALLOC_QUOTA_OVERRUN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_ALLOC_QUOTA_OVERRUN@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	mov	x5, #0
	bl	_keyring_alloc
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	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_5:
	ldr	x0, [x20]
	bl	_spin_lock_irq
	ldr	x0, [x20]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _EEXIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_7:
	mov	w20, #0
	str	x19, [x0, #8]
	mov	x19, #0
LBB0_8:
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_key_put
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_pid"

	.comm	_KEY_ALLOC_QUOTA_OVERRUN,4,2    ; @KEY_ALLOC_QUOTA_OVERRUN
.subsections_via_symbols
