	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function install_session_keyring_to_cred
_install_session_keyring_to_cred:       ## @install_session_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_might_sleep
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	callq	_atomic_inc
LBB0_7:
	movq	(%r14), %rdi
	callq	_spin_lock_irq
	movq	(%r14), %rax
	movq	8(%rax), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	movq	(%r14), %rdi
	callq	_spin_unlock_irq
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	%r15, %rdi
	callq	_key_put
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r14), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_2
## %bb.3:
	movq	_KEY_ALLOC_QUOTA_OVERRUN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_KEY_ALLOC_IN_QUOTA@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %r8
	movl	12(%r14), %esi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rcx
	xorl	%r9d, %r9d
	callq	_keyring_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_ALLOC_QUOTA_OVERRUN,8,3    ## @KEY_ALLOC_QUOTA_OVERRUN
	.comm	_KEY_ALLOC_IN_QUOTA,8,3         ## @KEY_ALLOC_IN_QUOTA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_ses"

	.no_dead_strip	_install_session_keyring_to_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function install_session_keyring_to_cred
_install_session_keyring_to_cred:       ; @install_session_keyring_to_cred
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_might_sleep
	cbz	x20, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_atomic_inc
LBB0_2:
	ldr	x0, [x19]
	bl	_spin_lock_irq
	ldr	x8, [x19]
	ldr	x21, [x8, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_rcu_assign_pointer
	ldr	x0, [x19]
	bl	_spin_unlock_irq
	cbz	x21, LBB0_4
; %bb.3:
	bl	_synchronize_rcu
	mov	x0, x21
	bl	_key_put
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _KEY_ALLOC_QUOTA_OVERRUN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KEY_ALLOC_QUOTA_OVERRUN@GOTPAGEOFF]
Lloh2:
	adrp	x10, _KEY_ALLOC_IN_QUOTA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _KEY_ALLOC_IN_QUOTA@GOTPAGEOFF]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x4, [x8]
	ldp	w2, w1, [x19, #8]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	mov	x5, #0
	bl	_keyring_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_ALLOC_QUOTA_OVERRUN,8,3    ; @KEY_ALLOC_QUOTA_OVERRUN
	.comm	_KEY_ALLOC_IN_QUOTA,8,3         ; @KEY_ALLOC_IN_QUOTA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_ses"

	.no_dead_strip	_install_session_keyring_to_cred
.subsections_via_symbols
