	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decrypt_key
_decrypt_key:                           ## @decrypt_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	24(%rdi), %esi
	movl	16(%rdi), %ecx
	movl	20(%rdi), %edx
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_pgp_cfb_create
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rdi
	leaq	-36(%rbp), %rcx
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_pgp_cfb_decrypt
	addq	$4, %r12
	decl	%r15d
	movq	-48(%rbp), %rdi
	movq	8(%rbx), %rcx
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_pgp_cfb_decrypt
	movq	-48(%rbp), %rdi
	callq	_pgp_cfb_free
	movl	%r15d, (%rbx)
	movl	-36(%rbp), %edi
	movl	%edi, 4(%rbx)
	callq	_pgp_get_cipher_key_size
	cmpl	%r15d, %eax
	je	LBB0_4
## %bb.3:
	movl	-36(%rbp), %ebx
	movl	%ebx, %edi
	callq	_pgp_get_cipher_key_size
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_px_debug
	movq	_PXE_PGP_CORRUPT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sesskey bad len: algo=%d, expected=%d, got=%d"

	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ## @PXE_PGP_CORRUPT_DATA
	.no_dead_strip	_decrypt_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decrypt_key
_decrypt_key:                           ; @decrypt_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w2, w1, [x0, #20]
	ldr	w3, [x0, #16]
	mov	x0, sp
	mov	w4, #0
	mov	x5, #0
	bl	_pgp_cfb_create
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x0, [sp]
	add	x3, sp, #12
	mov	x1, x21
	mov	w2, #1
	bl	_pgp_cfb_decrypt
	add	x1, x21, #4
	sub	w20, w20, #1
	ldr	x0, [sp]
	ldr	x3, [x19, #8]
	mov	x2, x20
	bl	_pgp_cfb_decrypt
	ldr	x0, [sp]
	bl	_pgp_cfb_free
	ldr	w0, [sp, #12]
	stp	w20, w0, [x19]
	bl	_pgp_get_cipher_key_size
	cmp	w0, w20
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w19, [sp, #12]
	mov	x0, x19
	bl	_pgp_get_cipher_key_size
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x3, x20
	bl	_px_debug
Lloh2:
	adrp	x8, _PXE_PGP_CORRUPT_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PXE_PGP_CORRUPT_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sesskey bad len: algo=%d, expected=%d, got=%d"

	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ; @PXE_PGP_CORRUPT_DATA
	.no_dead_strip	_decrypt_key
.subsections_via_symbols
