	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_install_user_keyrings          ## -- Begin function install_user_keyrings
	.p2align	4, 0x90
_install_user_keyrings:                 ## @install_user_keyrings
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_current_cred
	movq	%rax, %r14
	movq	(%rax), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_kenter
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_4:
	movq	_key_user_keyring_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_5
LBB0_13:
	movq	_key_user_keyring_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	L_.str.4(%rip), %rdi
LBB0_3:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_kleave
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_sprintf
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_find_keyring_by_name
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%rbx), %esi
	movq	_KEY_ALLOC_IN_QUOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %rdi
	movl	$-1, %edx
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	callq	_keyring_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_8:
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_sprintf
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_find_keyring_by_name
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	(%rbx), %esi
	movq	_KEY_ALLOC_IN_QUOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %rdi
	movl	$-1, %edx
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	callq	_keyring_alloc
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
LBB0_15:
	movq	%r15, %rdi
	callq	_key_put
LBB0_16:
	movq	_key_user_keyring_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_kleave
	jmp	LBB0_17
LBB0_11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_key_link
	testl	%eax, %eax
	js	LBB0_14
LBB0_12:
	movq	%r15, 16(%rbx)
	movq	%r12, 8(%rbx)
	jmp	LBB0_13
LBB0_14:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_key_put
	jmp	LBB0_15
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p{%u}"

L_.str.1:                               ## @.str.1
	.asciz	" = 0 [exist]"

	.comm	_key_user_keyring_mutex,4,2     ## @key_user_keyring_mutex
L_.str.2:                               ## @.str.2
	.asciz	"_uid.%u"

	.comm	_KEY_ALLOC_IN_QUOTA,4,2         ## @KEY_ALLOC_IN_QUOTA
L_.str.3:                               ## @.str.3
	.asciz	"_uid_ses.%u"

L_.str.4:                               ## @.str.4
	.asciz	" = 0"

L_.str.5:                               ## @.str.5
	.asciz	" = %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_install_user_keyrings          ; -- Begin function install_user_keyrings
	.p2align	2
_install_user_keyrings:                 ; @install_user_keyrings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_current_cred
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w2, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_kenter
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x0, _key_user_keyring_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _key_user_keyring_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
LBB0_4:
Lloh9:
	adrp	x0, _key_user_keyring_mutex@GOTPAGE
Lloh10:
	ldr	x0, [x0, _key_user_keyring_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_5:
	bl	_kleave
	mov	w20, #0
LBB0_6:
	ldr	x8, [sp, #40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.7:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	w2, [x19]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #20
	bl	_sprintf
	add	x0, sp, #20
	mov	w1, #1
	bl	_find_keyring_by_name
	mov	x21, x0
	bl	_IS_ERR
Lloh18:
	adrp	x23, _KEY_ALLOC_IN_QUOTA@GOTPAGE
Lloh19:
	ldr	x23, [x23, _KEY_ALLOC_IN_QUOTA@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w1, [x19]
	ldr	w4, [x23]
	add	x0, sp, #20
	mov	w2, #-1
	mov	x3, x20
	mov	x5, #0
	bl	_keyring_alloc
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_15
LBB0_11:
	ldr	w2, [x19]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #20
	bl	_sprintf
	add	x0, sp, #20
	mov	w1, #1
	bl	_find_keyring_by_name
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.12:
	ldr	w1, [x19]
	ldr	w4, [x23]
	add	x0, sp, #20
	mov	w2, #-1
	mov	x3, x20
	mov	x5, #0
	bl	_keyring_alloc
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.13:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x20, x0
LBB0_14:
	mov	x0, x21
	bl	_key_put
LBB0_15:
Lloh22:
	adrp	x0, _key_user_keyring_mutex@GOTPAGE
Lloh23:
	ldr	x0, [x0, _key_user_keyring_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	str	x20, [sp]
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_kleave
	b	LBB0_6
LBB0_16:
	mov	x0, x22
	mov	x1, x21
	bl	_key_link
	tbnz	w0, #31, LBB0_18
LBB0_17:
	stp	x22, x21, [x19, #8]
	b	LBB0_4
LBB0_18:
	mov	x20, x0
	mov	x0, x22
	bl	_key_put
	b	LBB0_14
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p{%u}"

l_.str.1:                               ; @.str.1
	.asciz	" = 0 [exist]"

	.comm	_key_user_keyring_mutex,4,2     ; @key_user_keyring_mutex
l_.str.2:                               ; @.str.2
	.asciz	"_uid.%u"

	.comm	_KEY_ALLOC_IN_QUOTA,4,2         ; @KEY_ALLOC_IN_QUOTA
l_.str.3:                               ; @.str.3
	.asciz	"_uid_ses.%u"

l_.str.4:                               ; @.str.4
	.asciz	" = 0"

l_.str.5:                               ; @.str.5
	.asciz	" = %d"

.subsections_via_symbols
