	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_request_key_auth_new           ## -- Begin function request_key_auth_new
	.p2align	4, 0x90
_request_key_auth_new:                  ## @request_key_auth_new
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r14
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_kenter
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$48, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %rbx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_kmalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	callq	_down_read
	movq	_KEY_FLAG_REVOKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	$16, %rsi
	callq	_test_bit
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.16:
	callq	_up_read
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_kleave
	movq	_EKEYREVOKED@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_kleave
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	subl	(%rax), %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.3:
	movl	%ebx, %edi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_kleave
	movq	%rbx, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.7:
	movl	%r14d, %edi
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_11:
	movq	%r14, %rdi
	callq	_get_cred
	movq	%rax, 40(%rbx)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	jmp	LBB0_12
LBB0_10:
	movq	8(%rdi), %r13
	movq	40(%r13), %rdi
	callq	_get_cred
	movq	%rax, 40(%rbx)
	movl	32(%r13), %eax
	movl	%eax, 32(%rbx)
	movq	(%r14), %rdi
	callq	_up_read
LBB0_12:
	movq	%r12, %rdi
	callq	_key_get
	movq	%rax, 24(%rbx)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_key_get
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	movq	%r15, (%rbx)
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_sprintf
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	movq	_KEY_POS_VIEW@GOTPCREL(%rip), %rax
	movq	_KEY_POS_READ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	orl	(%rax), %r9d
	movq	_KEY_POS_SEARCH@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	movq	_KEY_USR_VIEW@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	movq	_KEY_ALLOC_NOT_IN_QUOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_key_type_request_key_auth@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %r8
	callq	_key_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_19:
	movq	24(%rbx), %rdi
	callq	_key_put
	movq	16(%rbx), %rdi
	callq	_key_put
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str.5(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_kleave
	movl	%r15d, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	jmp	LBB0_20
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_key_instantiate_and_link
	testl	%eax, %eax
	js	LBB0_18
## %bb.15:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_atomic_read
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_kleave
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.21:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_key_revoke
	movq	%r14, %rdi
	callq	_key_put
	jmp	LBB0_19
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d,"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	" = -ENOMEM"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KEY_FLAG_REVOKED,4,2           ## @KEY_FLAG_REVOKED
L_.str.2:                               ## @.str.2
	.asciz	"%x"

	.comm	_key_type_request_key_auth,4,2  ## @key_type_request_key_auth
	.comm	_KEY_POS_VIEW,4,2               ## @KEY_POS_VIEW
	.comm	_KEY_POS_READ,4,2               ## @KEY_POS_READ
	.comm	_KEY_POS_SEARCH,4,2             ## @KEY_POS_SEARCH
	.comm	_KEY_USR_VIEW,4,2               ## @KEY_USR_VIEW
	.comm	_KEY_ALLOC_NOT_IN_QUOTA,4,2     ## @KEY_ALLOC_NOT_IN_QUOTA
L_.str.3:                               ## @.str.3
	.asciz	" = {%d,%d}"

L_.str.4:                               ## @.str.4
	.asciz	"= -EKEYREVOKED"

	.comm	_EKEYREVOKED,4,2                ## @EKEYREVOKED
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	_request_key_auth_new           ; -- Begin function request_key_auth_new
	.p2align	2
_request_key_auth_new:                  ; @request_key_auth_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x25, _current@GOTPAGE
Lloh4:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x20, [x8, #8]
	ldr	w1, [x0]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kenter
Lloh7:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #48
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w1, [x26]
	mov	x0, x21
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x20]
	cbz	x0, LBB0_10
; %bb.3:
	bl	_down_read
Lloh9:
	adrp	x8, _KEY_FLAG_REVOKED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KEY_FLAG_REVOKED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, #16
	bl	_test_bit
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_11
; %bb.4:
	bl	_up_read
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_kleave
Lloh14:
	adrp	x8, _EKEYREVOKED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EKEYREVOKED@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kleave
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kleave
	mov	x0, x19
	bl	_kfree
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	ldr	x9, [sp, #40]
Lloh22:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_20
; %bb.9:
	neg	w0, w8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ERR_PTR
LBB0_10:
	mov	x0, x20
	bl	_get_cred
	str	x0, [x19, #40]
	ldr	x8, [x25]
	ldr	w8, [x8]
	str	w8, [x19, #32]
	b	LBB0_12
LBB0_11:
	ldr	x25, [x0, #8]
	ldr	x0, [x25, #40]
	bl	_get_cred
	str	x0, [x19, #40]
	ldr	w8, [x25, #32]
	str	w8, [x19, #32]
	ldr	x0, [x20]
	bl	_up_read
LBB0_12:
	mov	x0, x22
	bl	_key_get
	str	x0, [x19, #24]
	mov	x0, x24
	bl	_key_get
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	str	x21, [x19]
	ldr	w2, [x22]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #20
	bl	_sprintf
Lloh27:
	adrp	x8, _KEY_POS_VIEW@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KEY_POS_VIEW@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _KEY_POS_READ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _KEY_POS_READ@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _KEY_POS_SEARCH@GOTPAGE
Lloh34:
	ldr	x10, [x10, _KEY_POS_SEARCH@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh35:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _KEY_USR_VIEW@GOTPAGE
Lloh37:
	ldr	x9, [x9, _KEY_USR_VIEW@GOTPAGEOFF]
	ldp	w3, w2, [x20, #8]
Lloh38:
	ldr	w9, [x9]
	orr	w5, w8, w9
Lloh39:
	adrp	x8, _KEY_ALLOC_NOT_IN_QUOTA@GOTPAGE
Lloh40:
	ldr	x8, [x8, _KEY_ALLOC_NOT_IN_QUOTA@GOTPAGEOFF]
Lloh41:
	ldr	w6, [x8]
Lloh42:
	adrp	x0, _key_type_request_key_auth@GOTPAGE
Lloh43:
	ldr	x0, [x0, _key_type_request_key_auth@GOTPAGEOFF]
	add	x1, sp, #20
	mov	x4, x20
	bl	_key_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
LBB0_14:
	ldr	x0, [x19, #24]
	bl	_key_put
	ldr	x0, [x19, #16]
	bl	_key_put
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	str	x21, [sp]
Lloh44:
	adrp	x0, l_.str.5@PAGE
Lloh45:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_kleave
	mov	x0, x21
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_17
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_key_instantiate_and_link
	tbnz	w0, #31, LBB0_19
; %bb.16:
	mov	x0, x20
	ldr	w19, [x0], #4
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh46:
	adrp	x0, l_.str.3@PAGE
Lloh47:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_kleave
LBB0_17:
	ldr	x8, [sp, #40]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	mov	x21, x0
	mov	x0, x20
	bl	_key_revoke
	mov	x0, x20
	bl	_key_put
	b	LBB0_14
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d,"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	" = -ENOMEM"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KEY_FLAG_REVOKED,4,2           ; @KEY_FLAG_REVOKED
l_.str.2:                               ; @.str.2
	.asciz	"%x"

	.comm	_key_type_request_key_auth,4,2  ; @key_type_request_key_auth
	.comm	_KEY_POS_VIEW,4,2               ; @KEY_POS_VIEW
	.comm	_KEY_POS_READ,4,2               ; @KEY_POS_READ
	.comm	_KEY_POS_SEARCH,4,2             ; @KEY_POS_SEARCH
	.comm	_KEY_USR_VIEW,4,2               ; @KEY_USR_VIEW
	.comm	_KEY_ALLOC_NOT_IN_QUOTA,4,2     ; @KEY_ALLOC_NOT_IN_QUOTA
l_.str.3:                               ; @.str.3
	.asciz	" = {%d,%d}"

l_.str.4:                               ; @.str.4
	.asciz	"= -EKEYREVOKED"

	.comm	_EKEYREVOKED,4,2                ; @EKEYREVOKED
l_.str.5:                               ; @.str.5
	.asciz	"= %d"

.subsections_via_symbols
