	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decrypt
_decrypt:                               ## @decrypt
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_KERNELDUMP_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	movq	_KERNELDUMP_KEY_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movl	%r15d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	testq	%rbx, %rbx
	setne	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	testq	%r14, %r14
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	$0, -128(%rbp)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movl	%r15d, %r13d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	movl	%r13d, %edi
	callq	_close
	movl	%r14d, %edi
	callq	_wait_for_process
	xorl	%r13d, %r13d
	testq	%rax, %rax
	sete	%r13b
	jmp	LBB0_4
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
	movl	%r15d, %edi
	callq	_close
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.54:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
LBB0_6:
	movq	_O_RDONLY@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_open
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdx
	jmp	LBB0_42
LBB0_8:
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	callq	_open
	movl	%eax, -172(%rbp)                ## 4-byte Spill
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
LBB0_41:
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_42
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-160(%rbp), %rdx                ## 8-byte Reload
LBB0_42:
	xorl	%eax, %eax
	callq	_pjdlog_errno
LBB0_23:
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	shll	$2, %esi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_explicit_bzero
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	shll	$2, %esi
	movq	-152(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_explicit_bzero
	movq	-128(%rbp), %rdi
	callq	_RSA_free
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_25
## %bb.24:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_EVP_CIPHER_CTX_free
LBB0_25:
	movl	$1, %edi
	callq	_exit
LBB0_12:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
LBB0_51:
	xorl	%eax, %eax
	callq	_pjdlog_errno
	jmp	LBB0_23
LBB0_14:
	xorl	%eax, %eax
	callq	_RSA_new
	movq	%rax, -128(%rbp)
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.4(%rip), %rdi
LBB0_34:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pjdlog_error
	jmp	LBB0_23
LBB0_16:
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, %rcx
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_23
LBB0_18:
	movl	%ebx, %edi
	callq	_read_key
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_close
	testq	%r12, %r12
	je	LBB0_23
## %bb.19:
	leaq	-128(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_RSAPrivateKey
	movq	%rax, -128(%rbp)
	movq	%r14, %rdi
	callq	_fclose
	movq	-128(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.5(%rip), %rdi
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pjdlog_error
	jmp	LBB0_23
LBB0_21:
	callq	_RSA_size
	movl	(%r12), %edx
	cmpl	%edx, %eax
	jne	LBB0_22
## %bb.26:
	movl	4(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_31
## %bb.27:
	cmpl	$129, %eax
	jne	LBB0_29
## %bb.28:
	xorl	%eax, %eax
	callq	_EVP_aes_256_cbc
	jmp	LBB0_32
LBB0_22:
	shll	$3, %eax
	shll	$3, %edx
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pjdlog_error
	jmp	LBB0_23
LBB0_31:
	xorl	%eax, %eax
	callq	_EVP_chacha20
LBB0_32:
	movq	%rax, %r15
	movl	(%r12), %edi
	movl	16(%r12), %esi
	movq	-128(%rbp), %rcx
	movq	_RSA_PKCS1_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	callq	_RSA_private_decrypt
	movl	%eax, %ebx
	cltq
	cmpq	%rax, -192(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_33
## %bb.35:
	movq	-128(%rbp), %rdi
	callq	_RSA_free
	movq	$0, -128(%rbp)
	cmpl	$128, 4(%r12)
	jne	LBB0_37
## %bb.36:
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-80(%rbp), %rdi
	movq	8(%r12), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, %r8
	jmp	LBB0_38
LBB0_29:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_30
LBB0_33:
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_34
LBB0_37:
	movq	8(%r12), %r8
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
LBB0_38:
	callq	_EVP_DecryptInit_ex
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	xorl	%esi, %esi
	callq	_EVP_CIPHER_CTX_set_padding
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_explicit_bzero
	movq	-184(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,4), %r12d
	leaq	-140(%rbp), %r15
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_39
LBB0_52:                                ##   in Loop: Header=BB0_39 Depth=1
	testq	%r14, %r14
	je	LBB0_53
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movl	-172(%rbp), %edi                ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_read
	testq	%rax, %rax
	js	LBB0_40
## %bb.43:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	%rax, %r14
	je	LBB0_47
## %bb.44:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_EVP_DecryptUpdate
	jmp	LBB0_45
LBB0_47:                                ##   in Loop: Header=BB0_39 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_EVP_DecryptFinal_ex
LBB0_45:                                ##   in Loop: Header=BB0_39 Depth=1
	testq	%rax, %rax
	je	LBB0_46
## %bb.48:                              ##   in Loop: Header=BB0_39 Depth=1
	movl	-140(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_52
## %bb.49:                              ##   in Loop: Header=BB0_39 Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_write
	cmpl	-140(%rbp), %eax
	je	LBB0_52
## %bb.50:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_51
LBB0_53:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_explicit_bzero
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_EVP_CIPHER_CTX_free
	xorl	%edi, %edi
	callq	_exit
LBB0_40:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_41
LBB0_46:
	leaq	L_.str.10(%rip), %rdi
LBB0_30:
	xorl	%eax, %eax
	callq	_pjdlog_error
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_KERNELDUMP_BUFFER_SIZE,4,2     ## @KERNELDUMP_BUFFER_SIZE
	.comm	_KERNELDUMP_KEY_MAX_SIZE,4,2    ## @KERNELDUMP_KEY_MAX_SIZE
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to create child process"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"Unable to open %s"

L_.str.2:                               ## @.str.2
	.asciz	"r"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to enter capability mode"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to allocate an RSA structure: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to read data from %s."

L_.str.6:                               ## @.str.6
	.asciz	"RSA modulus size mismatch: equals %db and should be %ub."

L_.str.7:                               ## @.str.7
	.asciz	"Invalid encryption algorithm."

	.comm	_RSA_PKCS1_PADDING,4,2          ## @RSA_PKCS1_PADDING
L_.str.8:                               ## @.str.8
	.asciz	"Unable to decrypt key: %s"

L_.str.9:                               ## @.str.9
	.asciz	"Unable to read data from %s"

L_.str.10:                              ## @.str.10
	.asciz	"Unable to decrypt core."

L_.str.11:                              ## @.str.11
	.asciz	"Unable to write core"

	.no_dead_strip	_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decrypt
_decrypt:                               ; @decrypt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	mov	x23, x3
	mov	x22, x2
	mov	x25, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _KERNELDUMP_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERNELDUMP_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
	lsl	x8, x28, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _KERNELDUMP_KEY_MAX_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KERNELDUMP_KEY_MAX_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w26, [x8]
	lsl	x8, x26, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
	cmp	x25, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	cmp	x22, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	cmp	x23, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	stur	xzr, [x29, #-160]
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x24, x0
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_close
	mov	x0, x24
	bl	_wait_for_process
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_pjdlog_errno
	mov	x0, x21
	bl	_close
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
LBB0_7:
	stur	x23, [x29, #-176]               ; 8-byte Folded Spill
Lloh21:
	adrp	x24, _O_RDONLY@GOTPAGE
Lloh22:
	ldr	x24, [x24, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_open
	lsl	w23, w28, #2
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	str	x22, [sp, #-16]!
	b	LBB0_13
LBB0_9:
	mov	x27, x0
	ldr	w1, [x24]
	ldur	x0, [x29, #-176]                ; 8-byte Folded Reload
	bl	_open
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
Lloh26:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	str	x8, [sp, #-16]!
	b	LBB0_13
LBB0_11:
	mov	x24, x0
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x25
	bl	_fopen
	cbnz	x0, LBB0_19
; %bb.12:
Lloh31:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	str	x25, [sp, #-16]!
LBB0_13:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_pjdlog_errno
LBB0_14:
	add	sp, sp, #16
LBB0_15:
	mov	x22, #0
LBB0_16:
	lsl	w1, w26, #2
	mov	x0, x20
	bl	_explicit_bzero
	mov	x0, x19
	mov	x1, x23
	bl	_explicit_bzero
	ldur	x0, [x29, #-160]
	bl	_RSA_free
	cbz	x22, LBB0_18
; %bb.17:
	mov	x0, x22
	bl	_EVP_CIPHER_CTX_free
LBB0_18:
	mov	w0, #1
	bl	_exit
LBB0_19:
	mov	x28, x0
	bl	_caph_enter
	tbz	x0, #63, LBB0_21
; %bb.20:
Lloh36:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_pjdlog_errno
	b	LBB0_15
LBB0_21:
	bl	_RSA_new
	stur	x0, [x29, #-160]
	cbnz	x0, LBB0_23
; %bb.22:
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pjdlog_error
	b	LBB0_14
LBB0_23:
	bl	_EVP_CIPHER_CTX_new
	mov	x22, x0
	cbz	x0, LBB0_16
; %bb.24:
	mov	x0, x27
	bl	_read_key
	stur	x0, [x29, #-184]                ; 8-byte Folded Spill
	mov	x0, x27
	bl	_close
	ldur	x8, [x29, #-184]                ; 8-byte Folded Reload
	cbz	x8, LBB0_16
; %bb.25:
	mov	x27, x8
	sub	x1, x29, #160
	mov	x0, x28
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_RSAPrivateKey
	stur	x0, [x29, #-160]
	mov	x0, x28
	bl	_fclose
	ldur	x0, [x29, #-160]
	cbnz	x0, LBB0_27
; %bb.26:
	str	x25, [sp, #-16]!
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_38
LBB0_27:
	bl	_RSA_size
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_31
; %bb.28:
	ldr	w8, [x27, #4]
	cmp	w8, #128
	b.eq	LBB0_32
; %bb.29:
	cmp	w8, #129
	b.ne	LBB0_36
; %bb.30:
	bl	_EVP_aes_256_cbc
	b	LBB0_33
LBB0_31:
	lsl	w9, w0, #3
	lsl	w8, w8, #3
	stp	x9, x8, [sp, #-16]!
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_38
LBB0_32:
	bl	_EVP_chacha20
LBB0_33:
	mov	x25, x0
	ldr	w0, [x27]
	ldr	w1, [x27, #16]
	ldur	x3, [x29, #-160]
Lloh47:
	adrp	x8, _RSA_PKCS1_PADDING@GOTPAGE
Lloh48:
	ldr	x8, [x8, _RSA_PKCS1_PADDING@GOTPAGEOFF]
Lloh49:
	ldr	w4, [x8]
	mov	x2, x20
	bl	_RSA_private_decrypt
	mov	x28, x0
	sxtw	x8, w28
	cmp	x8, x26, lsl #2
	b.ne	LBB0_37
; %bb.34:
	ldur	x0, [x29, #-160]
	bl	_RSA_free
	stur	xzr, [x29, #-160]
	ldr	w8, [x27, #4]
	cmp	w8, #128
	b.ne	LBB0_39
; %bb.35:
	sub	x0, x29, #152
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	sub	x8, x29, #152
	add	x0, x8, #32
	ldr	x1, [x27, #8]
	mov	w2, #8
	bl	_memcpy
	sub	x4, x29, #152
	b	LBB0_40
LBB0_36:
Lloh50:
	adrp	x0, l_.str.7@PAGE
Lloh51:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_52
LBB0_37:
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh52:
	adrp	x0, l_.str.8@PAGE
Lloh53:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_38:
	bl	_pjdlog_error
	add	sp, sp, #16
	b	LBB0_16
LBB0_39:
	ldr	x4, [x27, #8]
LBB0_40:
	mov	x0, x22
	mov	x1, x25
	mov	x2, #0
	mov	x3, x20
	bl	_EVP_DecryptInit_ex
	mov	x0, x22
	mov	w1, #0
	bl	_EVP_CIPHER_CTX_set_padding
	mov	x0, x20
	mov	x1, x28
	bl	_explicit_bzero
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=1
	cbz	x25, LBB0_49
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	bl	_read
	tbnz	x0, #63, LBB0_50
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	sub	x2, x29, #164
	mov	x25, x0
	cbz	x0, LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_42 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x3, x19
	mov	x4, x25
	bl	_EVP_DecryptUpdate
	cbnz	x0, LBB0_46
	b	LBB0_51
LBB0_45:                                ;   in Loop: Header=BB0_42 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_EVP_DecryptFinal_ex
	cbz	x0, LBB0_51
LBB0_46:                                ;   in Loop: Header=BB0_42 Depth=1
	ldur	w2, [x29, #-164]
	cmp	w2, #1
	b.lt	LBB0_41
; %bb.47:                               ;   in Loop: Header=BB0_42 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_write
	ldur	w8, [x29, #-164]
	cmp	w0, w8
	b.eq	LBB0_41
; %bb.48:
Lloh54:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.11@PAGE
Lloh58:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_pjdlog_errno
	b	LBB0_16
LBB0_49:
	mov	x0, x19
	mov	x1, x23
	bl	_explicit_bzero
	mov	x0, x22
	bl	_EVP_CIPHER_CTX_free
	mov	w0, #0
	bl	_exit
LBB0_50:
Lloh59:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	str	x8, [sp, #-16]!
Lloh62:
	adrp	x1, l_.str.9@PAGE
Lloh63:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_pjdlog_errno
	add	sp, sp, #16
	b	LBB0_16
LBB0_51:
Lloh64:
	adrp	x0, l_.str.10@PAGE
Lloh65:
	add	x0, x0, l_.str.10@PAGEOFF
LBB0_52:
	bl	_pjdlog_error
	b	LBB0_16
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_KERNELDUMP_BUFFER_SIZE,4,2     ; @KERNELDUMP_BUFFER_SIZE
	.comm	_KERNELDUMP_KEY_MAX_SIZE,4,2    ; @KERNELDUMP_KEY_MAX_SIZE
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to create child process"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"Unable to open %s"

l_.str.2:                               ; @.str.2
	.asciz	"r"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to enter capability mode"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to allocate an RSA structure: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to read data from %s."

l_.str.6:                               ; @.str.6
	.asciz	"RSA modulus size mismatch: equals %db and should be %ub."

l_.str.7:                               ; @.str.7
	.asciz	"Invalid encryption algorithm."

	.comm	_RSA_PKCS1_PADDING,4,2          ; @RSA_PKCS1_PADDING
l_.str.8:                               ; @.str.8
	.asciz	"Unable to decrypt key: %s"

l_.str.9:                               ; @.str.9
	.asciz	"Unable to read data from %s"

l_.str.10:                              ; @.str.10
	.asciz	"Unable to decrypt core."

l_.str.11:                              ; @.str.11
	.asciz	"Unable to write core"

	.no_dead_strip	_decrypt
.subsections_via_symbols
