	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_elgamal_encrypt            ## -- Begin function pgp_elgamal_encrypt
	.p2align	4, 0x90
_pgp_elgamal_encrypt:                   ## @pgp_elgamal_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_PXE_PGP_MATH_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_mpi_to_bn
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	callq	_mpi_to_bn
	movq	%rax, %r12
	movq	8(%rbx), %rdi
	callq	_mpi_to_bn
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	movq	%r14, %rbx
	callq	_mpi_to_bn
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_mp_new
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_mp_new
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_mp_new
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_mp_new
	movq	%rax, %r15
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	testq	%r12, %r12
	je	LBB0_11
## %bb.2:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.3:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.4:
	testq	%r14, %r14
	je	LBB0_11
## %bb.5:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.6:
	testq	%r13, %r13
	je	LBB0_11
## %bb.7:
	testq	%r15, %r15
	je	LBB0_11
## %bb.8:
	movq	%r12, %rdi
	callq	_mp_int_count_bits
	movl	%eax, %edi
	callq	_decide_k_bits
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_mp_px_rand
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_mp_int_exptmod
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_mp_int_exptmod
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_mp_modmul
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_bn_to_mpi
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%rax, (%r13)
	movq	%r15, %rdi
	callq	_bn_to_mpi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	cmpq	$0, (%r13)
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	cmovnel	%ecx, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_11:
	movq	%r15, %rdi
	callq	_mp_clear_free
	movq	%r13, %rdi
	callq	_mp_clear_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mp_clear_free
	movq	%r14, %rdi
	callq	_mp_clear_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mp_clear_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mp_clear_free
	movq	%r12, %rdi
	callq	_mp_clear_free
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mp_clear_free
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_9:
	movl	%ebx, %eax
LBB0_12:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_PGP_MATH_FAILED,4,2        ## @PXE_PGP_MATH_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_elgamal_encrypt            ; -- Begin function pgp_elgamal_encrypt
	.p2align	2
_pgp_elgamal_encrypt:                   ; @pgp_elgamal_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x25, x2
	mov	x23, x0
Lloh0:
	adrp	x8, _PXE_PGP_MATH_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXE_PGP_MATH_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_mpi_to_bn
	mov	x19, x0
	ldr	x0, [x23, #16]
	bl	_mpi_to_bn
	mov	x21, x0
	ldr	x0, [x23, #8]
	bl	_mpi_to_bn
	mov	x22, x0
	ldr	x0, [x23]
	bl	_mpi_to_bn
	mov	x23, x0
	bl	_mp_new
	mov	x24, x0
	bl	_mp_new
	mov	x27, x0
	bl	_mp_new
	mov	x28, x0
	bl	_mp_new
	mov	x26, x0
	cbz	x19, LBB0_10
; %bb.1:
	cbz	x21, LBB0_10
; %bb.2:
	cbz	x22, LBB0_10
; %bb.3:
	cbz	x23, LBB0_10
; %bb.4:
	cbz	x24, LBB0_10
; %bb.5:
	cbz	x27, LBB0_10
; %bb.6:
	cbz	x28, LBB0_10
; %bb.7:
	cbz	x26, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_mp_int_count_bits
	bl	_decide_k_bits
	mov	x1, x24
	bl	_mp_px_rand
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x28
	bl	_mp_int_exptmod
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	mov	x3, x27
	bl	_mp_int_exptmod
	mov	x0, x19
	mov	x1, x27
	mov	x2, x21
	mov	x3, x26
	bl	_mp_modmul
	mov	x0, x28
	bl	_bn_to_mpi
	str	x0, [x25]
	mov	x0, x26
	bl	_bn_to_mpi
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x0, [x8]
	ldr	x8, [x25]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	csel	w20, w20, wzr, eq
LBB0_10:
	mov	x0, x26
	bl	_mp_clear_free
	mov	x0, x28
	bl	_mp_clear_free
	mov	x0, x27
	bl	_mp_clear_free
	mov	x0, x24
	bl	_mp_clear_free
	mov	x0, x23
	bl	_mp_clear_free
	mov	x0, x22
	bl	_mp_clear_free
	mov	x0, x21
	bl	_mp_clear_free
	mov	x0, x19
	bl	_mp_clear_free
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_PGP_MATH_FAILED,4,2        ; @PXE_PGP_MATH_FAILED
.subsections_via_symbols
