	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encrypt_internal
_encrypt_internal:                      ## @encrypt_internal
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %ebx
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_VARHDRSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	-56(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_init_work
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	-56(%rbp), %rdi
	callq	_pgp_get_unicode_mode
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_convert_to_utf8
	xorl	%r15d, %r15d
	cmpq	%r12, %rax
	cmovneq	%rax, %r15
	movq	%rax, %r12
	jmp	LBB0_5
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movq	%r12, %rdi
	callq	_create_mbuf_from_vardata
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_VARSIZE_ANY
	leaq	128(%rax), %rdi
	callq	_mbuf_create
	movq	%rax, %r12
	movq	_VARHDRSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mbuf_append
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_create_mbuf_from_vardata
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_pgp_set_pubkey
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mbuf_free
	testl	%r13d, %r13d
	jns	LBB0_8
	jmp	LBB0_9
LBB0_7:
	movq	-56(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_VARDATA_ANY
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, %r14
	callq	_VARSIZE_ANY_EXHDR
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_pgp_set_symkey
	movl	%eax, %r13d
	testl	%r13d, %r13d
	js	LBB0_9
LBB0_8:
	movq	-56(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_pgp_encrypt
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_14
LBB0_9:
	cmpq	$0, -80(%rbp)
	je	LBB0_11
## %bb.10:
	xorl	%edi, %edi
	callq	_px_set_debug_handler
LBB0_11:
	testq	%r15, %r15
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_clear_and_pfree
LBB0_13:
	movq	-56(%rbp), %rdi
	callq	_pgp_free
	movq	%r14, %rdi
	callq	_mbuf_free
	movq	%r12, %rdi
	callq	_mbuf_free
	movl	%r13d, %edi
	callq	_px_THROW_ERROR
LBB0_14:
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mbuf_steal_data
	movq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SET_VARSIZE
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_clear_and_pfree
LBB0_16:
	movq	-56(%rbp), %rdi
	callq	_pgp_free
	movq	%r14, %rdi
	callq	_mbuf_free
	movq	%r12, %rdi
	callq	_mbuf_free
	xorl	%edi, %edi
	callq	_px_set_debug_handler
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VARHDRSZ,4,2                   ## @VARHDRSZ
	.no_dead_strip	_encrypt_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encrypt_internal
_encrypt_internal:                      ; @encrypt_internal
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #32
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _VARHDRSZ@GOTPAGE
Lloh4:
	ldr	x25, [x25, _VARHDRSZ@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	sub	x0, x29, #88
	sub	x3, x29, #96
	mov	x2, x4
	bl	_init_work
	cbz	w19, LBB0_3
; %bb.1:
	ldur	x0, [x29, #-88]
	bl	_pgp_get_unicode_mode
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_convert_to_utf8
	cmp	x0, x21
	csel	x19, xzr, x0, eq
	mov	x21, x0
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x21
	bl	_create_mbuf_from_vardata
	mov	x20, x0
	mov	x0, x21
	bl	_VARSIZE_ANY
	add	x0, x0, #128
	bl	_mbuf_create
	mov	x21, x0
	ldr	w2, [x25]
	mov	x1, x24
	bl	_mbuf_append
	cbz	w23, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_create_mbuf_from_vardata
	mov	x23, x0
	ldur	x0, [x29, #-88]
	mov	x1, x23
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_pgp_set_pubkey
	mov	x22, x0
	mov	x0, x23
	bl	_mbuf_free
	tbz	w22, #31, LBB0_7
	b	LBB0_8
LBB0_6:
	ldur	x23, [x29, #-88]
	mov	x0, x22
	bl	_VARDATA_ANY
	mov	x24, x0
	mov	x0, x22
	bl	_VARSIZE_ANY_EXHDR
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_pgp_set_symkey
	mov	x22, x0
	tbnz	w22, #31, LBB0_8
LBB0_7:
	ldur	x0, [x29, #-88]
	mov	x1, x20
	mov	x2, x21
	bl	_pgp_encrypt
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_8:
	ldur	x8, [x29, #-96]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, #0
	bl	_px_set_debug_handler
LBB0_10:
	cbz	x19, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_clear_and_pfree
LBB0_12:
	ldur	x0, [x29, #-88]
	bl	_pgp_free
	mov	x0, x20
	bl	_mbuf_free
	mov	x0, x21
	bl	_mbuf_free
	mov	x0, x22
	bl	_px_THROW_ERROR
LBB0_13:
	sub	x1, x29, #80
	mov	x0, x21
	bl	_mbuf_steal_data
	mov	x1, x0
	ldur	x22, [x29, #-80]
	mov	x0, x22
	bl	_SET_VARSIZE
	cbz	x19, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_clear_and_pfree
LBB0_15:
	ldur	x0, [x29, #-88]
	bl	_pgp_free
	mov	x0, x20
	bl	_mbuf_free
	mov	x0, x21
	bl	_mbuf_free
	mov	x0, #0
	bl	_px_set_debug_handler
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x22
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VARHDRSZ,4,2                   ; @VARHDRSZ
	.no_dead_strip	_encrypt_internal
.subsections_via_symbols
