	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function construct_key_and_link
_construct_key_and_link:                ## @construct_key_and_link
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	16(%rbp), %r13
	movq	%r9, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_kenter
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_current_fsuid
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_current_user_ns
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_key_user_lookup
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	leaq	-56(%rbp), %rdi
	callq	_construct_get_dest_keyring
	movq	-56(%rbp), %rdx
	leaq	-48(%rbp), %r9
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_construct_alloc_key
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_key_user_put
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.5:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_6
	jmp	LBB0_4
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %r8
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_construct_key
	testl	%eax, %eax
	js	LBB0_3
LBB0_6:
	movq	-56(%rbp), %rdi
	callq	_key_put
	movq	-48(%rbp), %rdi
	callq	_key_serial
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_kleave
	movq	-48(%rbp), %rax
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_kdebug
	movq	-48(%rbp), %rdi
	movq	_key_negative_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_key_negate_and_link
	movq	-48(%rbp), %rdi
	callq	_key_put
LBB0_4:
	movq	-56(%rbp), %rdi
	callq	_key_put
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_kleave
	movl	%ebx, %edi
	callq	_ERR_PTR
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"cons failed"

	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
L_.str.2:                               ## @.str.2
	.asciz	" = key %d"

	.comm	_key_negative_timeout,4,2       ## @key_negative_timeout
L_.str.3:                               ## @.str.3
	.asciz	" = %d"

	.no_dead_strip	_construct_key_and_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function construct_key_and_link
_construct_key_and_link:                ; @construct_key_and_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x6
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	str	x5, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kenter
	bl	_current_fsuid
	mov	x25, x0
	bl	_current_user_ns
	mov	x1, x0
	mov	x0, x25
	bl	_key_user_lookup
	cbz	x0, LBB0_3
; %bb.1:
	mov	x25, x0
	add	x0, sp, #8
	bl	_construct_get_dest_keyring
	ldr	x2, [sp, #8]
	mov	x5, sp
	mov	x0, x24
	mov	x1, x23
	mov	x3, x21
	mov	x4, x25
	bl	_construct_alloc_key
	mov	x21, x0
	mov	x0, x25
	bl	_key_user_put
	cbz	w21, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_5
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_4:
	ldp	x0, x4, [sp]
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_construct_key
	tbnz	w0, #31, LBB0_6
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_key_put
	ldr	x0, [sp]
	bl	_key_serial
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_kleave
	ldr	x0, [sp]
	b	LBB0_8
LBB0_6:
	mov	x21, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kdebug
	ldr	x0, [sp]
Lloh12:
	adrp	x8, _key_negative_timeout@GOTPAGE
Lloh13:
	ldr	x8, [x8, _key_negative_timeout@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, #0
	mov	x3, #0
	bl	_key_negate_and_link
	ldr	x0, [sp]
	bl	_key_put
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_key_put
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_kleave
	mov	x0, x21
	bl	_ERR_PTR
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"cons failed"

	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
l_.str.2:                               ; @.str.2
	.asciz	" = key %d"

	.comm	_key_negative_timeout,4,2       ; @key_negative_timeout
l_.str.3:                               ; @.str.3
	.asciz	" = %d"

	.no_dead_strip	_construct_key_and_link
.subsections_via_symbols
