	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_join_session_keyring           ## -- Begin function join_session_keyring
	.p2align	4, 0x90
_join_session_keyring:                  ## @join_session_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_current_is_single_threaded
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_prepare_creds
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_current_cred
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.9:
	movq	%rax, %r12
	movq	_key_session_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_find_keyring_by_name
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_PTR_ERR
	movq	_ENOKEY@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	_KEY_ALLOC_IN_QUOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	callq	_keyring_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	jmp	LBB0_12
LBB0_1:
	movq	_EMLINK@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_18
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_install_session_keyring_to_cred
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_commit_creds
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	jmp	LBB0_18
LBB0_11:
	movq	%r15, %rdi
LBB0_12:
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	%r15, %rdi
	callq	_PTR_ERR
LBB0_16:
	movq	%rax, %rbx
	movq	_key_session_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_17
LBB0_13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_install_session_keyring_to_cred
	testq	%rax, %rax
	js	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_commit_creds
	movq	_key_session_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_key_put
	jmp	LBB0_18
LBB0_7:
	movq	%rax, %rbx
LBB0_17:
	movq	%r14, %rdi
	callq	_abort_creds
LBB0_18:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMLINK,8,3                     ## @EMLINK
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_key_session_mutex,4,2          ## @key_session_mutex
	.comm	_ENOKEY,8,3                     ## @ENOKEY
	.comm	_KEY_ALLOC_IN_QUOTA,4,2         ## @KEY_ALLOC_IN_QUOTA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_join_session_keyring           ; -- Begin function join_session_keyring
	.p2align	2
_join_session_keyring:                  ; @join_session_keyring
	.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	x21, x0
	bl	_current_is_single_threaded
	cbz	w0, LBB0_7
; %bb.1:
	bl	_prepare_creds
	cbz	x0, LBB0_8
; %bb.2:
	mov	x19, x0
	bl	_current_cred
	cbz	x21, LBB0_10
; %bb.3:
	mov	x22, x0
Lloh0:
	adrp	x0, _key_session_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _key_session_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x21
	mov	w1, #0
	bl	_find_keyring_by_name
	mov	x20, x0
	bl	_PTR_ERR
Lloh2:
	adrp	x8, _ENOKEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOKEY@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmn	x0, x8
	b.ne	LBB0_12
; %bb.4:
	ldp	w2, w1, [x22]
Lloh5:
	adrp	x8, _KEY_ALLOC_IN_QUOTA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KEY_ALLOC_IN_QUOTA@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x3, x22
	mov	x5, #0
	bl	_keyring_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
LBB0_5:
	mov	x0, x20
	bl	_PTR_ERR
LBB0_6:
	mov	x21, x0
Lloh8:
	adrp	x0, _key_session_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _key_session_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_16
LBB0_7:
Lloh10:
	adrp	x8, _EMLINK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EMLINK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	neg	x21, x8
	b	LBB0_17
LBB0_10:
	mov	x0, x19
	mov	x1, #0
	bl	_install_session_keyring_to_cred
	tbnz	x0, #63, LBB0_15
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x0, x19
	bl	_commit_creds
	cmp	x0, #0
	csel	x21, x20, x0, eq
	b	LBB0_17
LBB0_12:
	mov	x0, x20
	bl	_IS_ERR
	cbnz	x0, LBB0_5
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_install_session_keyring_to_cred
	tbnz	x0, #63, LBB0_6
; %bb.14:
	mov	x0, x19
	bl	_commit_creds
Lloh14:
	adrp	x0, _key_session_mutex@GOTPAGE
Lloh15:
	ldr	x0, [x0, _key_session_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x21, [x20]
	mov	x0, x20
	bl	_key_put
	b	LBB0_17
LBB0_15:
	mov	x21, x0
LBB0_16:
	mov	x0, x19
	bl	_abort_creds
LBB0_17:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EMLINK,8,3                     ; @EMLINK
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_key_session_mutex,4,2          ; @key_session_mutex
	.comm	_ENOKEY,8,3                     ; @ENOKEY
	.comm	_KEY_ALLOC_IN_QUOTA,4,2         ; @KEY_ALLOC_IN_QUOTA
.subsections_via_symbols
