	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function construct_alloc_key
_construct_alloc_key:                   ## @construct_alloc_key
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_current_cred
	movq	%rax, %r12
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rdx
	callq	_kenter
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%r15)
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	movq	_KEY_POS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %r8
	callq	_key_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.17:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_PTR_ERR
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_kleave
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_KEY_FLAG_USER_CONSTRUCT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	leaq	-56(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	___key_link_begin
	testl	%eax, %eax
	js	LBB0_14
LBB0_3:
	movq	_key_construction_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	(%r14), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rcx
	callq	_search_process_keyrings
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r14, %r12
	je	LBB0_8
## %bb.4:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	___key_link
	movq	_key_construction_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	___key_link_end
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_key_put
	movq	_key_construction_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_key_ref_to_ptr
	movq	%rax, %r14
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_12
## %bb.9:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	___key_link_check_live_key
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	___key_link_end
	testl	%ebx, %ebx
	jns	LBB0_12
## %bb.13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_key_put
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	leaq	L_.str.4(%rip), %rdi
LBB0_15:
	movl	%ebx, %esi
	callq	_kleave
	jmp	LBB0_16
LBB0_6:
	movq	_key_construction_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r15, (%r13)
	movq	%r15, %rdi
	callq	_key_serial
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_kleave
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_10:
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	___key_link
	movq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	___key_link_end
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	%r14, %rdi
	callq	_key_serial
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_kleave
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %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
	.asciz	"%s,%s,,,"

	.comm	_KEY_POS_ALL,4,2                ## @KEY_POS_ALL
	.comm	_KEY_FLAG_USER_CONSTRUCT,4,2    ## @KEY_FLAG_USER_CONSTRUCT
	.comm	_key_construction_mutex,4,2     ## @key_construction_mutex
L_.str.1:                               ## @.str.1
	.asciz	" = 0 [%d]"

L_.str.2:                               ## @.str.2
	.asciz	" = -EINPROGRESS [%d]"

	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
L_.str.3:                               ## @.str.3
	.asciz	" = %d [linkcheck]"

L_.str.4:                               ## @.str.4
	.asciz	" = %d [prelink]"

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

	.no_dead_strip	_construct_alloc_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function construct_alloc_key
_construct_alloc_key:                   ; @construct_alloc_key
	.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	x20, x5
	mov	x19, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x21, x0
	bl	_current_cred
	mov	x25, x0
	ldr	w1, [x21, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x24
	bl	_kenter
	str	xzr, [x20]
	mov	x0, x19
	bl	_mutex_lock
	ldp	w3, w2, [x25]
Lloh2:
	adrp	x8, _KEY_POS_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KEY_POS_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	x4, x25
	mov	x6, x23
	bl	_key_alloc
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	bl	_PTR_ERR
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.5@PAGE
Lloh6:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_kleave
	mov	x0, x23
	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	_PTR_ERR
LBB0_2:
Lloh7:
	adrp	x8, _KEY_FLAG_USER_CONSTRUCT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KEY_FLAG_USER_CONSTRUCT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_set_bit
	cbz	x22, LBB0_4
; %bb.3:
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	___key_link_begin
	tbnz	w0, #31, LBB0_11
LBB0_4:
Lloh10:
	adrp	x0, _key_construction_mutex@GOTPAGE
Lloh11:
	ldr	x0, [x0, _key_construction_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w2, [x21]
	mov	x0, x21
	mov	x1, x24
	mov	x3, x25
	bl	_search_process_keyrings
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	cbz	x22, LBB0_13
; %bb.6:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x23
	bl	___key_link
Lloh12:
	adrp	x0, _key_construction_mutex@GOTPAGE
Lloh13:
	ldr	x0, [x0, _key_construction_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	ldr	x2, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	bl	___key_link_end
	b	LBB0_14
LBB0_7:
	mov	x0, x23
	bl	_key_put
Lloh14:
	adrp	x0, _key_construction_mutex@GOTPAGE
Lloh15:
	ldr	x0, [x0, _key_construction_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x24
	bl	_key_ref_to_ptr
	mov	x23, x0
	cbz	x22, LBB0_16
; %bb.8:
	mov	x0, x22
	mov	x1, x23
	bl	___key_link_check_live_key
	cbz	w0, LBB0_15
; %bb.9:
	mov	x26, x0
	ldr	x2, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	bl	___key_link_end
	tbz	w26, #31, LBB0_16
; %bb.10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	bl	_key_put
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x26, x0
	mov	x0, x19
	bl	_mutex_unlock
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_12:
	mov	x1, x26
	bl	_kleave
	b	LBB0_17
LBB0_13:
Lloh20:
	adrp	x0, _key_construction_mutex@GOTPAGE
Lloh21:
	ldr	x0, [x0, _key_construction_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	str	x23, [x20]
	mov	x0, x23
	bl	_key_serial
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kleave
	mov	w26, #0
	b	LBB0_17
LBB0_15:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x23
	bl	___key_link
	ldr	x2, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	bl	___key_link_end
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
	str	x23, [x20]
	mov	x0, x23
	bl	_key_serial
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_kleave
Lloh26:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_17:
	mov	x0, x26
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s,%s,,,"

	.comm	_KEY_POS_ALL,4,2                ; @KEY_POS_ALL
	.comm	_KEY_FLAG_USER_CONSTRUCT,4,2    ; @KEY_FLAG_USER_CONSTRUCT
	.comm	_key_construction_mutex,4,2     ; @key_construction_mutex
l_.str.1:                               ; @.str.1
	.asciz	" = 0 [%d]"

l_.str.2:                               ; @.str.2
	.asciz	" = -EINPROGRESS [%d]"

	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
l_.str.3:                               ; @.str.3
	.asciz	" = %d [linkcheck]"

l_.str.4:                               ; @.str.4
	.asciz	" = %d [prelink]"

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

	.no_dead_strip	_construct_alloc_key
.subsections_via_symbols
