	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_encrypt                    ## -- Begin function pgp_encrypt
	.p2align	4, 0x90
_pgp_encrypt:                           ## @pgp_encrypt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpq	$0, 48(%rdi)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 40(%r15)
	je	LBB0_2
LBB0_3:
	leaq	-32(%rbp), %rdi
	movq	%rdx, %rsi
	callq	_pushf_create_mbuf_writer
	testl	%eax, %eax
	js	LBB0_28
## %bb.4:
	cmpq	$0, 48(%r15)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_init_s2k_key
	testl	%eax, %eax
	js	LBB0_28
LBB0_6:
	movq	%r15, %rdi
	callq	_init_sess_key
	testl	%eax, %eax
	js	LBB0_28
## %bb.7:
	cmpq	$0, 40(%r15)
	movq	-32(%rbp), %rsi
	movq	%r15, %rdi
	je	LBB0_9
## %bb.8:
	callq	_pgp_write_pubenc_sesskey
	jmp	LBB0_10
LBB0_2:
	movq	_PXE_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_30
LBB0_9:
	callq	_write_symenc_sesskey
LBB0_10:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_29
## %bb.11:
	movq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_init_encdata_packet
	testl	%eax, %eax
	js	LBB0_28
## %bb.12:
	movq	-40(%rbp), %rcx
	movq	%rcx, -32(%rbp)
	movq	_encrypt_filter@GOTPCREL(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%r15, %rdx
	callq	_pushf_create
	testl	%eax, %eax
	js	LBB0_28
## %bb.13:
	movq	-40(%rbp), %rcx
	movq	%rcx, -32(%rbp)
	cmpq	$0, (%r15)
	jne	LBB0_16
## %bb.14:
	movq	_mdc_filter@GOTPCREL(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%r15, %rdx
	callq	_pushf_create
	testl	%eax, %eax
	js	LBB0_28
## %bb.15:
	movq	-40(%rbp), %rcx
	movq	%rcx, -32(%rbp)
LBB0_16:
	movq	%r15, %rdi
	movq	%rcx, %rsi
	callq	_write_prefix
	testl	%eax, %eax
	js	LBB0_28
## %bb.17:
	cmpq	$0, 8(%r15)
	jle	LBB0_21
## %bb.18:
	cmpq	$0, 16(%r15)
	jle	LBB0_21
## %bb.19:
	movq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_init_compress
	testl	%eax, %eax
	js	LBB0_28
## %bb.20:
	movq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
LBB0_21:
	movq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_init_litdata_packet
	testl	%eax, %eax
	js	LBB0_28
## %bb.22:
	movq	-40(%rbp), %rcx
	movq	%rcx, -32(%rbp)
	cmpq	$0, 32(%r15)
	je	LBB0_26
## %bb.23:
	cmpq	$0, 24(%r15)
	je	LBB0_26
## %bb.24:
	movq	_crlf_filter@GOTPCREL(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%r15, %rdx
	callq	_pushf_create
	testl	%eax, %eax
	js	LBB0_28
## %bb.25:
	movq	-40(%rbp), %rax
	movq	%rax, -32(%rbp)
LBB0_26:
	movq	%r14, %rdi
	callq	_mbuf_avail
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mbuf_grab
	movq	-32(%rbp), %rdi
	movq	-48(%rbp), %rsi
	movl	%eax, %edx
	callq	_pushf_write
	testl	%eax, %eax
	js	LBB0_28
## %bb.27:
	movq	-32(%rbp), %rdi
	callq	_pushf_flush
LBB0_28:
	movl	%eax, %ebx
LBB0_29:
	movq	-32(%rbp), %rdi
	callq	_pushf_free_all
LBB0_30:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_ARGUMENT_ERROR,4,2         ## @PXE_ARGUMENT_ERROR
	.comm	_encrypt_filter,4,2             ## @encrypt_filter
	.comm	_mdc_filter,4,2                 ## @mdc_filter
	.comm	_crlf_filter,4,2                ## @crlf_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_encrypt                    ; -- Begin function pgp_encrypt
	.p2align	2
_pgp_encrypt:                           ; @pgp_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #48]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_8
LBB0_2:
	add	x0, sp, #16
	mov	x1, x2
	bl	_pushf_create_mbuf_writer
	tbnz	w0, #31, LBB0_27
; %bb.3:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_init_s2k_key
	tbnz	w0, #31, LBB0_27
LBB0_5:
	mov	x0, x20
	bl	_init_sess_key
	tbnz	w0, #31, LBB0_27
; %bb.6:
	ldr	x8, [x20, #40]
	ldr	x1, [sp, #16]
	mov	x0, x20
	cbz	x8, LBB0_9
; %bb.7:
	bl	_pgp_write_pubenc_sesskey
	mov	x21, x0
	tbz	w0, #31, LBB0_10
	b	LBB0_28
LBB0_8:
Lloh0:
	adrp	x8, _PXE_ARGUMENT_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXE_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_29
LBB0_9:
	bl	_write_symenc_sesskey
	mov	x21, x0
	tbnz	w0, #31, LBB0_28
LBB0_10:
	ldr	x2, [sp, #16]
	add	x0, sp, #8
	mov	x1, x20
	bl	_init_encdata_packet
	tbnz	w0, #31, LBB0_27
; %bb.11:
	ldr	x3, [sp, #8]
	str	x3, [sp, #16]
Lloh3:
	adrp	x1, _encrypt_filter@GOTPAGE
Lloh4:
	ldr	x1, [x1, _encrypt_filter@GOTPAGEOFF]
	add	x0, sp, #8
	mov	x2, x20
	bl	_pushf_create
	tbnz	w0, #31, LBB0_27
; %bb.12:
	ldr	x3, [sp, #8]
	str	x3, [sp, #16]
	ldr	x8, [x20]
	cbnz	x8, LBB0_15
; %bb.13:
Lloh5:
	adrp	x1, _mdc_filter@GOTPAGE
Lloh6:
	ldr	x1, [x1, _mdc_filter@GOTPAGEOFF]
	add	x0, sp, #8
	mov	x2, x20
	bl	_pushf_create
	tbnz	w0, #31, LBB0_27
; %bb.14:
	ldr	x3, [sp, #8]
	str	x3, [sp, #16]
LBB0_15:
	mov	x0, x20
	mov	x1, x3
	bl	_write_prefix
	tbnz	w0, #31, LBB0_27
; %bb.16:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_20
; %bb.17:
	ldr	x8, [x20, #16]
	cmp	x8, #1
	b.lt	LBB0_20
; %bb.18:
	ldr	x2, [sp, #16]
	add	x0, sp, #8
	mov	x1, x20
	bl	_init_compress
	tbnz	w0, #31, LBB0_27
; %bb.19:
	ldr	x8, [sp, #8]
	str	x8, [sp, #16]
LBB0_20:
	ldr	x2, [sp, #16]
	add	x0, sp, #8
	mov	x1, x20
	bl	_init_litdata_packet
	tbnz	w0, #31, LBB0_27
; %bb.21:
	ldr	x3, [sp, #8]
	str	x3, [sp, #16]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_25
; %bb.22:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_25
; %bb.23:
Lloh7:
	adrp	x1, _crlf_filter@GOTPAGE
Lloh8:
	ldr	x1, [x1, _crlf_filter@GOTPAGEOFF]
	add	x0, sp, #8
	mov	x2, x20
	bl	_pushf_create
	tbnz	w0, #31, LBB0_27
; %bb.24:
	ldr	x8, [sp, #8]
	str	x8, [sp, #16]
LBB0_25:
	mov	x0, x19
	bl	_mbuf_avail
	mov	x1, x0
	add	x2, sp, #24
	mov	x0, x19
	bl	_mbuf_grab
	mov	x2, x0
	ldp	x0, x1, [sp, #16]
	bl	_pushf_write
	tbnz	w0, #31, LBB0_27
; %bb.26:
	ldr	x0, [sp, #16]
	bl	_pushf_flush
LBB0_27:
	mov	x21, x0
LBB0_28:
	ldr	x0, [sp, #16]
	bl	_pushf_free_all
LBB0_29:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_ARGUMENT_ERROR,4,2         ; @PXE_ARGUMENT_ERROR
	.comm	_encrypt_filter,4,2             ; @encrypt_filter
	.comm	_mdc_filter,4,2                 ; @mdc_filter
	.comm	_crlf_filter,4,2                ; @crlf_filter
.subsections_via_symbols
