	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_symenc_sesskey
_parse_symenc_sesskey:                  ## @parse_symenc_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PGP_MAX_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	$2, %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_GETBYTE
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_GETBYTE
	leaq	12(%rbx), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pgp_s2k_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	24(%rbx), %edi
	movl	28(%rbx), %eax
	movl	%eax, 56(%rbx)
	callq	_s2k_decode_count
	movl	%eax, 52(%rbx)
	movl	(%rbx), %esi
	movl	20(%rbx), %eax
	movl	%eax, 48(%rbx)
	movl	44(%rbx), %edx
	movl	40(%rbx), %ecx
	movq	%r14, %rdi
	callq	_pgp_s2k_process
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	_PGP_MAX_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$2, %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_pullf_read_max
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	je	LBB0_9
## %bb.4:
	cmpl	$17, %r13d
	jb	LBB0_6
## %bb.5:
	movq	_PGP_MAX_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	cmpl	%eax, %r13d
	jle	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_px_debug
	movq	_PXE_PGP_CORRUPT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %r13d
LBB0_12:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	36(%rbx), %edi
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_memcpy
	movl	(%rbx), %eax
	movl	12(%rbx), %ecx
	movl	%ecx, 32(%rbx)
	movl	%eax, 4(%rbx)
	movl	$0, 8(%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_10:
	movl	$1, 8(%rbx)
	movq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_decrypt_key
	movl	%eax, %r13d
LBB0_11:
	shll	$2, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_px_memset
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PGP_MAX_KEY,4,2                ## @PGP_MAX_KEY
	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ## @PXE_PGP_CORRUPT_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"expect key, but bad data"

	.no_dead_strip	_parse_symenc_sesskey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_symenc_sesskey
_parse_symenc_sesskey:                  ; @parse_symenc_sesskey
	.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, #16
	mov	x22, x1
	mov	x20, x0
	mov	x24, sp
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	x26, _PGP_MAX_KEY@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PGP_MAX_KEY@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w25, w8, #2
	lsl	x8, x25, #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	x19, x9, x8
	mov	sp, x19
	mov	x0, x1
	bl	_GETBYTE
	mov	x23, x20
	ldr	w1, [x23], #12
	mov	x0, x22
	bl	_GETBYTE
	mov	x0, x22
	mov	x1, x23
	bl	_pgp_s2k_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldp	w0, w8, [x20, #24]
	str	w8, [x20, #56]
	bl	_s2k_decode_count
	ldr	w8, [x20, #20]
	stp	w8, w0, [x20, #48]
	ldr	w1, [x20]
	ldp	w3, w2, [x20, #40]
	mov	x0, x23
	bl	_pgp_s2k_process
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w8, [x26]
	add	w1, w8, #2
	sub	x2, x29, #80
	mov	x0, x22
	mov	x3, x19
	bl	_pullf_read_max
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.3:
	cbz	w21, LBB0_10
; %bb.4:
	cmp	w21, #17
	b.lo	LBB0_6
; %bb.5:
	ldr	w8, [x26]
	add	w8, w8, #1
	cmp	w21, w8
	b.le	LBB0_11
LBB0_6:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_px_debug
Lloh9:
	adrp	x8, _PXE_PGP_CORRUPT_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PXE_PGP_CORRUPT_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_7:
	mov	x21, x0
LBB0_8:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x21
	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_10:
	ldr	w0, [x20, #36]
	ldp	w2, w1, [x20, #12]
	bl	_memcpy
	ldr	w8, [x20, #12]
	str	w8, [x20, #32]
	ldr	w8, [x20]
	stp	w8, wzr, [x20, #4]
	b	LBB0_12
LBB0_11:
	mov	w8, #1
	str	w8, [x20, #8]
	ldur	x1, [x29, #-80]
	mov	x0, x20
	mov	x2, x21
	bl	_decrypt_key
	mov	x21, x0
LBB0_12:
	lsl	w2, w25, #2
	mov	x0, x19
	mov	w1, #0
	bl	_px_memset
	b	LBB0_8
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PGP_MAX_KEY,4,2                ; @PGP_MAX_KEY
	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ; @PXE_PGP_CORRUPT_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"expect key, but bad data"

	.no_dead_strip	_parse_symenc_sesskey
.subsections_via_symbols
