	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verity_verify_get_sig_from_key
_verity_verify_get_sig_from_key:        ## @verity_verify_get_sig_from_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rsi
	movq	_key_type_user@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	callq	_request_key
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_down_read
	movq	%rbx, %rdi
	callq	_user_key_payload_locked
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r15
	movl	4(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	4(%r15), %edx
	movl	%edx, (%r14)
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_2:
	movq	_EKEYREVOKED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_up_read
	movq	%rbx, %rdi
	callq	_key_put
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_key_type_user,4,2              ## @key_type_user
	.comm	_EKEYREVOKED,4,2                ## @EKEYREVOKED
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_verity_verify_get_sig_from_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verity_verify_get_sig_from_key
_verity_verify_get_sig_from_key:        ; @verity_verify_get_sig_from_key
	.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	x1, x0
Lloh0:
	adrp	x0, _key_type_user@GOTPAGE
Lloh1:
	ldr	x0, [x0, _key_type_user@GOTPAGEOFF]
	mov	x2, #0
	bl	_request_key
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
LBB0_2:
	mov	x0, x19
	bl	_down_read
	mov	x0, x19
	bl	_user_key_payload_locked
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w0, [x0, #4]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	str	w0, [x20, #4]
	cbz	w0, LBB0_6
; %bb.4:
	ldp	w1, w2, [x21]
	str	w2, [x20]
	bl	_memcpy
	mov	w20, #0
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EKEYREVOKED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EKEYREVOKED@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_up_read
	mov	x0, x19
	bl	_key_put
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_key_type_user,4,2              ; @key_type_user
	.comm	_EKEYREVOKED,4,2                ; @EKEYREVOKED
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_verity_verify_get_sig_from_key
.subsections_via_symbols
