	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_parse_pubenc_sesskey       ## -- Begin function pgp_parse_pubenc_sesskey
	.p2align	4, 0x90
_pgp_parse_pubenc_sesskey:              ## @pgp_parse_pubenc_sesskey
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_GETBYTE
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_pullf_read_fixed
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	_any_key@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	movl	$8, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r12), %esi
	leaq	-80(%rbp), %rdi
	movl	$8, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_px_debug
	movq	_PXE_PGP_WRONG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_px_debug
	movq	_PXE_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	movq	%r15, %rdi
	callq	_GETBYTE
	leaq	-88(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_decrypt_elgamal
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movq	-88(%rbp), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %esi
	callq	_check_eme_pkcs1_v15
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %r12
	movq	-88(%rbp), %rax
	movl	(%rax), %r13d
	movq	%r12, %rcx
	subq	8(%rax), %rcx
	shrq	$2, %rcx
	subl	%ecx, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_control_cksum
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	(%r12), %eax
	movl	%eax, 8(%r14)
	addl	$-3, %r13d
	movl	%r13d, (%r14)
	movl	4(%r14), %edi
	addq	$4, %r12
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-88(%rbp), %rdi
	callq	_pgp_mpi_free
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_px_debug
	movq	_PXE_PGP_WRONG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-88(%rbp), %rdi
	callq	_pgp_mpi_free
	testl	%ebx, %ebx
	js	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	callq	_pgp_expect_packet_end
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	movq	-88(%rbp), %rdi
	callq	_pgp_mpi_free
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no pubkey?"

	.comm	_PXE_BUG,4,2                    ## @PXE_BUG
	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ## @PXE_PGP_CORRUPT_DATA
	.comm	_any_key,4,2                    ## @any_key
L_.str.2:                               ## @.str.2
	.asciz	"key_id's does not match"

	.comm	_PXE_PGP_WRONG_KEY,4,2          ## @PXE_PGP_WRONG_KEY
	.comm	_PXE_PGP_UNKNOWN_PUBALGO,4,2    ## @PXE_PGP_UNKNOWN_PUBALGO
L_.str.3:                               ## @.str.3
	.asciz	"check_eme_pkcs1_v15 failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_parse_pubenc_sesskey       ; -- Begin function pgp_parse_pubenc_sesskey
	.p2align	2
_pgp_parse_pubenc_sesskey:              ; @pgp_parse_pubenc_sesskey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x21, [x0, #16]
	cbz	x21, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_GETBYTE
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #8
	bl	_pullf_read_fixed
	tbnz	w0, #31, LBB0_12
; %bb.2:
Lloh3:
	adrp	x8, _any_key@GOTPAGE
Lloh4:
	ldr	x8, [x8, _any_key@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w1, [x21]
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_px_debug
Lloh8:
	adrp	x8, _PXE_PGP_WRONG_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PXE_PGP_WRONG_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_px_debug
Lloh13:
	adrp	x8, _PXE_BUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PXE_BUG@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_GETBYTE
	mov	x2, sp
	mov	x0, x21
	mov	x1, x19
	bl	_decrypt_elgamal
	tbnz	w0, #31, LBB0_12
; %bb.7:
	ldr	x8, [sp]
	ldr	x0, [x8, #8]
	ldr	w1, [x8]
	bl	_check_eme_pkcs1_v15
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	ldr	x8, [sp]
	ldr	w9, [x8]
	ldr	x8, [x8, #8]
	sub	x8, x0, x8
	lsr	x8, x8, #2
	sub	w23, w9, w8
	mov	x1, x23
	bl	_control_cksum
	tbnz	w0, #31, LBB0_15
; %bb.9:
	ldr	w8, [x21], #4
	str	w8, [x20, #8]
	sub	w2, w23, #3
	str	w2, [x20]
	ldr	w0, [x20, #4]
	mov	x1, x21
	bl	_memcpy
	ldr	x0, [sp]
	bl	_pgp_mpi_free
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_px_debug
Lloh18:
	adrp	x8, _PXE_PGP_WRONG_KEY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PXE_PGP_WRONG_KEY@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	ldr	x0, [sp]
	bl	_pgp_mpi_free
	tbnz	w22, #31, LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_pgp_expect_packet_end
LBB0_12:
	mov	x22, x0
LBB0_13:
	ldr	x8, [sp, #40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x22
	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
	add	sp, sp, #112
	ret
LBB0_15:
	mov	x22, x0
	ldr	x0, [sp]
	bl	_pgp_mpi_free
	b	LBB0_13
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no pubkey?"

	.comm	_PXE_BUG,4,2                    ; @PXE_BUG
	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ; @PXE_PGP_CORRUPT_DATA
	.comm	_any_key,4,2                    ; @any_key
l_.str.2:                               ; @.str.2
	.asciz	"key_id's does not match"

	.comm	_PXE_PGP_WRONG_KEY,4,2          ; @PXE_PGP_WRONG_KEY
	.comm	_PXE_PGP_UNKNOWN_PUBALGO,4,2    ; @PXE_PGP_UNKNOWN_PUBALGO
l_.str.3:                               ; @.str.3
	.asciz	"check_eme_pkcs1_v15 failed"

.subsections_via_symbols
